File Complexity Overall
  • There are 32 files with units, with 6,775 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)
    • 1 medium complex files (McCabe index sum 51-125; 425 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 335 lines of code)
    • 30 simple files (McCabe index sum 1-25; 6,015 lines of code)
  • 74 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 6% | 4% | 88%
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% | 0% | 7% | 6% | 86%
tsx0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
packages0% | 0% | 6% | 5% | 88%
model-fetch0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 32)

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
transcribe.ts
in packages/worker/src
425 10 57 13 14
index.ts
in packages/worker/src
335 14 29 9 5
120 7 19 16 7
transcription-service.ts
in packages/cdk/lib
821 1 14 2 14
index.ts
in packages/output-handler/src
326 8 13 4 2
61 2 12 20 10
index.ts
in packages/api/src
659 5 6 1 2
ocr.ts
in packages/worker/src
171 4 6 4 2
index.ts
in packages/media-download/src
289 4 6 2 2
googleDrive.ts
in packages/media-export/src
79 1 5 6 5
auth.ts
in packages/client/src/services
47 3 5 11 3
metrics.ts
in packages/backend-common/src
95 3 4 4 2
passport.ts
in packages/api/src/services
53 2 4 8 3
42 1 4 10 4
sqs.ts
in packages/backend-common/src
305 2 3 1 2
logging.ts
in packages/backend-common/src
112 2 3 3 2
s3.ts
in packages/backend-common/src
279 1 2 1 2
index.ts
in packages/webpage-snapshot/src
165 2 2 1 1
index.ts
in packages/worker-capacity-manager/src
56 1 2 4 2
spot-termination.ts
in packages/worker/src
52 1 2 4 2
repository.ts
in packages/cdk/lib
145 1 1 1 1
universal-infra.ts
in packages/cdk/lib
22 1 1 5 1
llm.ts
in packages/backend-common/src
91 1 1 1 1
config.ts
in packages/backend-common/src
277 1 1 0 1
index.ts
in packages/media-export/src
112 1 1 1 1
GoogleAuth.ts
in packages/api/src/controllers
62 1 1 2 1
llama-cpp.ts
in packages/worker/src
143 1 1 1 1
llm.ts
in packages/worker/src
144 1 1 1 1
yt-dlp.ts
in packages/media-download/src
224 1 1 0 1
UploadForm.tsx
in packages/client/src/components
543 1 1 0 1
ExportForm.tsx
in packages/client/src/components
460 1 1 0 1
dev.ts
in packages/output-handler/src
60 1 1 2 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...