File Complexity Overall
  • There are 50 files with units, with 6,944 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 622 lines of code)
    • 48 simple files (McCabe index sum 1-25; 6,322 lines of code)
  • 161 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 8% | 91%
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
ts0% | 0% | 0% | 9% | 90%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
core0% | 0% | 0% | 32% | 67%
bundle0% | 0% | 0% | 3% | 96%
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
ad-sizes.ts
in core/src
406 30 41 10 10
index.ts
in bundle/src/lib/header-bidding/prebid
216 10 38 18 8
config.ts
in bundle/src/lib/header-bidding/prebid/bidders
619 14 24 4 5
event-timer.ts
in core/src
181 7 15 8 5
46 2 14 30 11
prepare-permutive.ts
in bundle/src/init/consented
252 3 14 6 6
utils.ts
in bundle/src/lib/header-bidding/prebid/modules/analyticsAdapter
79 2 12 15 9
email-hash.ts
in core/src
42 4 11 26 7
timed-queue.ts
in bundle/src/lib
95 4 9 9 4
eventHandlers.ts
in bundle/src/lib/header-bidding/prebid/modules/analyticsAdapter
244 4 9 4 5
pubmatic.js
in bundle/src/lib/__vendor
34 1 9 26 9
197 6 8 4 3
a9-apstag.js
in bundle/src/lib/__vendor
32 5 6 19 2
build-page-targeting.ts
in core/src/targeting
178 4 5 3 2
54 2 5 9 3
article-body-adverts.ts
in bundle/src/lib
59 1 5 8 5
youtube-ima.ts
in core/src/targeting
91 2 4 4 2
prepare-ad-verification.ts
in bundle/src/lib/ad-verification
68 2 4 6 3
passback.ts
in bundle/src/lib/messenger
281 1 4 1 4
non-refreshable-line-items.ts
in bundle/src/lib/dfp
40 1 4 10 4
23 1 3 13 3
teads-cookieless.ts
in bundle/src/init/consented
38 2 3 8 2
prepare-ootag.ts
in bundle/src/init/consentless
42 2 3 7 2
define-slot.ts
in bundle/src/define
217 2 3 1 2
commercial.ts
in bundle/src
27 3 3 11 1
session.ts
in core/src/targeting
92 1 2 2 2
locators.ts
in bundle/playwright/lib
37 2 2 5 1
prepare-googletag.ts
in bundle/src/init/consented
123 1 2 2 2
static-ad-slots.ts
in bundle/src/init/consented
98 1 2 2 2
university-guide.ts
in bundle/src/init/pages
55 1 2 4 2
article.ts
in bundle/src/insert/spacefinder
268 1 2 1 2
spacefinder.ts
in bundle/src/insert/spacefinder
501 2 2 0 1
slot-config.ts
in bundle/src/lib/header-bidding
255 1 2 1 2
render-advert.ts
in bundle/src/events
185 1 2 1 2
prepare-prebid.ts
in bundle/src/init/consented
52 1 1 2 1
rules.ts
in bundle/src/insert/spacefinder
270 1 1 0 1
init-slot-ias.ts
in bundle/src/define
105 1 1 1 1
Advert.ts
in bundle/src/define
399 1 1 0 1
inizio.ts
in bundle/src/lib/third-party-tags
50 1 1 2 1
47 1 1 2 1
url.ts
in bundle/src/lib
26 1 1 4 1
viewport.ts
in bundle/src/lib/messenger
78 1 1 1 1
background.ts
in bundle/src/lib/messenger
327 1 1 0 1
liveramp.ts
in bundle/src/lib/header-bidding/prebid/id-handlers
80 1 1 1 1
criteo.ts
in bundle/src/lib/header-bidding/prebid/bidders
13 1 1 8 1
appnexus.ts
in bundle/src/lib/header-bidding/prebid/bidders
98 1 1 1 1
ix.ts
in bundle/src/lib/header-bidding/prebid/bidders
12 1 1 8 1
xhb.ts
in bundle/src/lib/header-bidding/prebid/bidders
20 1 1 5 1
a9.ts
in bundle/src/lib/header-bidding/a9
96 1 1 1 1
on-slot-viewable.ts
in bundle/src/events
96 1 1 1 1
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...