I've used the Theme Check plugin with some nice results.

Do you know of a similar plugin (or site) to validate the code of a plugin?