What to Look for in a Home Inspection?

In a home inspection look at the roof, the wiring, the foundation, and the plumbing. Does the roof leak or have weak spots? Is the wiring up to code? Are there cracks in the foundation? Is the plumbing of the newer type?