PHP Quality Tools – phpinsights
phpinsights is a tool you can use to get a nice overview of the quality state of a PHP project. The tool will analyze the code, complexity, architecture and some code style rules, then present four corresponding scores.
Measuring over time will give you a sense of which areas of your code are improving, and which areas might need some more attention.
As with many quality tools, the measurements and grading are opinions, but those opinions are generally based on industry-accepted views.
- Following a single standard coding styles is preferable to each file being formatted differently.
- Smaller code blocks are preferable to larger code blocks
- and so on…
phpinsights uses php_codesniffer under the hood, and provides its own out of the box default set of configurations (in other words, its own opinions).
It’s a nice and easy package to get a quick overview of the state of things. Folks with more time on their hands can dig in to its configuration and set things up the way they’d like, or may wish to dig in to php_codesniffer directly.

