facebook / remodel
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 1,972 units with 16,680 lines of code in units (93.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (52 lines of code)
    • 7 simple units (185 lines of code)
    • 1,964 very simple units (16,443 lines of code)
0% | 0% | <1% | 1% | 98%
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
ts0% | 0% | <1% | 1% | 98%
js0% | 0% | 0% | 3% | 96%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | <1% | 2% | 97%
src/js/object-mona-parser0% | 0% | 0% | 6% | 93%
src/plugins0% | 0% | 0% | 0% | 100%
features/support0% | 0% | 0% | 0% | 100%
src/js/object-mona-parser/algebraic-type0% | 0% | 0% | 0% | 100%
src/js/object-mona-parser/object-spec0% | 0% | 0% | 0% | 100%
src/js/require-plugin0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
52 23 2
41 7 12
19 7 2
41 7 2
25 6 2
19 6 5
20 6 1
20 6 1
43 5 2
26 5 2
21 5 6
40 5 2
20 5 3
19 5 0
14 5 1
19 5 1
83 5 1
28 4 3
27 4 2
41 4 1
10 4 1
22 4 2
209 4 6
44 4 1
30 4 2
24 4 2
22 4 1
9 4 2
19 4 3
24 4 0
76 4 1
11 4 1
23 4 1
51 4 1
20 4 1
33 4 1
13 4 1
9 3 1
18 3 3
9 3 1
9 3 1
11 3 1
34 3 2
14 3 2
13 3 2
18 3 1
9 3 1
10 3 1
53 3 1
7 3 1