简体   繁体   English

用于检测无用文件或无用代码PHP的工具

[英]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)

  • Possible bugs; 可能的错误;
  • Suboptimal code; 次优代码;
  • Overcomplicated expressions; 过于复杂的表达;
  • Unused parameters, methods, properties. 未使用的参数,方法,属性。

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. 它还显示了您的代码的圈复杂度,可以让您进行一些代码优化。

PHP Depend PHP依赖

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 Ba​​ker还谈到了PHP死代码检测器(PHPDCD)。 IDK the project, but seems very similar to PHPMD. IDK项目,但似乎与PHPMD非常相似。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM