mozilla-firefox / infra-testing
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
6% | 6% | 17% | 17% | 52%
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
cpp6% | 7% | 20% | 19% | 45%
c9% | 9% | 17% | 15% | 48%
h6% | 1% | 4% | 7% | 79%
cc7% | 9% | 19% | 13% | 49%
js1% | 4% | 15% | 19% | 58%
py2% | 6% | 21% | 21% | 48%
cxx39% | 7% | 28% | 12% | 13%
java7% | 3% | 13% | 14% | 61%
mm7% | 8% | 20% | 17% | 46%
hh1% | 2% | 17% | 22% | 55%
cs14% | 18% | 9% | 8% | 49%
rs0% | 3% | 12% | 14% | 69%
inc0% | 4% | 14% | 8% | 72%
pl0% | 4% | 12% | 21% | 61%
kt0% | 0% | 4% | 5% | 90%
go0% | 0% | 11% | 39% | 48%
perl0% | 0% | 0% | 67% | 32%
nsh0% | 0% | 0% | 0% | 100%
hpp0% | 0% | 0% | 0% | 100%
sjs0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
hxx0% | 0% | 0% | 0% | 100%
inl0% | 0% | 0% | 0% | 100%
kts0% | 0% | 0% | 0% | 100%
pm0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
media10% | 8% | 14% | 13% | 52%
js7% | 5% | 15% | 14% | 56%
gfx5% | 6% | 18% | 17% | 51%
dom3% | 6% | 17% | 20% | 52%
toolkit4% | 5% | 19% | 18% | 51%
intl11% | 8% | 19% | 18% | 42%
parser36% | 6% | 7% | 7% | 42%
netwerk8% | 8% | 22% | 18% | 42%
layout5% | 9% | 21% | 19% | 44%
other-licenses12% | 11% | 21% | 13% | 40%
widget7% | 7% | 19% | 20% | 44%
security4% | 4% | 18% | 17% | 54%
testing4% | 6% | 19% | 19% | 49%
extensions26% | 5% | 24% | 17% | 25%
modules12% | 12% | 22% | 19% | 32%
editor7% | 18% | 27% | 18% | 27%
mozglue10% | 6% | 16% | 13% | 52%
devtools1% | 2% | 13% | 18% | 64%
accessible7% | 7% | 18% | 21% | 44%
nsprpub7% | 13% | 22% | 16% | 39%
xpcom3% | 5% | 14% | 16% | 59%
browser1% | 5% | 17% | 20% | 53%
tools4% | 4% | 21% | 21% | 47%
image6% | 5% | 21% | 20% | 46%
python3% | 2% | 20% | 22% | 51%
build7% | 13% | 19% | 19% | 39%
uriloader5% | 10% | 20% | 17% | 45%
mobile<1% | <1% | 7% | 9% | 81%
mfbt2% | 1% | 4% | 17% | 74%
config8% | 13% | 30% | 24% | 23%
taskcluster<1% | 7% | 22% | 23% | 45%
ipc0% | 4% | 13% | 18% | 63%
servo0% | 2% | 11% | 16% | 69%
memory0% | 8% | 18% | 16% | 56%
docshell0% | 4% | 23% | 18% | 52%
storage0% | 4% | 11% | 22% | 61%
caps0% | 6% | 23% | 23% | 46%
xpfe0% | 5% | 19% | 25% | 49%
hal0% | 0% | 25% | 18% | 56%
startupcache0% | 0% | 30% | 17% | 51%
view0% | 0% | 17% | 20% | 62%
ROOT0% | 0% | 32% | 32% | 34%
remote0% | 0% | 11% | 4% | 84%
chrome0% | 0% | 7% | 36% | 56%
services0% | 0% | 0% | 41% | 58%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
2605 1494 1
2605 1494 1
2699 1348 1
1591 873 1
1591 873 1
1591 873 1
3989 830 7
2160 810 3
793 622 2
767 621 1
4470 492 4
2148 482 9
877 431 4
2525 429 2
853 375 8
1312 371 3
1382 365 3
1259 343 2
3041 329 12
535 316 1
535 316 1
535 316 1
729 280 1
838 280 1
712 279 13
1827 275 2
354 268 0
418 265 11
944 259 5
407 255 0
2228 253 2
1024 252 3
941 250 1
1068 249 3
262 244 2
289 238 1
394 226 2
874 225 4
449 223 1
509 221 4
452 221 4
342 216 1
342 216 1
673 211 1
228 211 1
929 209 2
573 207 3
650 205 1
635 204 2
635 204 2