facebookexperimental / usort
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 69 units with 837 lines of code in units (66.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (256 lines of code)
    • 9 simple units (194 lines of code)
    • 55 very simple units (387 lines of code)
0% | 0% | 30% | 23% | 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
py0% | 0% | 30% | 23% | 46%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
usort0% | 0% | 30% | 23% | 46%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
50 20 1
105 18 2
34 16 2
35 16 2
32 15 2
31 10 3
20 9 1
44 8 2
15 8 2
20 8 2
24 8 2
14 7 2
17 7 1
9 6 2
7 5 3
22 5 3
18 5 2
19 5 2
11 5 1
14 4 3
11 4 2
15 4 1
14 4 3
8 3 2
7 3 1
7 3 2
7 3 1
13 3 1
5 3 1
22 3 3
12 3 0
8 3 2
5 2 2
5 2 1
7 2 0
4 2 1
2 2 1
4 2 2
4 2 1
8 2 2
11 2 2
14 2 1
13 2 1
5 2 3
7 2 3
8 2 3
3 2 1
6 2 3
2 1 3
2 1 0