primer / behaviors
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 36 units with 883 lines of code in units (87.3% of code).
    • 1 very complex units (197 lines of code)
    • 2 complex units (116 lines of code)
    • 6 medium complex units (325 lines of code)
    • 5 simple units (108 lines of code)
    • 22 very simple units (137 lines of code)
22% | 13% | 36% | 12% | 15%
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
ts22% | 13% | 36% | 12% | 15%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src22% | 13% | 36% | 12% | 15%
Most Complex Units
Top 36 most complex units
Unit# linesMcCabe index# params
197 55 2
45 30 2
71 27 6
96 21 2
95 21 3
25 14 2
15 11 1
68 11 3
26 11 1
21 8 3
31 8 1
16 7 2
19 6 1
21 6 1
18 5 4
8 4 0
10 4 1
13 4 1
12 4 3
9 2 1
6 2 0
3 2 2
6 2 0
6 2 0
6 2 0
4 1 0
3 1 0
3 1 0
4 1 0
6 1 0
7 1 1
3 1 2
3 1 0
1 1 0
3 1 0
3 1 0