Beyond focal length and the physical size of the pinhole, I can think of several more aspects that when considered in the pinhole's design will most likely increase the sharpness (reduce defraction) in the projected image.

1. The shape of the pinhole.
2. The thickness of the pinhole plate material (at the pinhole)
3. The color of the pinhole plate material (at the pinhole)

Would someone care to elaborate further?