What are the requirements to hinge off the door of the wall?

In order to secure the door properly you will need:

  • Two studs (2” x 4”). See pic.1 for reference.
  • A straight wall. It can be out of plumb, but must be straight. Hinges work on pivot points, and these points have to be aligned.