Linux / Drivers / Fsi
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,490 lines of code in units (82.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 12 medium complex units (821 lines of code)
    • 42 simple units (1,486 lines of code)
    • 189 very simple units (2,183 lines of code)
0% | 0% | 18% | 33% | 48%
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% | 18% | 33% | 48%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 18% | 33% | 48%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
164 24 1
88 22 4
78 16 5
99 16 3
76 13 4
31 13 1
54 12 1
45 12 4
56 11 4
37 11 4
50 11 2
43 11 4
45 10 4
47 10 1
47 10 1
60 9 5
24 9 4
23 9 2
76 9 1
35 9 5
61 9 1
70 9 1
28 9 2
27 9 4
54 8 1
56 8 1
23 8 4
40 8 6
40 8 3
26 8 4
30 8 5
54 8 1
30 8 4
30 8 4
29 8 1
42 8 6
34 7 4
49 7 4
28 7 2
40 7 4
23 7 4
20 7 6
20 7 6
24 7 4
40 7 4
43 7 1
26 7 4
24 6 4
27 6 3
15 6 3