File Complexity Overall
  • There are 99 files with units, with 12,614 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 2 complex files (McCabe index sum 126-250; 1,249 lines of code)
    • 5 medium complex files (McCabe index sum 51-125; 1,959 lines of code)
    • 12 slightly complex files (McCabe index sum 26-50; 1,894 lines of code)
    • 80 simple files (McCabe index sum 1-25; 7,512 lines of code)
  • 49 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 9% | 15% | 15% | 59%
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% | 13% | 16% | 10% | 59%
tsx0% | 0% | 16% | 17% | 65%
py0% | 0% | 0% | 57% | 42%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
email-agent0% | 14% | 22% | 9% | 52%
excel-demo0% | 0% | 0% | 31% | 68%
research-agent0% | 0% | 0% | 50% | 50%
hello-world-v20% | 0% | 0% | 100% | 0%
simple-chatapp0% | 0% | 0% | 0% | 100%
ask-user-question-previews0% | 0% | 0% | 0% | 100%
resume-generator0% | 0% | 0% | 0% | 100%
hello-world0% | 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
imap-manager.ts
in email-agent/database
559 25 132 24 21
database-manager.ts
in email-agent/database
690 30 130 19 36
websocket-handler.ts
in email-agent/ccsdk
519 35 93 18 21
email-sync.ts
in email-agent/database
303 6 77 25 41
listeners-manager.ts
in email-agent/ccsdk
395 18 75 19 11
AssistantMessage.tsx
in email-agent/client/components/message
469 4 67 14 45
server.ts
in email-agent/server
273 4 51 19 48
emails.ts
in email-agent/server/endpoints
271 4 45 17 21
recalc.py
in excel-demo/agent/.claude/skills/xlsx
122 3 44 36 36
ui-state-manager.ts
in email-agent/ccsdk
168 13 38 23 6
extract_form_field_info.py
in research-agent/.claude/skills/pdf/scripts
100 4 37 37 23
session.ts
in email-agent/ccsdk
170 10 32 19 14
fill_fillable_fields.py
in research-agent/.claude/skills/pdf/scripts
78 3 31 40 14
package-tracker.ts
in email-agent/agent/.claude/skills/listener-creator/templates
68 4 30 44 15
actions-manager.ts
in email-agent/ccsdk
158 10 29 18 6
v2-examples.ts
in hello-world-v2
93 10 28 30 6
MessageInput.tsx
in excel-demo/src/renderer/components
301 2 27 9 24
Message.tsx
in excel-demo/src/renderer/components
197 6 26 13 20
subagent_tracker.py
in research-agent/research_agent/utils
168 7 26 15 10
session.ts
in simple-chatapp/server
119 10 24 20 8
ui-states.ts
in email-agent/server/endpoints
245 6 23 9 5
component-manager.ts
in email-agent/ccsdk
127 5 22 17 7
EmailViewer.tsx
in email-agent/client/components
148 1 20 14 20
ChatInterface.tsx
in excel-demo/src/renderer/components
174 1 18 10 18
server.ts
in ask-user-question-previews
151 4 18 12 9
check_bounding_boxes.py
in research-agent/.claude/skills/pdf/scripts
54 1 17 31 17
finance-email-tracker.ts
in email-agent/agent/custom_scripts/listeners
142 1 17 12 17
ai-client.ts
in email-agent/ccsdk
100 4 17 17 10
resume-generator.ts
in resume-generator
72 2 16 22 13
hello-world.ts
in hello-world
61 2 16 26 10
App.tsx
in simple-chatapp/client
165 1 16 10 16
email-search.ts
in email-agent/database
233 3 16 7 10
ActiveListenersPanel.tsx
in email-agent/client/components
186 2 16 9 8
todoDetection.ts
in excel-demo/src/renderer/components/utils
54 3 15 28 5
ChatWindow.tsx
in simple-chatapp/client/components
169 2 14 8 13
email-api.ts
in email-agent/agent
120 4 14 12 5
todo-extractor.ts
in email-agent/agent/custom_scripts/listeners
113 1 14 12 14
useUIState.ts
in email-agent/client/hooks
113 1 14 12 14
toolMetadata.ts
in excel-demo/src/renderer/components/utils
188 3 13 7 9
fill_pdf_form_with_annotations.py
in research-agent/.claude/skills/pdf/scripts
66 2 13 20 11
sync.ts
in email-agent/server/endpoints
124 2 13 10 7
TodoListDisplay.tsx
in excel-demo/src/renderer/components
109 1 12 11 12
menu.ts
in excel-demo/src/main
276 10 12 4 3
log-writer.ts
in email-agent/ccsdk
99 5 12 12 4
TaskBoardView.tsx
in email-agent/client/components/views
89 1 12 13 12
FinancialDashboardView.tsx
in email-agent/client/components/views
87 1 12 14 12
useWebSocket.ts
in email-agent/client/hooks
110 1 12 11 12
ToolUseDisplay.tsx
in excel-demo/src/renderer/components
79 1 11 14 11
listeners.ts
in email-agent/server/endpoints
88 1 11 13 11
useAgentSocket.ts
in ask-user-question-previews/client
60 4 11 18 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...