File Complexity Overall
  • There are 36 files with units, with 3,876 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 532 lines of code)
    • 2 medium complex files (McCabe index sum 51-125; 545 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 405 lines of code)
    • 31 simple files (McCabe index sum 1-25; 2,394 lines of code)
  • 14 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 13% | 14% | 10% | 61%
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% | 21% | 21% | 16% | 40%
tsx0% | 0% | 0% | 0% | 100%
ino0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 15% | 7% | 11% | 64%
server0% | 0% | 80% | 0% | 19%
arduino0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 36)

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
sensors-store.ts
in src/stores/plant
532 35 130 24 23
observe.ts
in server
276 14 69 25 12
realtime-connection.ts
in src/lib/plant
269 11 53 20 19
plants.ts
in src/lib/plant
244 12 47 19 19
observation-loop-store.ts
in src/stores/plant
161 1 28 17 28
ino
PlantSensors.ino
in arduino/PlantSensors
88 5 24 27 8
camera-store.ts
in src/stores/plant
127 4 23 18 8
conversation-store.ts
in src/stores/plant
149 4 20 13 10
camera-panel.tsx
in src/components/dashboard
92 1 19 21 19
debug-panel.tsx
in src/components/dashboard
98 3 18 18 9
voice-conversation-panel.tsx
in src/components/dashboard
185 3 17 9 15
observer-store.ts
in src/stores/plant
178 6 15 8 6
realtime-tools.ts
in src/lib/plant
56 3 13 23 5
microphone-store.ts
in src/stores/plant
44 1 6 14 6
ui-mode-store.ts
in src/stores/plant
21 2 6 29 4
plant-upload-panel.tsx
in src/components/dashboard
42 2 6 14 5
camera-capture.ts
in src/lib/plant
44 1 6 14 6
openai.ts
in server
21 3 5 24 2
action-glyph.ts
in src/components/dashboard
15 1 5 33 5
color.ts
in src/components/public/webgl
12 1 5 42 5
experience-store.ts
in src/stores/plant
69 1 4 6 4
plant-analysis-panel.tsx
in src/components/dashboard
64 1 4 6 4
observation-panel.tsx
in src/components/dashboard
111 2 4 4 2
intro-view.tsx
in src/components/public
76 1 4 5 4
number-counter.tsx
in src/components/public
46 1 4 9 4
public-experience.tsx
in src/components/public
64 1 4 6 4
realtime.ts
in server
46 1 3 7 3
settings-store.ts
in src/stores/plant
79 3 3 4 1
realtime-config.ts
in src/lib/plant
81 1 3 4 3
response-logging.ts
in src/lib/api
27 3 3 11 1
streaming-text.tsx
in src/components/public
60 1 2 3 2
sensors.ts
in src/lib/plant
17 1 2 12 2
24 1 1 4 1
app.tsx
in src
26 1 1 4 1
aurora-orb.tsx
in src/components/public/webgl
220 1 1 0 1
wave-gradient-background.tsx
in src/components/public/webgl
212 1 1 0 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...