本文介绍了好的PHP指标工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Netbeans在PHP中进行编码已有一段时间了,但是它没有提供任何用于获取代码指标的工具.我以前也使用过 SourceMonitor ,但它不支持PHP,与代码分析器.

I have been coding in PHP for a while using Netbeans but it does not provide any tools for obtaining code metrics. I have also used SourceMonitor before but it does not support PHP, same with Code Analyzer.

有人使用过并且可以推荐任何工具来从PHP代码中获取代码指标吗?

Has anyone used and can recommend any tools for getting code metrics from PHP code?

推荐答案

我的公司提供了各种PHP工具,用于静态和动态地测量软件质量.

My company provides a variety of PHP tools for measuring software quality, both statically and dynamically.

SD源代码搜索引擎是一个交互式GUI,可让您在大型物体上进行搜索源代码(例如PHP和HTML)可以快速轻松地实现.它通过首先对源代码建立索引来提供快速搜索.

The SD Source Code Search Engine is an interactive GUI that allows you to search across large bodies of source code (e.g., PHP and HTML) quickly and easily. It provides fast searches by indexing the source code base first.

作为索引编制过程的副作用,它还会为所扫描的文件生成度量标准,包括SLOC,注释,空格,Cyclomatic和Halstead度量标准.

As a side effect of the indexing process, it also produces metrics for the files it scans, including SLOC, Comments, Whitespace, Cyclomatic and Halstead measures.

CloneDR 是一种工具,可在大型软件系统中查找精确且几乎遗漏的重复代码.它已用于在PHP代码中查找克隆.

The CloneDR is a tool that finds exact and near-miss duplicated code across large software systems. It has been used to find clones in PHP code.

用于PHP的SD测试覆盖率工具是一种确定哪一部分的工具您的PHP应用程序的出于任何原因(包括由于测试而执行)已被执行.它以覆盖在源代码上的报告形式和UI形式提供覆盖信息.

The SD Test Coverage tool for PHP is a tool that determines what part of your PHP application has been executed for any reason, including executed because of testing. It provides coverage information in both report form and UI form overlayed over the source code.

编辑4/1/2011(严重!)

EDIT 4/1/2011 (Seriously!)

用于PHP的SD Profiler 提供了分析功能,可确定您的哪一部分代码很昂贵.我们既提供计数分析器(提供单个语句的执行计数),又提供时序配置文件(提供单个功能主体和特定功能下的调用子树的时间成本以及调用图信息).

The SD Profiler for PHP provides profiling capability to determine which part of your code is expensive. We offer both counting profilers that provide execution counts for individual statements, and timing profiles, that provide time costs of individual function bodies and of call subtrees underneath a specific function, as well as call graph information.

这篇关于好的PHP指标工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 07:33