[英]Tools to detect useless file or useless code PHP
I have a very big PHP project with i think a lot of useless stuffs . 我有一个非常大的PHP项目,我认为很多无用的东西。
Do you have some tips or maybe some tools to detect useless part of code or useless files ? 您是否有一些提示或某些工具来检测无用的代码部分或无用的文件?
PHP Mess Detector (PHPMD) : PHP Mess Detector(PHPMD) :
PHPMD will show to you all mess created in your code. PHPMD将向您展示代码中创建的所有混乱。 It's also show the cyclomatic complexity of your codem which will let you do a few code optimizations. 它还显示了您的代码的圈复杂度,可以让您进行一些代码优化。
PHPMD is a spin-off of PHP Depend. PHPMD是PHP Depend的衍生产品。 PHP Depend will show to you better metrics and graphics of your software than PHPMD. PHP Depend将向您展示比PHPMD更好的软件指标和图形。 A really powerfull tool, better than PHPMD for optimization, but with a different purpose. 一个非常强大的工具,优于PHPMD进行优化,但目的不同。
Mark Baker also talked about PHP Dead Code Detector (PHPDCD). Mark Baker还谈到了PHP死代码检测器(PHPDCD)。 IDK the project, but seems very similar to PHPMD. IDK项目,但似乎与PHPMD非常相似。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.