facebookincubator / go2chef
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 256 units with 2,455 lines of code in units (74.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (131 lines of code)
    • 20 simple units (615 lines of code)
    • 234 very simple units (1,709 lines of code)
0% | 0% | 5% | 25% | 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% | 5% | 25% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
plugin/source0% | 0% | 23% | 34% | 42%
plugin/step0% | 0% | 3% | 22% | 74%
scripts0% | 0% | 0% | 64% | 35%
ROOT0% | 0% | 0% | 17% | 82%
cli0% | 0% | 0% | 41% | 58%
plugin/lib0% | 0% | 0% | 24% | 75%
util/temp0% | 0% | 0% | 54% | 45%
plugin/logger0% | 0% | 0% | 0% | 100%
plugin/config0% | 0% | 0% | 0% | 100%
util/plugconf0% | 0% | 0% | 0% | 100%
util0% | 0% | 0% | 0% | 100%
util/testutil0% | 0% | 0% | 0% | 100%
util/hashfile0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
90 20 1
41 11 1
47 10 1
39 10 1
56 10 2
42 8 1
29 8 1
24 8 1
35 8 1
24 8 2
33 7 2
23 7 1
23 7 1
32 7 2
23 7 1
43 7 1
23 6 1
19 6 1
20 6 1
25 6 1
32 6 1
23 6 4
21 5 1
21 5 1
19 5 1
37 5 1
17 5 1
19 5 1
38 5 1
15 5 1
15 5 1
15 5 1
13 4 2
12 4 1
12 4 1
12 4 1
23 4 1
16 4 1
11 4 1
26 4 1
10 4 1
14 4 1
14 4 1
24 4 1
14 4 1
16 4 1
15 4 1
10 4 1
16 4 1
17 4 1