alibaba / MongoShake
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
Learn more...
Conditional Complexity Overall
1% | 5% | 29% | 24% | 38%
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
go1% | 5% | 28% | 24% | 39%
py0% | 0% | 49% | 27% | 23%
c0% | 0% | 79% | 0% | 20%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cmd32% | 19% | 10% | 23% | 14%
executor0% | 17% | 38% | 21% | 21%
collector0% | 3% | 31% | 26% | 37%
common0% | 0% | 28% | 17% | 53%
scripts0% | 0% | 66% | 13% | 20%
oplog0% | 0% | 27% | 12% | 59%
tunnel0% | 0% | 10% | 38% | 51%
sharding0% | 0% | 55% | 32% | 11%
quorum0% | 0% | 50% | 11% | 38%
tools0% | 0% | 28% | 25% | 45%
receiver0% | 0% | 0% | 84% | 16%
modules0% | 0% | 0% | 32% | 67%
unit_test_common0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
190 87 0
115 47 0
128 36 4
134 35 1
56 30 2
89 26 3
58 25 2
61 25 2
45 23 2
96 22 1
97 21 2
91 21 2
68 21 1
80 21 1
84 21 1
81 20 1
75 20 1
70 20 1
84 19 1
95 19 3
61 18 2
66 18 2
61 18 1
90 18 1
56 18 1
60 17 1
46 17 1
63 16 1
51 16 1
73 16 4
15 15 2
50 15 1
34 15 1
35 15 3
37 14 1
51 14 1
37 14 1
44 14 0
61 13 1
44 13 1
46 13 1
61 13 6
29 13 2
62 13 1
55 13 2
50 13 1
67 13 1
60 13 1
38 12 1
33 12 1