Code Quality Metrics
Wouldn’t it be great if we could measure the quality of our software? Software developers often want to improve their software again and again – but maybe it is already “good enough.” How do we know when it reaches a good state?
Software quality metrics were introduced by smart people in the early days of programming. In the 1970s, they thought about this topic and produced the ideas that are still in use today. Of course, we want to benefit from this knowledge and apply it to our own projects.
In this chapter, we are going to cover the following topics:
- Introducing code quality metrics
- Gathering metrics in PHP
- The pros and cons of using metrics