Linux / Virt
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 331 units with 5,192 lines of code in units (81.7% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (438 lines of code)
    • 15 medium complex units (862 lines of code)
    • 36 simple units (1,067 lines of code)
    • 277 very simple units (2,825 lines of code)
0% | 8% | 16% | 20% | 54%
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
c0% | 8% | 16% | 20% | 54%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
kvm0% | 8% | 17% | 19% | 55%
lib0% | 0% | 0% | 66% | 33%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
192 46 3
171 42 3
75 29 2
43 20 2
52 20 2
110 17 3
54 16 2
47 15 1
86 15 5
39 14 5
24 13 4
41 13 4
79 12 2
90 12 4
60 12 4
47 11 2
49 11 2
41 11 2
61 10 8
64 10 2
29 10 4
37 10 6
38 10 3
37 10 3
32 10 4
41 10 2
26 9 4
25 9 2
27 9 2
21 9 2
34 9 1
27 8 5
24 8 7
19 8 1
36 8 3
45 8 2
21 7 2
30 7 3
23 7 5
22 7 5
19 7 3
42 7 3
28 6 2
14 6 5
11 6 4
17 6 3
36 6 1
19 6 6
33 6 5
13 6 4