facebook / fbshipit
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 359 units with 4,814 lines of code in units (88.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (375 lines of code)
    • 17 simple units (841 lines of code)
    • 336 very simple units (3,598 lines of code)
0% | 0% | 7% | 17% | 74%
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
php0% | 0% | 7% | 17% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/shipit0% | 0% | 14% | 7% | 77%
src/shipit/repo0% | 0% | 9% | 16% | 74%
src/shipit/phase0% | 0% | 4% | 32% | 62%
src/shipit/filter0% | 0% | 7% | 18% | 73%
src/importit/filter0% | 0% | 0% | 31% | 68%
src/shipit/github0% | 0% | 0% | 0% | 100%
src/importit/phase0% | 0% | 0% | 0% | 100%
src/importit/repo0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
103 22 0
58 20 2
62 15 1
77 12 0
38 12 2
37 11 1
59 10 2
36 10 1
66 10 2
49 8 1
44 8 1
39 7 3
33 7 2
39 7 1
25 6 0
148 6 3
100 6 2
72 6 1
13 6 0
25 6 0
29 6 3
26 6 1
38 6 3
29 5 3
29 5 1
34 5 0
33 5 2
51 5 3
17 5 1
20 5 1
53 5 3
42 5 3
38 4 2
29 4 1
15 4 0
22 4 1
23 4 1
43 4 2
21 4 4
22 4 3
10 4 1
23 4 6
32 4 4
25 4 0
44 4 1
15 4 0
42 4 3
26 4 0
30 4 2
21 4 2