File Complexity Overall
  • There are 23 files with units, with 8,411 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)
    • 2 medium complex files (McCabe index sum 51-125; 1,933 lines of code)
    • 8 slightly complex files (McCabe index sum 26-50; 3,434 lines of code)
    • 13 simple files (McCabe index sum 1-25; 3,044 lines of code)
  • 65 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 22% | 40% | 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
tsx0% | 0% | 38% | 46% | 14%
ts0% | 0% | 16% | 29% | 54%
py0% | 0% | 0% | 56% | 43%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 36% | 44% | 18%
cards_against_ai_server_node0% | 0% | 44% | 55% | 0%
authenticated_server_python0% | 0% | 0% | 100% | 0%
pizzaz_server_node0% | 0% | 0% | 100% | 0%
solar-system_server_python0% | 0% | 0% | 100% | 0%
mcp_app_basics_node0% | 0% | 0% | 0% | 100%
kitchen_sink_server_node0% | 0% | 0% | 0% | 100%
pizzaz_server_python0% | 0% | 0% | 0% | 100%
shopping_cart_python0% | 0% | 0% | 0% | 100%
kitchen_sink_server_python0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 23)

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
index.tsx
in src/pizzaz-shop
1342 4 122 9 113
GameInstance.ts
in cards_against_ai_server_node/src
591 17 74 13 18
server.ts
in cards_against_ai_server_node/src
740 12 47 6 18
App.tsx
in src/cards-against-ai
253 5 39 15 30
main.py
in authenticated_server_python
461 10 37 8 21
kitchen-sink-lite.tsx
in src/kitchen-sink-lite
756 8 35 5 26
server.ts
in pizzaz_server_node/src
347 16 31 9 6
PlayArea.tsx
in src/cards-against-ai
248 3 31 13 28
index.tsx
in src/shopping-cart
353 5 30 8 13
main.py
in solar-system_server_python
276 7 28 10 15
server.ts
in kitchen_sink_server_node/src
349 12 25 7 6
38 3 18 47 6
main.py
in shopping_cart_python
184 6 16 9 4
83 2 15 18 11
main.py
in pizzaz_server_python
259 6 13 5 4
main.py
in kitchen_sink_server_python
115 4 11 10 4
api-base-url.ts
in src/cards-against-ai
43 4 8 19 3
server.ts
in mcp_app_basics_node/src
1459 2 6 0 5
App.tsx
in src/streaming-tool-input
170 1 5 3 5
Scoreboard.tsx
in src/cards-against-ai
56 1 5 9 5
Cards.tsx
in src/cards-against-ai
139 2 5 4 4
icons.tsx
in src/shopping-cart
138 4 4 3 1
11 2 2 18 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...