File Complexity Overall
  • There are 23 files with units, with 3,557 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; 413 lines of code)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 22 simple files (McCabe index sum 1-25; 3,144 lines of code)
  • 13 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 11% | 0% | 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
py0% | 0% | 11% | 0% | 88%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
datastore0% | 0% | 13% | 0% | 86%
services0% | 0% | 0% | 0% | 100%
server0% | 0% | 0% | 0% | 100%
local_server0% | 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
milvus_datastore.py
in datastore/providers
413 7 59 14 13
weaviate_datastore.py
in datastore/providers
307 7 25 8 8
chunks.py
in services
91 3 25 27 23
chroma_datastore.py
in datastore/providers
199 4 22 11 11
file.py
in services
82 2 20 24 15
azuresearch_datastore.py
in datastore/providers
327 4 19 6 11
analyticdb_datastore.py
in datastore/providers
219 10 16 7 3
pinecone_datastore.py
in datastore/providers
194 3 12 6 10
qdrant_datastore.py
in datastore/providers
236 8 11 5 3
zilliz_datastore.py
in datastore/providers
46 3 9 20 4
azurecosmosdb_datastore.py
in datastore/providers
208 3 9 4 7
elasticsearch_datastore.py
in datastore/providers
277 8 9 3 2
llama_datastore.py
in datastore/providers
160 7 7 4 1
mongodb_atlas_datastore.py
in datastore/providers
165 5 5 3 1
openai.py
in services
38 2 5 13 3
main.py
in server
130 2 4 3 3
supabase_datastore.py
in datastore/providers
64 2 3 5 2
postgres_datastore.py
in datastore/providers
100 3 3 3 1
date.py
in services
9 1 3 33 3
pgvector_datastore.py
in datastore/providers
129 2 2 2 1
main.py
in local_server
118 1 1 1 1
28 1 1 4 1
pii_detection.py
in services
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...