Metrics

Code metrics

Response for Class

It measures the number of different methods that can be executed when an method of that class is invoked.

Depth of Inheritance Tree

Provides for each class a measure of the inheritance levels from the object hierarchy top. The minimum value of DIT for a class is 1.

Width of Inheritance Tree (WIT)

Provides for each class a measure of the leaves in its tree, eliminating duplicates.

Lack of Cohesion in Methods (LCOM4)

LCOM4 measures the number of "connected components" in a class. A connected component is a set of related methods (and class-level variables). There should be only one such a component in each class. If there are 2 or more components, the class should be split into so many smaller classes.

Response for Class (average)

Average Response for Class.

Response for Class (max)

Higher value of the measure Response for Class.

Coupling Between Object classes (CBO)

Represents the number of classes coupled to a given class.

Halstead

Halstead

Identifies measurable properties of software, and the relations between them.

Complexity

Cyclomatic complexity

It is the complexity calculated based on the number of paths through the code. Whenever the control flow of a function splits, the complexity counter gets incremented by one. Each function has a minimum complexity of 1.

Complexity / class

Average complexity by class.

Complexity / file

Average complexity by file.

Size

Lines of Code (LoC)

The total number of lines of code.

Classes

Number of classes.

Directories

Number of directories.

Files

Number of files.

Lines

Number of physical lines (number of carriage returns).

Lines of code

Number of physical lines that contain at least one character which is neither a whitespace nor a tabulation nor part of a comment.

Methods

Number of methods.

Statements

Number of statements.

Maintainability

Classic maintanability index

Represents the relative ease of maintaining the code.

SEI maintanability index

Represents the relative ease of maintaining the code.

Microsoft maintanability index

Represents the relative ease of maintaining the code.

Maintainability Rating

Rating given to your project related to the value of your Technical Debt Ratio.

Technical Debt

Effort to fix all maintainability issues.

Technical Debt Ratio

Ratio between the cost to develop the software and the cost to fix it.

Technical Debt on new code

Technical Debt of new code.

Parsing failure

Parsing failures

The number of parsing errors found during the analysis.

Documentation

Comment lines

Number of lines containing either comment or commented-out code.

Comments (%)

Density of comment lines

Duplications

Duplicated blocks

Number of duplicated blocks of lines.

Duplicated files

Number of files involved in duplications.

Duplicated lines (%)

Density of duplication.

Reliability

Bugs

Number of bugs.

New Bugs

Number of new bugs.

Reliability Rating

Rating given to the project related to the severity of existing Bugs.

Reliability remediation effort

Effort to fix all bug issues.

Reliability remediation effort on new code

Effort to fix all bug issues appeared on the leak period.

Security

Vulnerabilities

Number of vulnerabilities.

New Vulnerabilities

Number of new vulnerabilities.

Security Rating

Rating given to the project related to the severity of the existing Vulnerabilities.

Security remediation effort

Effort to fix all vulnerability issues.

Security remediation effort on new code

Effort to fix all vulnerability issues appeared on the leak period.