facebook / TestSlide
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 455 units with 2,994 lines of code in units (61.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (74 lines of code)
    • 6 medium complex units (188 lines of code)
    • 25 simple units (575 lines of code)
    • 423 very simple units (2,157 lines of code)
0% | 2% | 6% | 19% | 72%
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% | 2% | 6% | 19% | 72%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
testslide0% | 2% | 6% | 19% | 71%
pytest-testslide0% | 0% | 0% | 0% | 100%
util0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
74 26 3
29 17 1
55 14 1
16 14 2
44 13 3
29 11 2
15 11 3
20 10 1
30 10 4
51 10 2
43 10 3
24 9 2
13 9 3
13 8 2
16 8 3
21 8 2
34 8 2
12 7 2
16 7 2
30 7 1
13 7 1
18 7 2
15 7 2
14 7 1
11 7 1
13 6 3
11 6 2
12 6 2
40 6 3
49 6 2
13 6 1
43 6 1
16 5 3
9 5 1
14 5 3
43 5 1
13 5 3
12 5 2
11 4 0
9 4 2
17 4 1
10 4 2
10 4 3
11 4 2
15 4 3
11 4 2
11 4 2
17 4 0
20 4 2
14 4 0