File Complexity Overall
  • There are 58 files with units, with 5,664 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; 503 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 432 lines of code)
    • 55 simple files (McCabe index sum 1-25; 4,729 lines of code)
  • 30 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 8% | 7% | 83%
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% | 9% | 8% | 82%
py0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
typescript0% | 0% | 10% | 9% | 79%
mpapi-next-gen0% | 0% | 0% | 0% | 100%
adjust_report_etl0% | 0% | 0% | 0% | 100%
cdk0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

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
apple-common.ts
in typescript/src/pubsub
503 16 125 25 35
google-play-v2.ts
in typescript/src/services
145 13 36 25 5
appleValidateReceipts.ts
in typescript/src/services
287 8 33 11 10
user.ts
in typescript/src/user
130 7 25 19 10
exportHistoricalData.ts
in mpapi-next-gen/src/lambdas
160 8 22 14 4
processSubscription.ts
in typescript/src/soft-opt-ins
178 8 21 12 6
link.ts
in typescript/src/link
121 5 21 17 10
deleteLink.ts
in typescript/src/link
116 8 20 17 8
dynamoStream.ts
in mpapi-next-gen/src/common
96 4 19 20 8
aws.ts
in typescript/src/utils
174 8 17 10 6
connector.py
in adjust_report_etl
252 2 16 6 15
googleSubStatus.ts
in typescript/src/subscription-status
151 7 16 11 6
dlq-processor.ts
in typescript/src/soft-opt-ins
97 3 15 15 13
google-common.ts
in typescript/src/pubsub
226 5 14 6 5
exportSubscriptionTableV2.ts
in mpapi-next-gen/src/lambdas
66 3 14 21 11
exportSubscriptionEventsTable.ts
in mpapi-next-gen/src/lambdas
114 5 14 12 5
apple.ts
in typescript/src/pubsub
114 4 13 11 7
guIdentityApi.ts
in typescript/src/utils
85 6 11 13 5
guIdentityApi.ts
in mpapi-next-gen/src/common
92 6 11 12 5
apple.ts
in typescript/src/update-subs
81 4 10 12 6
updatesub.ts
in typescript/src/update-subs
62 4 10 16 5
ssmConfig.ts
in typescript/src/utils
61 3 10 16 4
pubsub.ts
in typescript/src/pubsub
84 3 9 11 6
appleSubStatus.ts
in typescript/src/subscription-status
95 3 9 9 4
acquisitions.ts
in typescript/src/soft-opt-ins
49 1 8 16 8
google.ts
in typescript/src/link
61 5 8 13 4
google-subscription-extra.ts
in typescript/src/services
187 3 8 4 5
google.ts
in typescript/src/update-subs
145 2 7 5 6
google.ts
in typescript/src/feast/pubsub
81 1 7 9 7
apple.ts
in typescript/src/feast/pubsub
63 1 6 10 6
exportSubscriptions.ts
in typescript/src/export
51 1 5 10 5
google-play.ts
in typescript/src/services
65 4 5 8 2
googleOauth2.ts
in mpapi-next-gen/src/lambdas
71 4 5 7 2
appleRevalidateReceipts.ts
in typescript/src/revalidate-receipts
111 2 4 4 2
common.ts
in typescript/src/feast/update-subs
24 2 4 17 3
apple.ts
in typescript/src/link
39 3 4 10 2
api-storekit.ts
in typescript/src/services
190 2 4 2 2
braze.ts
in typescript/src/services
42 2 4 10 3
dates.ts
in typescript/src/utils
18 1 3 17 3
appleFetchOfferDetails.ts
in typescript/src/promotional-offers
78 2 3 4 2
apple-utils.ts
in typescript/src/link
36 2 3 8 2
dynamoStream.ts
in typescript/src/export
39 1 3 8 3
appToPlatform.ts
in typescript/src/services
22 2 3 14 2
ssmParameters.ts
in mpapi-next-gen/src/common
22 1 3 14 3
apple.ts
in typescript/src/feast/acquisition-events
146 1 2 1 2
esbuild.config.js
in mpapi-next-gen
35 1 2 6 2
subscriptionEvent.ts
in mpapi-next-gen/src/common
83 2 2 2 1
userSubscription.ts
in mpapi-next-gen/src/common
27 2 2 7 1
8 1 1 13 1
apple.ts
in typescript/src/feast/update-subs
162 1 1 1 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...