As always if NetBeans uses any external tool, verify IDE Options that everything is set correctly:
If it is, you are ready to inspect your code (one can select a PHP project or a PHP file):
Inspect dialog will appear. Here, we can e.g. select only one inspection tool or create custom configuration:
If we are ready and run the inspection (please notice that it can take a long time for big projects), analysis results are shown:
As you can see, the results are categorized by files and folders so we can easily recognize which area of our project needs our attention first. If we double click any of these results, the given warning(s) is shown to us on the proper line:
If anything goes wrong (e.g. inspection is running too long), one can easily verify what each tool does exactly in the Output window:
If anyone of you has a tip for another PHP code analysis tool, let us know via NetBeans Bugzilla or leave a comment here (please notice that the comments are moderated so they will not appear here immediately).