In addition to what Dan pointed out above, when doing close-up photography, the diffraction is worse than expected from the indicated aperture on the lens per the relationship below.
EFFECTIVE APERTURE = MARKED APERTURE * (MAGNIFICATION + 1)