Linux / Drivers / Nvmem
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 190 units with 3,529 lines of code in units (61.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (234 lines of code)
    • 31 simple units (1,227 lines of code)
    • 155 very simple units (2,068 lines of code)
0% | 0% | 6% | 34% | 58%
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% | 6% | 34% | 58%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 6% | 34% | 58%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
75 17 1
89 15 4
19 11 3
51 11 4
41 10 5
64 9 1
52 9 1
34 9 1
37 9 1
56 9 1
31 8 4
49 8 1
28 8 6
28 8 6
48 8 1
39 8 1
14 8 3
53 8 1
47 8 1
45 7 4
20 7 5
47 7 4
48 7 1
33 7 4
38 6 4
38 6 1
33 6 1
40 6 4
30 6 3
41 6 4
36 6 4
31 6 4
46 6 1
48 6 2
32 6 4
25 5 4
41 5 1
22 5 2
14 5 5
19 5 4
20 5 4
46 5 4
33 5 1
22 5 4
13 5 1
27 5 2
29 5 1
21 5 2
14 5 2
14 5 2