Code metrics

Purpose:

Code metrics helps you interpret the metrics of every file analyzed by SoccerLab and gives you recommendations based on the metrics.

Guide:

1) To browse the metrics of a certain function/method/class, you first need to navigate through the folder tree on the left to find the folder containing the requested file. Click on the requested file to open a popup window.

2) In the popup window, choose the file path to see it's entire source code or choose one of the functions, methods or classes proposed to see their source code.

Interpretation:

The metrics are divided in two categories:
The functions metrics:
      -Complexity: Cyclomatic complexity
      -Parameters: number of parameters in a function
      -Function called
      -Lines of code (LOC)

The classes metrics. Created by Chidamber and Kamerer, the six metrics for object-oriented systems are based on cohesiveness and coupling. These six metrics are a way of measuring the complexity, to see whether the roles reduce or increase the complexity.
      -DIT: Depth of inheritance tree
      -NOC: Number of children
      -WMC: Weighted methods per class
      -RFC: Response for a class
      -CBO: Coupling between object classes
      -LCOM: Lack of cohesiveness in methods