facebook / facebook360_dep
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,580 units with 20,795 lines of code in units (55.8% of code).
    • 1 very complex units (238 lines of code)
    • 2 complex units (288 lines of code)
    • 49 medium complex units (2,861 lines of code)
    • 148 simple units (4,672 lines of code)
    • 1,380 very simple units (12,736 lines of code)
1% | 1% | 13% | 22% | 61%
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
cpp2% | 3% | 14% | 26% | 53%
py0% | 0% | 11% | 19% | 68%
h0% | 0% | 11% | 19% | 68%
js0% | 0% | 24% | 17% | 58%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/viewer47% | 0% | 7% | 0% | 44%
source/calibration0% | 9% | 9% | 23% | 57%
source/rig0% | 7% | 7% | 16% | 68%
website/static0% | 0% | 25% | 18% | 55%
scripts/render0% | 0% | 21% | 20% | 57%
source/depth_estimation0% | 0% | 18% | 39% | 41%
source/util0% | 0% | 21% | 10% | 67%
scripts/ui0% | 0% | 10% | 18% | 70%
source/render0% | 0% | 8% | 32% | 59%
source/isp0% | 0% | 23% | 34% | 42%
source/mesh_stream0% | 0% | 25% | 8% | 66%
source/conversion0% | 0% | 11% | 17% | 71%
source/gpu0% | 0% | 7% | 5% | 86%
scripts/util0% | 0% | 0% | 20% | 79%
scripts/aws0% | 0% | 0% | 21% | 78%
website/pages0% | 0% | 0% | 0% | 100%
scripts/applications0% | 0% | 0% | 0% | 100%
website/core0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
238 52 1
177 42 5
111 30 2
46 23 2
100 22 7
76 22 2
76 22 2
75 21 3
66 19 0
29 19 3
47 18 4
43 17 5
92 17 6
138 17 1
80 16 6
60 16 3
49 16 2
29 15 1
30 15 1
239 14 3
88 14 2
103 14 2
19 14 2
71 14 1
48 14 1
26 13 2
58 13 5
64 13 5
64 13 11
40 13 4
56 13 1
32 13 1
56 13 1
32 13 1
70 13 2
26 13 4
66 13 0
34 12 2
51 12 3
73 12 3
42 12 0
60 12 1
50 12 0
16 12 3
34 12 0
51 11 5
36 11 2
87 11 1
41 11 3
41 11 3