File Complexity Overall
  • There are 20 files with units, with 2,340 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)
    • 1 slightly complex files (McCabe index sum 26-50; 157 lines of code)
    • 19 simple files (McCabe index sum 1-25; 2,183 lines of code)
  • 15 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 6% | 93%
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% | 12% | 87%
tsx0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 0% | 6% | 93%
Most Complex Files (Top 20)

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
157 8 41 26 16
supervisorAgent.ts
in src/app/agentConfigs/chatSupervisor
268 4 17 6 8
useRealtimeSession.ts
in src/app/hooks
166 3 12 7 7
useAudioDownload.ts
in src/app/hooks
77 1 12 16 12
guardrails.ts
in src/app/agentConfigs
83 4 9 11 3
BottomToolbar.tsx
in src/app/components
137 3 9 7 3
TranscriptContext.tsx
in src/app/contexts
113 3 7 6 3
returns.ts
in src/app/agentConfigs/customerServiceRetail
268 3 7 3 5
audioUtils.ts
in src/app/lib
48 3 6 13 3
route.ts
in src/app/api/responses
35 3 6 17 2
codecUtils.ts
in src/app/lib
19 1 5 26 5
sales.ts
in src/app/agentConfigs/customerServiceRetail
91 3 4 4 2
App.tsx
in src/app
441 2 2 0 1
EventContext.tsx
in src/app/contexts
62 1 2 3 2
Transcript.tsx
in src/app/components
218 1 2 1 2
route.ts
in src/app/api/session
26 1 2 8 2
GuardrailChip.tsx
in src/app/components
91 1 1 1 1
layout.tsx
in src/app
18 1 1 6 1
route.ts
in src/app/api/health
9 1 1 11 1
page.tsx
in src/app
13 1 1 8 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...