File Complexity Overall
  • There are 98 files with units, with 13,383 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)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 4 slightly complex files (McCabe index sum 26-50; 1,078 lines of code)
    • 94 simple files (McCabe index sum 1-25; 12,305 lines of code)
  • 273 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 8% | 91%
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
scala0% | 0% | 0% | 21% | 78%
tsx0% | 0% | 0% | 2% | 97%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
app0% | 0% | 0% | 22% | 77%
public0% | 0% | 0% | 2% | 97%
cdk0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
project0% | 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
requests.tsx
in public/src/utils
250 44 48 19 2
BannerDesignsController.scala
in app/controllers/banner
254 14 35 14 5
331 17 33 10 3
243 12 27 11 5
178 11 22 12 3
ChannelTest.scala
in app/models
71 3 19 27 9
DynamoPromos.scala
in app/services/promos
162 9 19 12 3
BannerDesignForm.tsx
in public/src/components/channelManagement/bannerDesigns
182 11 19 10 2
defaults.ts
in public/src/components/channelManagement/bannerDesigns/utils
75 18 18 24 1
maxViewsEditor.tsx
in public/src/components/channelManagement/epicTests
168 3 15 9 5
sidebar.tsx
in public/src/components/channelManagement
165 2 14 8 10
59 2 13 22 12
PromosController.scala
in app/controllers/promos
142 8 13 9 2
DynamoService.scala
in app/services
107 7 13 12 5
BigQueryService.scala
in app/services
96 6 13 14 5
drawer.tsx
in public/src/components
309 1 13 4 13
S3.scala
in app/services
240 7 12 5 3
70 4 11 16 8
productCatalog.ts
in public/src/components/promoTool/utils
78 3 11 14 5
testEditor.tsx
in public/src/components/channelManagement/epicTests
438 3 11 3 5
Circe.scala
in app/utils
48 4 10 21 7
reauth.ts
in public/src/utils
56 4 10 18 4
AppLoader.scala
in app/wiring
51 1 9 18 9
DynamoBanditData.scala
in app/services
108 4 9 8 3
testEditorArticleCountEditor.tsx
in public/src/components/channelManagement
181 3 8 4 3
bannerTestEditor.tsx
in public/src/components/channelManagement/bannerTests
383 3 8 2 6
S3ObjectsController.scala
in app/controllers
88 4 7 8 3
80 5 7 9 3
114 5 7 6 3
DynamoPromoCampaigns.scala
in app/services/promos
79 3 7 9 3
CampaignsEditor.tsx
in public/src/components/channelManagement/campaigns
201 1 7 3 7
CampaignsController.scala
in app/controllers
75 5 6 8 2
QrCodePage.tsx
in public/src/components/utilities
151 3 6 4 3
variantEditor.tsx
in public/src/components/channelManagement/checkoutNudge
237 3 6 3 2
productsEditor.tsx
in public/src/components/channelManagement/supportLandingPage
340 3 6 2 4
utilities.tsx
in public/src/components/channelManagement/helpers
114 4 6 5 2
PromoCampaignsController.scala
in app/controllers/promos
90 4 5 6 2
DynamoSuperMode.scala
in app/services
68 3 5 7 3
DynamoCampaigns.scala
in app/services
44 3 5 11 3
S3ObjectController.scala
in app/controllers
90 4 4 4 1
defaultChoiceCards.ts
in public/src/utils
109 2 4 4 2
Bookmarklets.tsx
in public/src/components/bookmarklets
200 2 4 2 3
testListTest.tsx
in public/src/components/channelManagement
96 1 4 4 4
CreateCampaignDialog.tsx
in public/src/components/channelManagement/campaigns
130 2 4 3 2
CampaignsSidebar.tsx
in public/src/components/channelManagement/campaigns
75 1 4 5 4
controlProportionSettings.ts
in public/src/components/channelManagement/helpers
14 3 4 29 2
30 3 3 10 1
64 3 3 5 1
CapiController.scala
in app/controllers
25 3 3 12 1
BanditDataController.scala
in app/controllers
47 3 3 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...