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.

Similar Posts

  • Four Thousand Weeks

    I’m starting to read “Four Thousand Weeks” from Oliver Burkeman. I initially listened to much of the audio book, then bought a copy (link above to Amazon – no affiliate link). Have not finished yet, but the core message of the book seems to be There’s certainly more to it than this, and again, I’m…

  • A bit of feedback…

    A small bit of feedback… that’s often what a mobile user is looking for. Haptic feedback – a quick device vibration – is great. It’s subtle, quick, doesn’t interrupt, but gives an actual *feeling* that something happened. And… on iOS, it’s harder to do without building a full ‘native mobile app’. iOS Safari doesn’t support…

  • Laravel down migrations

    I get an email newsletter from Martin Joo every week or so. The newsletters generally have some useful tips around the Laravel framework or sometimes just general development tips. I’ve learned a couple of neat tricks here and there, and will continue to receive. This morning I received an email with a Laravel ‘tip’ regarding…

  • Importance of backups

    Well… here we are.  10 years later, and … no backups.  Or… none of the data that’s important. Recently had a drive crash in my main server where this blog is hosted.  Had it happen 2 years ago, but the data was recovered, and I put everything on automatic backups.  Using virtualmin, a great control…

Leave a Reply

Your email address will not be published. Required fields are marked *