facebookincubator / dhcplb
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 66 units with 1,113 lines of code in units (71.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (184 lines of code)
    • 11 simple units (407 lines of code)
    • 52 very simple units (522 lines of code)
0% | 0% | 16% | 36% | 46%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
go0% | 0% | 16% | 36% | 46%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib0% | 0% | 11% | 36% | 51%
ROOT0% | 0% | 52% | 34% | 13%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
54 16 4
57 14 1
73 14 1
36 10 2
54 9 1
47 9 0
47 8 3
36 8 1
36 8 3
25 8 1
39 7 2
28 6 1
26 6 4
33 6 1
31 5 1
23 5 1
27 4 1
25 4 1
14 4 3
19 4 1
22 4 1
27 4 1
22 4 1
14 4 4
21 4 1
14 4 2
23 4 3
11 3 2
12 3 2
9 3 1
29 3 3
6 3 1
3 2 1
7 2 1
9 2 1
10 2 1
11 2 1
14 2 1
12 2 1
6 2 1
3 1 0
3 1 1
3 1 1
3 1 1
3 1 1
3 1 1
8 1 1
3 1 1
4 1 1
3 1 1