File Complexity Overall
  • There are 18 files with units, with 1,581 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)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 18 simple files (McCabe index sum 1-25; 1,581 lines of code)
  • 49 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 0% | 100%
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
tsx0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
conversational-assistant0% | 0% | 0% | 0% | 100%
generative-ui0% | 0% | 0% | 0% | 100%
resume-extraction0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 18)

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
assistant.ts
in conversational-assistant/lib
205 1 20 10 20
route.ts
in conversational-assistant/app/api/turn_response
91 3 13 14 9
route.ts
in generative-ui/app/api/generate_ui
117 3 13 11 9
route.ts
in resume-extraction/app/api/extract_resume
96 5 9 9 4
route.ts
in conversational-assistant/app/api/tools/get_products
13 1 2 15 2
route.ts
in conversational-assistant/app/api/tools/get_product_details
16 1 2 13 2
route.ts
in conversational-assistant/app/api/tools/get_orders
13 1 2 15 2
user-actions.ts
in conversational-assistant/config
20 2 2 10 1
demo-data.ts
in conversational-assistant/config/data
139 2 2 1 1
chart.tsx
in conversational-assistant/components/ui
311 1 2 1 2
assistant.tsx
in conversational-assistant/components
35 1 2 6 2
chart.tsx
in generative-ui/components/ui
311 1 2 1 2
layout.tsx
in conversational-assistant/app
35 1 1 3 1
utils.ts
in conversational-assistant/lib
5 1 1 20 1
layout.tsx
in generative-ui/app
35 1 1 3 1
page.tsx
in generative-ui/app
99 1 1 1 1
utils.ts
in generative-ui/lib
5 1 1 20 1
layout.tsx
in resume-extraction/app
35 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...