facebookincubator / later
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 190 units with 1,948 lines of code in units (76.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 12 medium complex units (529 lines of code)
    • 23 simple units (421 lines of code)
    • 155 very simple units (998 lines of code)
0% | 0% | 27% | 21% | 51%
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
py0% | 0% | 27% | 21% | 50%
pyi0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
later/unittest/backport0% | 0% | 28% | 21% | 50%
later/unittest0% | 0% | 24% | 35% | 40%
later0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
102 24 1
74 20 6
44 19 2
31 16 3
59 15 2
32 14 3
25 13 2
30 13 3
31 12 2
52 12 2
20 11 4
29 11 2
24 10 5
13 10 1
18 10 2
13 9 2
28 9 2
17 8 3
28 8 3
18 8 3
19 8 1
23 7 5
21 7 1
24 7 4
20 7 1
18 7 1
14 7 1
30 6 1
10 6 3
10 6 1
18 6 2
18 6 1
14 6 1
14 6 3
9 6 1
6 5 1
7 5 1
12 5 2
35 5 13
14 5 2
9 5 3
10 5 2
11 5 1
25 5 7
9 5 3
11 5 1
7 4 1
2 4 4
8 4 1
17 4 1