Linux / Drivers / Accessibility
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 284 units with 5,395 lines of code in units (56.9% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (356 lines of code)
    • 28 medium complex units (1,647 lines of code)
    • 42 simple units (1,266 lines of code)
    • 210 very simple units (2,126 lines of code)
0% | 6% | 30% | 23% | 39%
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% | 6% | 30% | 23% | 39%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
speakup0% | 4% | 30% | 23% | 40%
braille0% | 39% | 25% | 14% | 20%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
111 31 3
91 27 5
77 27 4
77 26 4
69 25 2
101 24 4
72 23 4
63 22 3
43 21 1
72 20 3
78 18 1
89 17 1
52 17 1
68 17 2
82 17 1
63 16 3
47 16 1
25 16 3
42 15 1
44 15 1
52 15 3
37 15 3
70 15 1
76 14 1
62 14 4
70 14 1
47 13 3
41 13 1
40 12 1
32 11 1
42 11 2
68 11 2
50 10 1
49 10 3
36 10 3
23 10 1
24 9 1
49 9 1
29 9 3
20 9 1
33 9 1
17 9 1
39 9 1
41 8 1
54 8 1
34 8 4
35 8 4
28 8 4
19 8 4
21 8 1