Linux / Drivers / Hsi
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 243 units with 4,460 lines of code in units (82.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 9 medium complex units (594 lines of code)
    • 23 simple units (922 lines of code)
    • 211 very simple units (2,944 lines of code)
0% | 0% | 13% | 20% | 66%
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% | 0% | 13% | 20% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
clients0% | 0% | 11% | 23% | 64%
controllers0% | 0% | 12% | 21% | 65%
ROOT0% | 0% | 25% | 0% | 74%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
51 17 3
94 17 2
89 14 1
96 13 1
54 12 4
48 12 4
55 11 2
53 11 1
54 11 2
25 10 2
47 10 3
63 10 2
24 9 2
40 9 4
43 9 1
51 8 1
44 8 2
36 8 1
42 8 3
53 8 1
66 7 4
21 7 2
34 7 2
63 7 1
49 7 1
50 7 1
30 7 2
38 6 2
36 6 1
22 6 2
16 6 1
29 6 2
23 5 1
32 5 2
16 5 1
19 5 1
35 5 2
20 5 1
28 5 2
43 5 2
21 5 1
10 5 1
20 5 2
26 5 1
71 5 2
34 5 1
54 5 1
26 5 2
29 5 4
20 4 1