File Complexity Overall
  • There are 119 files with units, with 21,306 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 2 complex files (McCabe index sum 126-250; 1,091 lines of code)
    • 12 medium complex files (McCabe index sum 51-125; 6,006 lines of code)
    • 22 slightly complex files (McCabe index sum 26-50; 6,313 lines of code)
    • 83 simple files (McCabe index sum 1-25; 7,896 lines of code)
  • 81 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 5% | 28% | 29% | 37%
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
py0% | 7% | 33% | 29% | 30%
tsx0% | 0% | 29% | 20% | 49%
ts0% | 0% | 11% | 30% | 57%
js0% | 0% | 0% | 66% | 33%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
smash0% | 79% | 0% | 14% | 6%
chess0% | 5% | 49% | 30% | 14%
tv0% | 0% | 57% | 16% | 25%
learning0% | 0% | 21% | 31% | 46%
fantasy0% | 0% | 16% | 33% | 50%
waker0% | 0% | 21% | 67% | 11%
podcast0% | 0% | 0% | 100% | 0%
tools0% | 0% | 0% | 76% | 23%
cameo0% | 0% | 0% | 0% | 100%
games0% | 0% | 0% | 0% | 100%
kundali0% | 0% | 0% | 0% | 100%
wearable0% | 0% | 0% | 0% | 100%
roast0% | 0% | 0% | 0% | 100%
prisoner0% | 0% | 0% | 0% | 100%
history0% | 0% | 0% | 0% | 100%
factuality0% | 0% | 0% | 0% | 100%
artifacts0% | 0% | 0% | 0% | 100%
utils0% | 0% | 0% | 0% | 100%
startupcon0% | 0% | 0% | 0% | 100%
bricks0% | 0% | 0% | 0% | 100%
recap0% | 0% | 0% | 0% | 100%
tedx0% | 0% | 0% | 0% | 100%
oxford0% | 0% | 0% | 0% | 100%
cost0% | 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
768 58 143 19 18
323 24 137 42 15
439 12 111 25 29
draft.py
in fantasy/agents/src/agents
481 33 104 22 11
SocraticDialogue.tsx
in learning/app/components
719 2 78 11 74
935 20 65 7 8
1117 11 62 6 20
parse_pgn.py
in chess
365 9 62 17 23
522 9 60 11 20
228 7 59 26 15
340 9 57 17 11
267 7 54 20 23
route.ts
in learning/app/api/socratic-dialogue
396 7 51 13 18
197 3 51 26 25
retroarch.py
in smash
141 12 49 35 7
853 9 45 5 14
roboflow.py
in chess
215 8 43 20 13
page.tsx
in learning/app
296 2 42 14 41
182 8 41 23 9
595 6 41 7 22
main.py
in podcast
340 25 39 11 5
offscreen.js
in fantasy/commentary-extension
289 11 39 13 8
embed-video-segments.ts
in learning/scripts/youtube
243 4 38 16 18
219 6 38 17 10
transcribe-audio.ts
in learning/scripts/youtube
216 3 37 17 33
map-segments-to-concepts.ts
in learning/scripts/youtube
255 9 36 14 17
434 9 35 8 10
analyze-frames.ts
in learning/scripts/youtube
341 7 34 10 15
data_gatherer.py
in tv/film_context
169 2 32 19 20
194 3 32 16 25
ingestion_job.py
in fantasy/ingestion/src/ingestion
496 11 32 6 9
197 5 31 16 11
merge_pcg.py
in learning
96 9 29 30 5
ConceptDetails.tsx
in learning/app/components
207 4 27 13 12
background.js
in fantasy/commentary-extension
193 5 27 14 13
142 4 26 18 17
chunk-paip.ts
in learning/scripts
329 6 25 8 7
tmdb_client.py
in tv/film_context
81 2 25 31 15
prisoner.py
in prisoner
180 8 23 13 7
ConceptGraph.tsx
in learning/app/components
300 1 22 7 22
ares.py
in games
103 3 22 21 17
athena.py
in games
103 3 22 21 17
enrich-concepts.ts
in learning/scripts/youtube
274 10 20 7 4
draft_tools.py
in fantasy/agents/src/agents/draft_commentary_agent
115 8 19 17 7
popup.js
in fantasy/commentary-extension
183 5 19 10 6
main.py
in wearable
209 12 17 8 4
181 2 16 9 13
embed-chunks.ts
in learning/scripts
153 2 15 10 11
111 2 15 14 8
main.py
in kundali
229 9 14 6 6
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...