News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

QaFoo:
Code Review Tool
November 05, 2012 @ 09:41:16

On the QaFoo site they've shared a tool they use for doing code reviews in a new post to their blog. The tool, just called review, lets you run several different metrics on the code including the PHP "mess detector", PDepend and PHPCPD (copy & paste detector).

We, at Qafoo, do Code Reviews quite often together with our customers. This often focusses on dicussing metrics, browsing the associated code and discussing solutions for the issues found. We started using a bunch of shell scripts for that, like everyone else, but at some point we came up with a webinterface to do this in a more comfortable way. Now we want to share this tool with you.

Included in the post are several screenshots showing the results of the different types of evaluations - the ones mentioned above as well as things like "methods per class", cyclomatic complexity and NPath complexity. There's also a source code browser and a visual class structure generation tool (UML). It's under a AGPLv3 license and can be found on their site.

0 comments voice your opinion now!
code review tool metrics browser uml github


Sebastian Bergmann's Blog:
Towards Better Code Coverage Metrics in the PHP World
June 20, 2011 @ 08:10:57

Sebastian Bergmann has a new post to his blog talking about some of the future plans for better code coverage metrics for PHP applications (not just the statistics that we have now as generated from PHPUnit runs combined with Code_Coverage PEAR package and Xdebug).

Xdebug currently only supports what is usually referred to as Line Coverage. This software metric measures whether each executable line was executed. Based on the line coverage information provided by Xdebug, PHP_CodeCoverage also calculates the Function / Method Coverage software metric that measures whether each function or method has been invoked.

The various kinds of coverage they're planning the in future include statement coverage, branch coverage (boolean evaluation), call coverage, path coverage with an alternative of linear code sequence and jump coverage (LCSAJ).

0 comments voice your opinion now!
codecoverage metrics analyze code xdebug phpunit phpcodecoverage pear


Sebastian Bergmann's Blog:
On PHPUnit and Software Metrics
February 08, 2008 @ 09:31:00

In one of his latest entries, Sebastian Bergmann answers a question from another blogger about the future of software metrics and project mess detection as a part of the PHPUnit project.

When I started to work on these projects, there was no other place for me then to develop them as part of PHPUnit. [...] But the more I thought about it, I realized that these features do not belong into PHPUnit but into a suite of tools that PHPUnit is a well-integrated part of.

He did, however, include it as a part of the PHPUnit 3.2 release at that time. Now, however, there are the tools and platforms to make those tests useful outside of the PHPUnit environment and is allowing him to move it out from the testing application and on to closer integration with other software.

0 comments voice your opinion now!
phpunit software metrics project mess detection integration


Nick Halstead's Blog:
Programming Tips #7 & #8
December 11, 2007 @ 09:32:00

Nick Halstead has posted two more programming tips in his series - this time they cover "non-coding" and "XHTML analytics:

The first, tip #7, was written up by Jonathan Holland. He talks about a method of using metrics software that works correctly with XHTML syntax. His example script basically does a dynamic add to the page when it's loaded to put the script tag in after the validation has taken place.

The next tip, #8 (written by Dordea Cosmin), looks at "non coding" types of things you can do to help work towards success in your company. These sorts of things include diplomacy, being friendly, and continuing education.

0 comments voice your opinion now!
programming tip xhtml metrics noncoding diplomacy education programming tip xhtml metrics noncoding diplomacy education


Sebastian Bergmann's Blog:
PHPUnit and Cyclomatic Complexity
August 02, 2007 @ 07:56:00

Sebastian Bergmann mentions today about a feature in an upcoming release of a popuular unit testing tool for PHP, PHPUnit - the addition of more software metrics.

The upcoming 3.1.6 release of PHPUnit adds a couple of software metrics to the data that is stored in PHPUnit's test database. Among these metrics is the Cyclomatic Complexity Number (CCN).

An example of how the CCN works is shown in the post giving the className, methodName and the complexity ranking given for the combination. His example shows the rankings for a part of the eZ Components software.

0 comments voice your opinion now!
phpunit unittest cyclomatic complexity database software metrics phpunit unittest cyclomatic complexity database software metrics



Community Events





Don't see your event here?
Let us know!


community laravel unittest opinion list symfony2 framework install podcast threedevsandamaybe experience introduction interview refactor code release series developer testing language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework