Walls are rarely square. Measuring width at the top, middle and bottom, and height at left, centre and right, shows you whether an opening has moved. Comparing the diagonals tells you whether it is out of square. Using the smallest width and height keeps the frame from jamming.