Linux / Arch / Nds32
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 341 units with 5,070 lines of code in units (47.7% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (363 lines of code)
    • 4 medium complex units (272 lines of code)
    • 25 simple units (736 lines of code)
    • 310 very simple units (3,699 lines of code)
0% | 7% | 5% | 14% | 72%
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% | 7% | 5% | 15% | 70%
h0% | 0% | 0% | 5% | 94%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
mm0% | 24% | 10% | 7% | 57%
kernel0% | 0% | 4% | 20% | 74%
math-emu0% | 0% | 0% | 8% | 91%
include0% | 0% | 0% | 5% | 94%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
183 47 4
180 28 2
68 23 1
50 20 5
106 17 2
48 14 5
36 10 3
25 10 2
28 10 2
34 10 2
33 9 2
12 8 1
40 8 2
42 8 1
67 8 2
34 8 1
15 7 1
33 7 1
42 7 5
27 7 2
22 7 2
23 7 3
32 7 2
21 7 1
36 7 1
29 7 1
26 7 2
23 7 1
25 6 2
16 6 2
15 6 2
26 5 3
19 5 3
23 5 1
19 5 3
16 5 2
62 5 1
57 5 1
25 5 1
15 5 4
39 5 1
20 5 1
19 5 3
56 5 1
31 5 3
20 5 1
28 5 1
27 5 1
27 5 1
25 5 2