alibaba / pairec
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
6% | 9% | 24% | 16% | 42%
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
go6% | 9% | 24% | 16% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
datasource39% | 0% | 15% | 7% | 37%
algorithm20% | 0% | 9% | 14% | 54%
module2% | 22% | 35% | 17% | 22%
service3% | 1% | 37% | 27% | 30%
web20% | 0% | 12% | 21% | 45%
utils9% | 3% | 14% | 27% | 44%
sort0% | 20% | 41% | 11% | 26%
pkg0% | 3% | 13% | 12% | 70%
filter0% | 18% | 15% | 12% | 53%
ROOT0% | 0% | 18% | 26% | 54%
recconf0% | 0% | 24% | 24% | 50%
commands0% | 0% | 13% | 6% | 79%
config0% | 0% | 13% | 0% | 86%
persist0% | 0% | 0% | 32% | 67%
log0% | 0% | 0% | 26% | 73%
context0% | 0% | 0% | 42% | 57%
abtest0% | 0% | 0% | 82% | 17%
middleware0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
1235 191 0
454 102 0
211 78 1
195 73 2
236 63 1
148 56 1
148 56 1
141 55 1
255 53 1
203 48 1
199 48 1
240 46 1
162 44 1
129 43 2
176 39 1
175 38 1
157 35 1
138 34 1
73 34 1
145 33 4
157 33 1
138 32 1
116 30 1
125 30 1
146 30 1
151 30 1
114 29 1
139 29 1
143 28 1
117 28 1
110 28 1
110 28 1
110 28 1
110 28 1
115 27 1
93 27 1
123 27 0
130 27 0
82 26 1
95 26 1
105 25 1
139 25 2
96 25 1
96 25 1
75 25 1
102 25 1
108 25 1
55 24 1
120 24 1
111 24 0