File Complexity Overall
  • There are 49 files with units, with 8,110 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 751 lines of code)
    • 5 medium complex files (McCabe index sum 51-125; 2,455 lines of code)
    • 12 slightly complex files (McCabe index sum 26-50; 2,255 lines of code)
    • 31 simple files (McCabe index sum 1-25; 2,649 lines of code)
  • 18 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 9% | 30% | 27% | 32%
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% | 22% | 39% | 19% | 18%
js0% | 0% | 51% | 30% | 18%
py0% | 0% | 0% | 45% | 54%
tsx0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
console0% | 44% | 24% | 0% | 31%
labs0% | 0% | 51% | 30% | 18%
javascript-app0% | 0% | 42% | 29% | 27%
python-app0% | 0% | 0% | 45% | 54%
Most Complex Files (Top 49)

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
useRunStream.ts
in console/components
751 16 143 19 108
helpers.ts
in console/components
415 38 100 24 13
runner-manager.ts
in javascript-app/src
617 44 94 15 7
app.js
in labs/paint-lab-template
598 19 90 15 27
tools.js
in labs/paint-lab-template/editor
519 17 86 17 24
responses-loop.ts
in javascript-app/src
306 13 63 21 40
responses_loop.py
in python-app/app
271 5 49 18 44
javascript-process.ts
in javascript-app/src/browser
253 6 47 19 26
worker.py
in python-app/app/desktop
156 7 46 29 15
document.js
in labs/paint-lab-template/editor
187 16 31 17 5
server.ts
in javascript-app/src
265 3 31 12 28
pixels.js
in labs/paint-lab-template/editor
91 5 30 33 14
persistence.js
in labs/paint-lab-template/editor
139 8 30 22 17
api.py
in python-app/app
202 2 29 14 28
app.js
in labs/booking-lab-template
249 13 28 11 9
models.py
in python-app/app
161 6 28 17 11
javascript-worker.ts
in javascript-app/src
122 6 28 23 11
processes.py
in python-app/app
159 15 27 17 5
release_inputs.py
in python-app/app/desktop
118 5 24 20 10
app.js
in labs/kanban-lab-template
203 7 23 11 9
runner.py
in python-app/app
302 8 18 6 4
scenario-runtime.ts
in javascript-app/src
187 8 18 10 7
history.js
in labs/paint-lab-template/editor
68 8 17 25 6
page.tsx
in console/app
71 2 15 21 10
geometry.js
in labs/paint-lab-template/editor
44 6 14 32 5
storage.py
in python-app/app
98 8 13 13 3
runtime.py
in python-app/app/desktop
218 3 12 6 9
renderer.js
in labs/paint-lab-template/editor
85 8 11 13 2
ActivityFeed.tsx
in console/components
137 1 11 8 11
session.ts
in javascript-app/src/browser
102 6 10 10 2
lab_catalog.py
in python-app/app
19 3 6 32 3
lease.py
in python-app/app
22 3 6 27 3
__main__.py
in python-app/app
47 1 6 13 6
executor-registry.ts
in javascript-app/src
56 4 6 11 2
runner-request.ts
in console/components
33 1 6 18 6
RunControls.tsx
in console/components
228 3 6 3 4
workspace-lab-server.ts
in javascript-app/src
93 2 5 5 4
RunSummary.tsx
in console/components
52 2 5 10 3
errors.ts
in javascript-app/src
27 2 4 15 2
lab-catalog.ts
in javascript-app/src
21 3 4 19 2
index.ts
in javascript-app/src
39 3 4 10 2
config.py
in python-app/app
27 3 3 11 1
lab_server.py
in python-app/app
69 2 3 4 2
errors.py
in python-app/app
10 2 3 30 2
backend-lease.ts
in javascript-app/src
21 1 3 14 3
protocol.ts
in javascript-app/src/browser
32 1 3 9 3
browser.py
in python-app/app
190 1 1 1 1
tsup.config.ts
in javascript-app
11 1 1 9 1
layout.tsx
in console/app
19 1 1 5 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...