PHPMD - PHP Mess Detector
This is the project site of PHPMD. It is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.
What PHPMD does is: It takes a given PHP source code base and look for several potential problems within that source. These problems can be things like:
Possible bugs
Suboptimal code
Overcomplicated expressions
Unused parameters, methods, properties
PHPMD is currently in an early development stage and so it only provides a limited set of pre defined rules that detect bad smells within the analyzed source code.
Recent Releases
2010/07/03 - PHPMD 0.2.6: Released with several bug fixes and a new rule set, that contains rules which detect design issued. This release can be found in the download section and PHPMD's PEAR channel.
2010/04/07 - First official release of the PHPMD Java Binding. Release 0.1.1 of PHPMD's extension for Ant.
2010/04/03 - PHPMD 0.2.5: Several bugfixes in existing rules and a new rule that detects too complex classes. This release can be found in the download section.
2010/03/08 - PHPMD 0.2.4: Small bugfix release which closes an E_NOTICE issue introduced with release 0.2.3
2010/03/04 - PHPMD 0.2.3: This release contains several bugfixes, new rule set that check the analyzed source code against various naming rules.