One embodiment disclosed is a compact wavefront sensor module to be attached to or integrated with an ophthalmic instrument for eye examination and/or vision correction procedures. The front lens for relaying the wavefront from the eye to a wavefront sampling plane is positioned at the optical input port of the wavefront sensor module. The front lens is shared by the wavefront sensor and the ophthalmic instrument, and the wavefront sensor module can be made very compact while still being able to cover a large eye wavefront measurement diopter range. Another embodiment disclosed is an ophthalmic device for measuring properties of a subject eye including an ophthalmic instrument integrated with the wavefront sensor module.