I would like to calculate some code metrics for my PHP OOP projects. I try to use some of the tools mentioned in here. But except trail version of Understand, which presents only
I couldn't find any working for PHP.
Plugin for Eclipse by State of Flow is not working with my (not so new) Galileo Eclipse v3.5.
I'm interested in measures such as
Are there any tools?
There are some tools, in PHP -- and for PHP code.
Here are those I can think about :
phpcpd
-- copy-paste detectorphploc
-- to do many kind of counts (lines, classes, ...)
PHP_CodeSniffer
-- to check if your code respects your coding standards.phpmd
-- mess detectorphpDocumentor
/ DocBlox to generate documentation (and detect what is not properly documented)
In PHP, those tools are generally not used from Eclipse, but integrated in some Continuous Integration Platform.
About those, you can take a look at :
Still, if you want to integrate some of those tools with Eclipse PDT, you might want to take a look at PHP Tool Integration.
See our PHP CloneDR for a tool that computes the amount and the precise location of duplicated code. It will find duplicates in spite of reformatting the text, modification of comments, and modifications (up to a degree of [dis]similarity.
There's an example of Joomla processed by the PHP CloneDR at the link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With