File Complexity Overall
  • There are 43 files with units, with 6,603 lines of code.
    • 1 very complex files (McCabe index sum 251+; 1,129 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 4 medium complex files (McCabe index sum 51-125; 1,954 lines of code)
    • 5 slightly complex files (McCabe index sum 26-50; 1,137 lines of code)
    • 33 simple files (McCabe index sum 1-25; 2,383 lines of code)
  • 28 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system17% | 0% | 29% | 17% | 36%
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
ts24% | 0% | 19% | 17% | 38%
py0% | 0% | 54% | 15% | 30%
pyi0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
plugins24% | 0% | 34% | 25% | 15%
python0% | 0% | 48% | 0% | 51%
typescript0% | 0% | 0% | 0% | 100%
.github0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 43)

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
controller.ts
in plugins/bits-and-bolts/src/app
1129 32 261 23 47
__init__.py
in python/src/openai_mcp_form_protocol
409 22 124 30 32
build-models.py
in plugins/bits-and-bolts/scripts
643 21 121 19 22
scene.ts
in plugins/bits-and-bolts/src/app/viewer
535 30 71 13 11
catalog.ts
in plugins/bits-and-bolts/src/server
367 21 70 19 13
model_studio.py
in plugins/bits-and-bolts/scripts
187 5 46 25 21
three.ts
in plugins/bits-and-bolts/src/app/renderers
160 12 38 24 11
register.ts
in plugins/bits-and-bolts/src/server
541 12 30 6 17
model.ts
in plugins/bits-and-bolts/src/app/shared
129 4 27 21 15
model_gltf.py
in plugins/bits-and-bolts/scripts
120 2 26 22 14
settings.py
in python/src/openai_mcp_extensions
248 8 25 10 10
check_packages.py
in .github/scripts
83 1 17 20 17
_schema.py
in python/src/openai_mcp_extensions/form
30 5 14 47 6
model.ts
in plugins/bits-and-bolts/src/app/viewer
106 3 13 12 8
local-store.ts
in plugins/bits-and-bolts/src/server
49 8 12 24 2
schema.ts
in typescript/src/server/forms
81 3 11 14 9
settings.ts
in typescript/src/server
258 1 11 4 11
preview.ts
in plugins/bits-and-bolts/src/app/shared
96 1 10 10 10
extensions.ts
in typescript/src/app
74 5 10 14 2
resources.ts
in typescript/src/app
221 5 9 4 2
forms.ts
in plugins/bits-and-bolts/src/server
62 1 7 11 7
transport.ts
in typescript/src/app
115 5 7 6 2
mentions.py
in python/src/openai_mcp_extensions
61 3 6 10 4
prepare-legends.py
in plugins/bits-and-bolts/scripts
74 1 6 8 6
step-worker.ts
in plugins/bits-and-bolts/src/app/viewer
111 1 4 4 4
model-context.ts
in typescript/src/app
52 2 4 8 2
file-picker.ts
in typescript/src/server/forms
70 1 4 6 4
_resource_picker.py
in python/src/openai_mcp_extensions/form
42 3 3 7 1
resources.py
in python/src/openai_mcp_extensions
21 1 3 14 3
stl.ts
in plugins/bits-and-bolts/src/app/shared
24 1 3 13 3
inspection.ts
in plugins/bits-and-bolts/src/app/viewer
71 2 3 4 2
elicitation.ts
in typescript/src/server/forms
61 1 3 5 3
mentions.ts
in typescript/src/server
75 1 3 4 3
extensions.py
in python/src/openai_mcp_extensions
25 2 2 8 1
deep-link.ts
in typescript/src/app
36 1 2 6 2
pyi
__init__.pyi
in python/typings/rfc3986_validator
2 1 1 50 1
vite.config.ts
in plugins/bits-and-bolts
17 1 1 6 1
lighting.ts
in plugins/bits-and-bolts/src/app/shared
75 1 1 1 1
index.ts
in plugins/bits-and-bolts/src/server
30 1 1 3 1
message.ts
in typescript/src/app
41 1 1 2 1
files.ts
in typescript/src/app
36 1 1 3 1
resources.ts
in typescript/src/server
19 1 1 5 1
extensions.ts
in typescript/src/server
17 1 1 6 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...