aws-samples / serverless-trivia-game
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 89 files with 11,647 lines of code.
    • 1 very long files (1,084 lines of code)
    • 3 long files (2,239 lines of code)
    • 10 medium size files (3,126 lines of codeclsfd_ftr_w_mp_ins)
    • 21 small files (3,122 lines of code)
    • 54 very small files (2,076 lines of code)
9% | 19% | 26% | 26% | 17%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
yaml31% | 23% | 45% | 0% | <1%
vue0% | 32% | 17% | 41% | 8%
js0% | 0% | 21% | 34% | 44%
html0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
backend31% | 23% | 45% | 0% | <1%
frontend/src0% | 93% | 0% | 0% | 6%
frontend/src/components0% | 16% | 21% | 51% | 10%
frontend/src/store0% | 0% | 100% | 0% | 0%
frontend/src/services0% | 0% | 51% | 42% | 5%
backend/Functions/IoT0% | 0% | 30% | 41% | 27%
backend/Functions/WebSockets0% | 0% | 0% | 69% | 30%
backend/sendchatlayer0% | 0% | 0% | 100% | 0%
backend/Functions/HTTP0% | 0% | 0% | 12% | 87%
backend/utilslayer0% | 0% | 0% | 79% | 20%
backend/Functions/Main0% | 0% | 0% | 25% | 74%
frontend0% | 0% | 0% | 0% | 100%
frontend/src/plugins0% | 0% | 0% | 0% | 100%
frontend/public0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
httptemplate.yaml
in backend
1084 -
App.vue
in frontend/src
844 -
template.yaml
in backend
810 -
LiveGameAdminController.vue
in frontend/src/components
585 -
analytics.yaml
in backend
495 -
websocketstemplate.yaml
in backend
418 -
index.js
in frontend/src/store
381 65
iot.yaml
in backend
368 -
dynamodbtemplate.yaml
in backend
288 -
LiveGamePlayerController.vue
in frontend/src/components
283 -
QuizEdit.vue
in frontend/src/components
238 -
Player.vue
in frontend/src/components
233 -
DataServices.js
in frontend/src/services
214 21
app.js
in backend/Functions/IoT/answer_receive
208 10
BlitzGamePlayer.vue
in frontend/src/components
194 -
app.js
in backend/Functions/WebSockets/auth
190 12
Question.vue
in frontend/src/components
189 -
Joingame.vue
in frontend/src/components
181 -
Cognito.js
in frontend/src/services
178 16
app.js
in backend/Functions/WebSockets/livegameadmin
177 8
Quizdetail.vue
in frontend/src/components
164 -
BlitzGameAdmin.vue
in frontend/src/components
163 -
app.js
in backend/Functions/IoT/game_cache
163 10
CognitoUI.vue
in frontend/src/components
150 -
QuizList.vue
in frontend/src/components
145 -
Managequiz.vue
in frontend/src/components
142 -
Hostgame.vue
in frontend/src/components
138 -
Scoreboard.vue
in frontend/src/components
134 -
Marketplace.vue
in frontend/src/components
127 -
index.js
in backend/sendchatlayer
120 3
app.js
in backend/Functions/IoT/game_end
120 6
app.js
in backend/Functions/HTTP/game_answer
119 4
Notifications.vue
in frontend/src/components
117 -
logger.js
in backend/utilslayer
107 1
app.js
in backend/Functions/Main/webpush_notification_send
104 2
app.js
in backend/Functions/Main/webpush_vapid_generate
100 3
app.js
in backend/Functions/IoT/question_send
95 7
Quizheader.vue
in frontend/src/components
92 -
app.js
in backend/Functions/WebSockets/livegameplayer
89 2
app.js
in backend/Functions/Main/playerprogression_put
73 2
GameController.vue
in frontend/src/components
72 -
ChatController.vue
in frontend/src/components
69 -
app.js
in backend/Functions/HTTP/leaderboard_get
68 1
app.js
in backend/Functions/HTTP/player_put
63 2
app.js
in backend/Functions/HTTP/game_activate
61 3
AdminController.vue
in frontend/src/components
58 -
app.js
in backend/Functions/HTTP/game_listonmarketplace
57 1
app.js
in backend/Functions/IoT/game_start
57 4
app.js
in backend/Functions/HTTP/game_play
55 3
app.js
in backend/Functions/HTTP/activegames_list
52 1
Files With Most Units (Top 20)
File# lines# units
index.js
in frontend/src/store
381 65
DataServices.js
in frontend/src/services
214 21
Cognito.js
in frontend/src/services
178 16
app.js
in backend/Functions/WebSockets/auth
190 12
app.js
in backend/Functions/IoT/answer_receive
208 10
app.js
in backend/Functions/IoT/game_cache
163 10
app.js
in backend/Functions/WebSockets/livegameadmin
177 8
app.js
in backend/Functions/IoT/question_send
95 7
app.js
in backend/Functions/IoT/game_end
120 6
app.js
in backend/Functions/HTTP/game_answer
119 4
app.js
in backend/Functions/IoT/game_start
57 4
index.js
in backend/sendchatlayer
120 3
app.js
in backend/Functions/HTTP/game_activate
61 3
app.js
in backend/Functions/HTTP/purchasedgame_putkinesis
35 3
app.js
in backend/Functions/HTTP/game_play
55 3
app.js
in backend/Functions/Main/webpush_vapid_generate
100 3
app.js
in backend/Functions/HTTP/activegames_delete
45 2
app.js
in backend/Functions/HTTP/permissions_add
29 2
app.js
in backend/Functions/HTTP/marketplace_get
32 2
app.js
in backend/Functions/HTTP/player_put
63 2
Files With Long Lines (Top 20)

There are 28 files with lines longer than 120 characters. In total, there are 133 long lines.

File# lines# units# long lines
LiveGameAdminController.vue
in frontend/src/components
585 - 24
QuizEdit.vue
in frontend/src/components
238 - 12
BlitzGamePlayer.vue
in frontend/src/components
194 - 10
Question.vue
in frontend/src/components
189 - 10
BlitzGameAdmin.vue
in frontend/src/components
163 - 10
LiveGamePlayerController.vue
in frontend/src/components
283 - 9
App.vue
in frontend/src
844 - 8
iot.yaml
in backend
368 - 7
Player.vue
in frontend/src/components
233 - 6
websocketstemplate.yaml
in backend
418 - 4
Quizheader.vue
in frontend/src/components
92 - 3
Quizdetail.vue
in frontend/src/components
164 - 3
logger.js
in backend/utilslayer
107 1 3
app.js
in backend/Functions/IoT/answer_receive
208 10 3
CognitoUI.vue
in frontend/src/components
150 - 2
Managequiz.vue
in frontend/src/components
142 - 2
AdminController.vue
in frontend/src/components
58 - 2
StatusBar.vue
in frontend/src/components
29 - 2
Joingame.vue
in frontend/src/components
181 - 2
GameController.vue
in frontend/src/components
72 - 2