facebookincubator / isometric_pattern_matcher
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 150 units with 1,768 lines of code in units (66.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 7 medium complex units (394 lines of code)
    • 15 simple units (531 lines of code)
    • 128 very simple units (843 lines of code)
0% | 0% | 22% | 30% | 47%
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
h0% | 0% | 37% | 9% | 53%
cpp0% | 0% | 12% | 44% | 43%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
IsometricPatternMatcher0% | 0% | 22% | 30% | 47%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
66 18 1
118 15 4
41 15 4
43 13 5
49 12 4
42 12 6
35 12 2
54 10 7
41 10 9
25 10 2
47 9 7
50 8 2
59 8 7
28 8 3
49 8 5
29 7 5
22 7 1
26 6 4
40 6 8
44 6 3
9 6 1
8 6 2
21 5 2
19 5 1
29 5 4
13 5 1
18 4 2
47 4 2
28 4 1
13 4 6
3 4 2
3 4 3
9 4 2
6 4 1
25 4 0
6 4 1
14 4 2
8 3 0
23 3 3
27 3 3
29 3 1
16 3 0
7 3 1
21 3 0
12 3 0
11 3 1
6 2 1
21 2 1
15 2 5
23 2 1