Linux / Drivers / Cdrom
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 153 units with 3,029 lines of code in units (90.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (71 lines of code)
    • 16 medium complex units (822 lines of code)
    • 23 simple units (592 lines of code)
    • 113 very simple units (1,544 lines of code)
0% | 2% | 27% | 19% | 50%
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% | 27% | 19% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 2% | 27% | 19% | 50%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
71 32 5
78 25 5
108 21 2
39 18 3
79 17 1
52 16 4
48 13 2
27 13 2
70 12 1
36 12 1
44 12 2
47 12 2
40 12 2
39 11 3
37 11 2
54 11 4
24 11 1
42 9 1
54 9 1
47 9 2
22 9 1
33 8 2
22 8 1
35 8 4
21 8 4
21 7 3
21 7 2
21 7 2
11 7 2
40 7 2
38 7 5
16 6 1
19 6 2
20 6 3
14 6 1
23 6 2
15 6 2
13 6 2
22 6 2
22 6 2
24 5 2
35 5 2
30 5 1
21 5 2
20 5 2
35 5 3
17 5 2
22 5 3
17 5 2
16 4 1