Linux / Drivers / Macintosh
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 485 units with 9,541 lines of code in units (59.0% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (173 lines of code)
    • 53 medium complex units (2,722 lines of code)
    • 76 simple units (2,492 lines of code)
    • 354 very simple units (4,154 lines of code)
0% | 1% | 28% | 26% | 43%
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% | 1% | 28% | 26% | 43%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 1% | 30% | 25% | 42%
ams0% | 0% | 0% | 34% | 65%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
141 34 2
32 26 1
29 23 1
37 22 1
28 22 1
29 21 3
51 21 1
41 21 1
111 21 2
145 20 2
49 19 1
103 19 1
65 18 2
35 18 1
71 18 2
24 18 1
44 18 1
55 17 1
34 17 1
41 17 4
64 17 1
59 16 1
59 16 1
32 16 1
75 15 2
63 15 1
42 14 1
52 14 4
40 14 1
55 14 1
49 14 4
55 14 4
47 14 2
49 14 1
53 14 1
19 14 1
78 13 1
52 13 4
39 13 1
53 13 3
38 13 1
59 12 1
26 12 1
54 12 1
56 12 1
65 12 1
38 12 1
62 12 1
55 12 1
55 11 2