Linux / Drivers / Visorbus
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 118 units with 1,916 lines of code in units (72.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (266 lines of code)
    • 13 simple units (512 lines of code)
    • 101 very simple units (1,138 lines of code)
0% | 0% | 13% | 26% | 59%
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% | 13% | 26% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 13% | 26% | 59%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
75 20 2
82 13 1
47 12 1
62 11 1
44 10 1
41 9 7
58 8 2
40 8 2
64 8 1
29 7 3
36 7 1
39 7 1
55 7 1
31 7 2
24 6 3
32 6 1
19 6 1
28 5 1
26 5 2
25 5 2
24 5 3
20 5 2
11 4 1
11 4 1
37 4 1
15 3 4
16 3 4
18 3 4
15 3 4
15 3 4
16 3 4
20 3 1
14 3 3
23 3 2
13 3 4
17 3 1
10 3 1
20 3 1
11 3 1
9 3 2
15 3 3
16 3 3
10 3 1
28 3 1
15 3 3
8 2 4
9 2 3
14 2 3
7 2 2
11 2 2