PhpMetrics is yet another tool in the ever growing list of the static code analyzers for PHP. Compared to the rest, I think this one is the easiest to install and run. And it produces the most eye candy reports ever. The generated report is in the HTML format, with fancy charts and graphs, and makes it really easy to spot and fix the issues.