Login   Register  
PHP Classes
elePHPant
Icontem

Complexity Analyzer

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Philipp Strazny
Name: Philipp Strazny is available for providing paid consulting. Contact Philipp Strazny .
Packages: 5 Browse all classes by Philipp Strazny Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 46
All time rank: 1691223 in United States United States
Week rank: 867 Up92 in United States United States Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x


  Detailed description   Download .zip .tar.gz  
This class can evaluate the complexity of classes' code

It can can analyse a given class and provide a ranking of its methods based on their complexity.

Given existing unit tests, this class provides a to do list, consisting of all methods with incomplete or missing tests, again ordered by complexity.

This class complements PHPUnit's code coverage functionality and can be used for guiding test writing efforts.

It provides command line interface options, so it can be executed as a command from a shell.

  Classes of Philipp Strazny  >  Complexity Analyzer  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Complexity Analyzer
Base name: complexity-analyzer
Description: Evaluate the complexity of classes' code
Version: -
PHP version: 5.3
License: Freely Distributable
All time users: 310 users
All time rank: 6050
Week users: 0 users
Week rank: 2023 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Testing Tools to help verifying that software works as expected View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
January 2012
Number 3

Prize: One copy of RadPHP XE2
Quality control is vital especially for complex projects.

Automated tests are useful to assure the quality of the projects by evaluating whether the code satisfies the project requirements, even after substantial changes are done.

Developing automated tests takes time and dedication of professionals that reckon the value of testing and know how to do it. However, sometimes it is not possible to implement all the tests that a project needs at once.

This class provides a solution that can aid in this problem. In can figure the complexity of the functions of a class and determine the ones that are missing tests.

It can produce lists of functions sorted by complexity, so a testing professional can start working first on those that are more complex.

This way he may give priority to adding tests for code that eventually is more important to satisfy the project requirements.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file ComplexityAnalyzer.php Class for ranking class methods and generating a todo list for test writing
Accessible without login Plain text file ComplexityAnalyzerTest.php Test tests the methods of ComplexityAnalyzer
Accessible without login Plain text file DummyClass.php Data data for ComplexityAnalyzerTest
Accessible without login Plain text file DummyClassTest.php Data data for ComplexityAnalyzerTest

Download all files: complexity-analyzer.tar.gz complexity-analyzer.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.