firebase / functions-samples
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 118 files with 6,319 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (469 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,006 lines of code)
    • 108 very small files (4,844 lines of code)
0% | 0% | 7% | 15% | 76%
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
js0% | 0% | 5% | 18% | 75%
html0% | 0% | 15% | 16% | 68%
css0% | 0% | 0% | 0% | 100%
handlebars0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
stripe0% | 0% | 49% | 50% | 0%
image-maker0% | 0% | 52% | 0% | 47%
fcm-notifications0% | 0% | 0% | 42% | 57%
okta-auth0% | 0% | 0% | 49% | 50%
paypal0% | 0% | 0% | 44% | 55%
fulltext-search-firestore0% | 0% | 0% | 37% | 62%
authenticated-json-api0% | 0% | 0% | 32% | 67%
linkedin-auth0% | 0% | 0% | 28% | 71%
quickstarts0% | 0% | 0% | 0% | 100%
instagram-auth0% | 0% | 0% | 0% | 100%
spotify-auth0% | 0% | 0% | 0% | 100%
text-moderation0% | 0% | 0% | 0% | 100%
username-password-auth0% | 0% | 0% | 0% | 100%
email-confirmation0% | 0% | 0% | 0% | 100%
authorized-https-endpoint0% | 0% | 0% | 0% | 100%
exif-images0% | 0% | 0% | 0% | 100%
template-handlebars0% | 0% | 0% | 0% | 100%
presence-firestore0% | 0% | 0% | 0% | 100%
google-sheet-sync0% | 0% | 0% | 0% | 100%
testlab-to-slack0% | 0% | 0% | 0% | 100%
coupon-on-purchase0% | 0% | 0% | 0% | 100%
generate-thumbnail0% | 0% | 0% | 0% | 100%
moderate-images0% | 0% | 0% | 0% | 100%
publish-model0% | 0% | 0% | 0% | 100%
youtube0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
ffmpeg-convert-audio0% | 0% | 0% | 0% | 100%
remote-config-diff0% | 0% | 0% | 0% | 100%
delete-unused-accounts-cron0% | 0% | 0% | 0% | 100%
github-to-slack0% | 0% | 0% | 0% | 100%
convert-images0% | 0% | 0% | 0% | 100%
image-sharp0% | 0% | 0% | 0% | 100%
survey-app-update0% | 0% | 0% | 0% | 100%
message-translation0% | 0% | 0% | 0% | 100%
fulltext-search0% | 0% | 0% | 0% | 100%
child-count0% | 0% | 0% | 0% | 100%
developer-motivator0% | 0% | 0% | 0% | 100%
assistant-say-number0% | 0% | 0% | 0% | 100%
limit-children0% | 0% | 0% | 0% | 100%
delete-old-child-nodes0% | 0% | 0% | 0% | 100%
minimal-webhook0% | 0% | 0% | 0% | 100%
vision-annotate-images0% | 0% | 0% | 0% | 100%
bigquery-import0% | 0% | 0% | 0% | 100%
url-shortener0% | 0% | 0% | 0% | 100%
lastmodified-tracking0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
app.js
in stripe/public/javascript
235 6
index.html
in image-maker/public
234 -
main.js
in fcm-notifications/public
150 9
setup.js
in okta-auth
147 -
index.html
in paypal/public
142 -
index.js
in stripe/functions
133 2
index.js
in fulltext-search-firestore/public
115 7
index.html
in stripe/public
111 -
main.js
in authenticated-json-api/public
107 9
index.js
in linkedin-auth/functions
101 2
index.js
in instagram-auth/functions
100 2
index.js
in authenticated-json-api/functions
99 -
index.js
in spotify-auth/functions
99 1
index.html
in okta-auth/public
99 -
clock.js
in image-maker/functions
95 -
index.html
in authenticated-json-api/public
86 -
index.js
in google-sheet-sync/functions
86 2
index.js
in paypal/functions
82 -
index.js
in presence-firestore/public
82 4
index.js
in username-password-auth/functions
80 1
main.js
in username-password-auth/public
79 8
main.js
in text-moderation/public
78 6
index.html
in email-confirmation/public
74 -
main.css
in text-moderation/public
73 -
index.html
in text-moderation/public
69 -
main.css
in fcm-notifications/public
68 -
main.js
in authorized-https-endpoint/public
68 10
index.js
in fcm-notifications/functions
67 -
main.js
in email-confirmation/public
67 6
index.js
in testlab-to-slack/functions
66 2
index.html
in fcm-notifications/public
66 -
popup.html
in spotify-auth/public
65 -
popup.html
in instagram-auth/public
65 -
popup.html
in linkedin-auth/public
65 -
index.js
in coupon-on-purchase/functions
63 3
index.js
in exif-images/functions
62 1
index.html
in username-password-auth/public
61 -
main.css
in paypal/public
61 -
index.js
in generate-thumbnail/functions
60 1
index.html
in authorized-https-endpoint/public
59 -
index.html
in spotify-auth/public
54 -
index.html
in quickstarts/email-users/public
54 -
index.html
in linkedin-auth/public
54 -
main.js
in exif-images/public
53 4
index.js
in fulltext-search-firestore/functions
53 1
index.js
in moderate-images/functions
53 1
index.html
in instagram-auth/public
53 -
typesense.js
in fulltext-search-firestore/functions
51 1
index.js
in publish-model/functions
51 -
index.js
in authorized-https-endpoint/functions
51 -
Files With Most Units (Top 20)
File# lines# units
main.js
in authorized-https-endpoint/public
68 10
main.js
in authenticated-json-api/public
107 9
main.js
in fcm-notifications/public
150 9
main.js
in username-password-auth/public
79 8
index.js
in fulltext-search-firestore/public
115 7
main.js
in text-moderation/public
78 6
main.js
in email-confirmation/public
67 6
app.js
in stripe/public/javascript
235 6
main.js
in spotify-auth/public
48 5
main.js
in quickstarts/email-users/public
46 5
main.js
in instagram-auth/public
46 5
main.js
in linkedin-auth/public
48 5
main.js
in exif-images/public
53 4
index.js
in text-moderation/functions
46 4
index.js
in presence-firestore/public
82 4
index.js
in coupon-on-purchase/functions
63 3
firebaseUser.js
in template-handlebars/functions
38 3
index.js
in testlab-to-slack/functions
66 2
index.js
in google-sheet-sync/functions
86 2
script.js
in quickstarts/big-ben/public
18 2
Files With Long Lines (Top 20)

There are 23 files with lines longer than 120 characters. In total, there are 62 long lines.

File# lines# units# long lines
index.html
in username-password-auth/public
61 - 5
index.html
in text-moderation/public
69 - 5
index.html
in image-maker/public
234 - 5
index.html
in fcm-notifications/public
66 - 5
index.html
in authenticated-json-api/public
86 - 4
index.html
in paypal/public
142 - 4
index.html
in quickstarts/email-users/public
54 - 4
index.html
in email-confirmation/public
74 - 4
index.html
in spotify-auth/public
54 - 3
index.html
in instagram-auth/public
53 - 3
index.html
in linkedin-auth/public
54 - 3
index.html
in exif-images/public
47 - 2
main.js
in fcm-notifications/public
150 9 2
index.html
in okta-auth/public
99 - 2
index.html
in authorized-https-endpoint/public
59 - 2
handlebars
main.handlebars
in template-handlebars/functions/views/layouts
49 - 2
index.js
in paypal/functions
82 - 1
index.js
in publish-model/functions
51 - 1
script.js
in quickstarts/big-ben/public
18 2 1
app.js
in stripe/public/javascript
235 6 1