File Complexity Overall
  • There are 28 files with units, with 1,920 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)
    • 1 medium complex files (McCabe index sum 51-125; 482 lines of code)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 27 simple files (McCabe index sum 1-25; 1,438 lines of code)
  • 28 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 25% | 0% | 74%
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% | 46% | 0% | 53%
tsx0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
lib0% | 0% | 75% | 0% | 24%
components0% | 0% | 0% | 0% | 100%
app0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 28)

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
482 1 88 18 88
94 3 25 27 19
file-upload.tsx
in components
256 1 16 6 16
route.ts
in app/api/google/callback
61 1 13 21 13
tool-call.tsx
in components
195 4 13 7 5
40 5 8 20 2
route.ts
in app/api/turn_response
51 4 7 14 3
route.ts
in app/api/functions/get_weather
45 1 6 13 6
route.ts
in app/api/container_files/content
34 1 6 18 6
route.ts
in app/api/functions/get_joke
17 1 4 24 4
assistant.tsx
in components
54 1 4 7 4
75 1 4 5 4
mcp-tools-list.tsx
in components
63 2 4 6 2
route.ts
in app/api/vector_stores/list_files
15 1 3 20 3
route.ts
in app/api/vector_stores/retrieve_store
15 1 3 20 3
route.ts
in app/api/google/status
18 1 3 17 3
page.tsx
in app
45 1 3 7 3
route.ts
in app/api/vector_stores/create_store
14 1 2 14 2
route.ts
in app/api/vector_stores/add_file
17 1 2 12 2
route.ts
in app/api/vector_stores/upload_file
19 1 2 11 2
connectors.ts
in lib/tools
21 1 2 10 2
37 1 1 3 1
route.ts
in app/api/google/auth
45 1 1 2 1
constants.ts
in config
35 1 1 3 1
mcp-approval.tsx
in components
39 1 1 3 1
panel-config.tsx
in components
47 1 1 2 1
81 1 1 1 1
utils.ts
in lib
5 1 1 20 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...