File Complexity Overall
  • There are 26 files with units, with 6,623 lines of code.
    • 1 very complex files (McCabe index sum 251+; 1,239 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 1 medium complex files (McCabe index sum 51-125; 765 lines of code)
    • 5 slightly complex files (McCabe index sum 26-50; 1,942 lines of code)
    • 19 simple files (McCabe index sum 1-25; 2,677 lines of code)
  • 45 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system18% | 0% | 11% | 29% | 40%
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
ts44% | 0% | 27% | 7% | 19%
tsx0% | 0% | 0% | 48% | 51%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src18% | 0% | 11% | 29% | 40%
Most Complex Files (Top 26)

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
index.ts
in src/gemini_95
1239 35 276 22 30
index.ts
in src/maps_planner
765 22 125 16 19
playground.tsx
in src/p5js_playground
462 19 40 9 8
Content.tsx
in src/spatial_understanding
500 3 36 7 30
Home.tsx
in src/gemini_co_drawing
361 1 31 9 31
App.tsx
in src/video_toys
399 2 30 8 29
index.ts
in src/gif_maker
220 5 28 13 9
Prompt.tsx
in src/spatial_understanding
317 3 24 8 12
Home.tsx
in src/image_to_code
416 2 17 4 14
websocket-interceptor.js
in src/server_proxy/server/public
49 3 16 33 12
index.ts
in src/tiny_cats
99 3 13 13 9
index.ts
in src/pdf_summary
178 9 12 7 2
textGeneration.ts
in src/video_toys/lib
108 1 11 10 11
index.tsx
in src/p5js_playground
182 3 10 5 6
youtube.ts
in src/video_toys/lib
68 3 10 15 4
index.ts
in src/maps_explorer
91 4 10 11 4
ContentContainer.tsx
in src/video_toys/components
464 2 6 1 5
TopBar.tsx
in src/spatial_understanding
71 1 5 7 5
index.tsx
in src/video_toys
47 2 4 9 2
ExampleGallery.tsx
in src/video_toys/components
101 1 4 4 4
App.tsx
in src/spatial_understanding
48 1 3 6 3
utils.tsx
in src/spatial_understanding
21 2 3 14 2
consts.tsx
in src/spatial_understanding
93 2 2 2 1
server.js
in src/server_proxy/server
262 1 1 0 1
hooks.tsx
in src/spatial_understanding
25 1 1 4 1
DetectTypeSelector.tsx
in src/spatial_understanding
37 1 1 3 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...