File Complexity Overall
  • There are 30 files with units, with 11,421 lines of code.
    • 1 very complex files (McCabe index sum 251+; 2,599 lines of code)
    • 1 complex files (McCabe index sum 126-250; 2,179 lines of code)
    • 1 medium complex files (McCabe index sum 51-125; 935 lines of code)
    • 5 slightly complex files (McCabe index sum 26-50; 1,723 lines of code)
    • 22 simple files (McCabe index sum 1-25; 3,985 lines of code)
  • 38 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system22% | 19% | 8% | 15% | 34%
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
ts23% | 19% | 8% | 12% | 36%
py0% | 0% | 0% | 100% | 0%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src23% | 20% | 8% | 10% | 36%
server0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 100% | 0%
.fttemplates0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 30)

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
conversation.ts
in src/components/conversation
2599 46 265 10 47
app.ts
in src/components/app
2179 36 140 6 12
preference-window.ts
in src/components/preference-window
935 28 57 6 13
387 4 40 10 24
token-window.ts
in src/components/token-window
554 17 40 7 7
message-developer-content.ts
in src/components/message-developer-content
313 7 30 10 12
message-system-content.ts
in src/components/message-system-content
314 7 29 9 11
155 9 26 17 9
codex-session.ts
in src/utils
743 9 24 3 6
codex.ts
in src/components/codex
187 9 19 10 6
search-window.ts
in src/components/search-window
223 11 19 9 4
93 7 18 19 6
floating-toolbar.ts
in src/components/floating-toolbar
174 8 18 10 4
request-worker.ts
in src/components/app
179 7 18 10 7
patch-preview.ts
in src/utils
44 5 15 34 5
url-manager.ts
in src/components/app
127 3 15 12 9
message-unsupported.ts
in src/components/message-unsupported
100 6 15 15 5
pagination.ts
in src/components/pagination
154 5 13 8 6
toast.ts
in src/components/toast
162 5 13 8 4
message-code.ts
in src/components/message-code
74 5 11 15 4
input-dialog.ts
in src/components/input-dialog
161 6 11 7 4
message-editor-popover.ts
in src/components/message-editor-popover
171 6 11 6 4
menu.ts
in src/components/menu
86 6 11 13 4
confirm-dialog.ts
in src/components/confirm-dialog
140 6 10 7 3
message-text.ts
in src/components/message-text
98 5 10 10 4
api-manager.ts
in src/utils
536 3 8 1 6
json-viewer.ts
in src/components/json-viewer
54 4 5 9 2
message-hidden.ts
in src/components/message-hidden
53 3 4 8 2
utils.ts
in src/utils
400 2 3 1 2
[FTName].ts
in .fttemplates/default-template
26 2 2 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...