facebookincubator / sks
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 98 units with 1,565 lines of code in units (81.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (108 lines of code)
    • 10 simple units (365 lines of code)
    • 87 very simple units (1,092 lines of code)
0% | 0% | 6% | 23% | 69%
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
go0% | 0% | 9% | 17% | 73%
c0% | 0% | 0% | 40% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
linux0% | 0% | 16% | 31% | 51%
macos0% | 0% | 0% | 30% | 69%
ROOT0% | 0% | 0% | 0% | 100%
diskio0% | 0% | 0% | 0% | 100%
utils0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
108 16 1
52 10 1
38 9 1
62 8 6
29 8 1
32 7 6
19 6 4
49 6 5
33 6 1
30 6 1
21 6 1
33 5 7
21 5 4
33 5 4
21 5 4
22 5 1
35 5 1
18 5 1
16 4 1
16 4 1
18 4 4
21 4 5
12 4 1
25 4 5
20 4 5
13 4 1
14 4 3
19 4 1
25 4 1
23 4 1
15 4 1
13 4 1
13 4 1
11 3 0
12 3 4
12 3 4
12 3 3
12 3 3
22 3 0
13 3 1
19 3 4
16 3 3
16 3 3
16 3 3
17 3 4
22 3 3
12 3 3
7 3 1
17 3 4
11 3 3