Linux / Arch / S390
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 3,070 units with 46,399 lines of code in units (60.9% of code).
    • 4 very complex units (1,213 lines of code)
    • 20 complex units (1,752 lines of code)
    • 144 medium complex units (7,161 lines of code)
    • 335 simple units (9,659 lines of code)
    • 2,567 very simple units (26,614 lines of code)
2% | 3% | 15% | 20% | 57%
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
c2% | 4% | 17% | 22% | 52%
h0% | 0% | <1% | 4% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
net67% | 0% | 2% | 11% | 17%
kvm2% | 10% | 23% | 20% | 42%
kernel1% | 1% | 16% | 22% | 57%
mm0% | 5% | 17% | 24% | 52%
lib0% | 12% | 11% | 7% | 68%
crypto0% | 0% | 15% | 23% | 60%
pci0% | 0% | 8% | 29% | 61%
boot0% | 0% | 14% | 28% | 56%
hypfs0% | 0% | 3% | 25% | 70%
include0% | 0% | <1% | 4% | 95%
tools0% | 0% | 0% | 44% | 55%
appldata0% | 0% | 0% | 5% | 94%
purgatory0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
692 218 5
194 88 6
158 65 6
169 56 5
80 46 2
109 39 1
57 34 1
156 34 3
68 33 1
126 32 2
109 32 2
114 31 3
111 31 2
101 30 2
70 30 5
90 28 1
60 28 1
74 27 1
42 27 1
44 27 2
72 26 1
109 26 2
119 26 3
41 26 2
70 25 2
67 25 1
49 24 1
92 23 2
70 23 4
71 23 1
83 23 1
56 22 1
46 22 1
59 22 1
88 22 2
83 22 5
25 22 1
57 22 2
52 21 5
73 21 4
52 21 2
60 21 1
74 20 3
103 20 2
78 20 5
33 20 1
51 20 3
60 20 3
62 20 4
56 19 1