File Complexity Overall
  • There are 131 files with units, with 18,258 lines of code.
    • 1 very complex files (McCabe index sum 251+; 4,716 lines of code)
    • 2 complex files (McCabe index sum 126-250; 1,464 lines of code)
    • 6 medium complex files (McCabe index sum 51-125; 1,064 lines of code)
    • 13 slightly complex files (McCabe index sum 26-50; 1,892 lines of code)
    • 109 simple files (McCabe index sum 1-25; 9,122 lines of code)
  • 120 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system25% | 8% | 5% | 10% | 49%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
js25% | 8% | 5% | 10% | 49%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
charts26% | 8% | 5% | 10% | 49%
scripts0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
moment.js
in charts/shared
4716 359 1389 29 28
toolbelt.js
in charts/shared
643 47 199 31 11
sonic.js
in charts/shared
821 27 130 16 20
table.js
in charts/shared
282 20 100 35 18
sl.js
in charts/shared/locale
164 3 97 59 81
uk.js
in charts/shared/locale
157 12 72 46 8
cs.js
in charts/shared/locale
169 4 62 37 43
sk.js
in charts/shared/locale
138 4 61 44 43
wrangle.js
in charts/shared
154 8 51 33 11
is.js
in charts/shared/locale
134 2 49 37 46
hr.js
in charts/shared/locale
150 3 48 32 32
bs.js
in charts/shared/locale
143 3 48 34 32
hu.js
in charts/shared/locale
111 6 46 41 37
mr.js
in charts/shared/locale
195 5 42 22 26
ru.js
in charts/shared/locale
193 7 42 22 10
be.js
in charts/shared/locale
134 7 38 28 11
pl.js
in charts/shared/locale
128 5 31 24 17
fi.js
in charts/shared/locale
118 2 28 24 25
mn.js
in charts/shared/locale
94 4 27 29 20
ar.js
in charts/shared/locale
181 18 27 15 7
ar-ly.js
in charts/shared/locale
165 18 27 16 7
ar-dz.js
in charts/shared/locale
146 17 26 18 7
zh-cn.js
in charts/shared/locale
111 5 25 23 8
gom-latn.js
in charts/shared/locale
117 4 23 20 8
gom-deva.js
in charts/shared/locale
119 4 23 19 8
sr-cyrl.js
in charts/shared/locale
114 4 23 20 9
sr.js
in charts/shared/locale
116 4 23 20 9
tlh.js
in charts/shared/locale
114 4 22 19 7
zh-mo.js
in charts/shared/locale
93 3 22 24 9
zh-hk.js
in charts/shared/locale
93 3 22 24 9
ug-cn.js
in charts/shared/locale
104 5 22 21 8
zh-tw.js
in charts/shared/locale
93 3 22 24 9
dt.js
in charts/shared
79 5 20 25 9
lb.js
in charts/shared/locale
117 5 20 17 10
81 7 19 23 6
bn-bd.js
in charts/shared/locale
121 4 19 16 10
el.js
in charts/shared/locale
99 6 18 18 4
he.js
in charts/shared/locale
87 6 18 21 7
ta.js
in charts/shared/locale
124 5 18 15 8
it.js
in charts/shared/locale
99 5 18 18 6
br.js
in charts/shared/locale
159 8 18 11 6
mk.js
in charts/shared/locale
80 2 17 21 9
tg.js
in charts/shared/locale
111 3 17 15 8
bg.js
in charts/shared/locale
82 2 17 21 9
ca.js
in charts/shared/locale
95 6 17 18 7
lt.js
in charts/shared/locale
120 6 17 14 6
kn.js
in charts/shared/locale
118 5 16 14 8
ja.js
in charts/shared/locale
143 6 16 11 6
me.js
in charts/shared/locale
109 4 16 15 8
gu.js
in charts/shared/locale
114 4 15 13 8
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...