landingi/crap-metric-analyzer
A PHP package for analyzing CRAP metrics, combining cyclomatic complexity and test coverage to identify high-risk, hard-to-maintain code. Helps teams prioritize refactoring and improve coverage where it matters most.
Consider adoption when:
Look elsewhere when:
For executives: This is a low-cost, low-risk maintenance release for a small piece of our test-reporting plumbing. It keeps coverage reporting working as we upgrade our PHP testing toolchain, which protects the automated quality gates we rely on for release confidence. No new spend, no new vendor relationship, no migration project. The one thing to note is a deliberate policy choice by the maintainer: they will only support the newest coverage-report format. That is good for staying current and bad for anyone frozen on old tooling, so it belongs in our dependency-review checklist rather than in a budget conversation.
For engineering: v1.0.4 adds support for the newest Clover coverage report structure. The maintainer has explicitly stated an "newest structure only" support policy for maintenance simplicity, which means we should (a) pin the version in composer and upgrade deliberately alongside PHPUnit, (b) verify our CI's Clover output matches the newly supported schema before rollout, and (c) treat future Clover schema changes as expected upgrade events rather than surprises. Because there is no prior assessment on record and the upstream dataset is empty, treat this as an initial, evidence-limited evaluation — validate format handling and package test coverage against our own pipeline in a branch before promoting past dev/CI.
How can I help you explore Laravel packages today?