Linux / Block
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 1,929 units with 29,533 lines of code in units (73.4% of code).
    • 0 very complex units (0 lines of code)
    • 8 complex units (735 lines of code)
    • 98 medium complex units (5,548 lines of code)
    • 256 simple units (7,275 lines of code)
    • 1,567 very simple units (15,975 lines of code)
0% | 2% | 18% | 24% | 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% | 2% | 19% | 25% | 53%
h0% | 0% | 0% | 6% | 93%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 2% | 15% | 23% | 58%
partitions0% | 0% | 45% | 35% | 19%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
81 38 5
84 35 1
102 32 4
112 30 4
67 27 5
60 27 2
120 26 1
109 26 4
99 25 4
79 24 3
104 24 3
98 24 1
93 24 1
56 24 1
79 23 4
96 23 1
118 22 1
68 21 3
83 20 1
67 19 2
59 19 1
94 19 3
61 19 4
72 18 3
45 18 2
56 17 3
76 17 1
49 16 3
94 16 1
27 16 2
66 16 1
80 16 3
48 16 3
43 16 4
49 15 2
60 15 3
20 15 1
49 15 1
90 15 4
43 15 3
42 15 3
54 15 1
61 15 3
87 15 4
45 15 2
56 15 3
61 14 3
34 14 1
71 14 4
52 14 2