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.
I know I’m lazy and copied a lot of text over from the homepage but it’s already early and I think this is worth to share.