firebase / snippets-web
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 441 files with 9,993 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,523 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 15 small files (2,085 lines of code)
    • 424 very small files (6,385 lines of code)
0% | 15% | 0% | 20% | 63%
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% | 15% | 0% | 19% | 64%
ts0% | 0% | 0% | 100% | 0%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
firestore0% | 74% | 0% | 0% | 25%
firestore-next0% | 75% | 0% | 0% | 24%
auth0% | 0% | 0% | 39% | 60%
auth-next0% | 0% | 0% | 35% | 64%
analytics-next0% | 0% | 0% | 82% | 17%
scripts0% | 0% | 0% | 100% | 0%
analytics0% | 0% | 0% | 83% | 16%
storage-next0% | 0% | 0% | 39% | 60%
database-next0% | 0% | 0% | 44% | 55%
storage0% | 0% | 0% | 38% | 61%
database0% | 0% | 0% | 44% | 55%
snippets0% | 0% | 0% | 0% | 100%
messaging-next0% | 0% | 0% | 0% | 100%
messaging0% | 0% | 0% | 0% | 100%
appcheck-next0% | 0% | 0% | 0% | 100%
functions-next0% | 0% | 0% | 0% | 100%
perf-next0% | 0% | 0% | 0% | 100%
appcheck0% | 0% | 0% | 0% | 100%
perf0% | 0% | 0% | 0% | 100%
firebaseapp-next0% | 0% | 0% | 0% | 100%
installations0% | 0% | 0% | 0% | 100%
functions0% | 0% | 0% | 0% | 100%
firebaseapp0% | 0% | 0% | 0% | 100%
remoteconfig-next0% | 0% | 0% | 0% | 100%
remoteconfig0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
test.firestore.js
in firestore
768 8
test.firestore.js
in firestore-next
755 30
firebaseui.js
in auth
194 13
multi-tenancy.js
in auth-next
183 15
ecommerce.js
in analytics-next
178 12
separate-snippets.ts
in scripts
174 9
multi-tenancy.js
in auth
164 15
ecommerce.js
in analytics
156 12
upload-files.js
in storage-next
135 8
read-and-write.js
in database-next
129 13
upload-files.js
in storage
122 8
service-worker-sessions.js
in auth-next
113 7
apple.js
in auth-next
111 8
service-worker-sessions.js
in auth
108 7
link-multiple-accounts.js
in auth-next
108 12
apple.js
in auth
107 9
read-and-write.js
in database
103 10
facebook.js
in auth-next
100 10
link-multiple-accounts.js
in auth
95 12
google-signin.js
in auth-next
93 10
manage.js
in auth-next
90 11
facebook.js
in auth
89 7
google-signin.js
in auth
81 7
email-link-auth.js
in auth-next
79 6
manage.js
in auth
78 11
email-link-auth.js
in auth
73 6
index.js
in auth-next
69 10
phone-auth.js
in auth-next
68 10
microsoft-oauth.js
in auth-next
68 6
test.solution-geoqueries.js
in firestore
66 2
test.solution-arrays.js
in firestore-next
66 2
test.solution-geoqueries.js
in firestore-next
66 3
offline.js
in database-next
66 7
index.js
in appcheck-next
63 4
test.solution-arrays.js
in firestore
61 -
phone-auth.js
in auth
61 10
test.solution-counters.js
in firestore-next
59 3
custom-email-handler.js
in auth-next
59 5
lists-of-data.js
in database-next
58 7
custom-email-handler.js
in auth
57 5
auth_svc_intercept.js
in snippets/auth-next/service-worker-sessions
57 -
test.solution-counters.js
in firestore
56 3
index.js
in auth
55 10
offline.js
in database
54 7
microsoft-oauth.js
in auth
53 6
oidc.js
in auth-next
53 5
index.js
in perf-next
49 8
index.js
in appcheck
48 3
email.js
in auth-next
47 4
download-files.js
in storage-next
45 3
Files With Most Units (Top 20)
File# lines# units
test.firestore.js
in firestore-next
755 30
multi-tenancy.js
in auth
164 15
multi-tenancy.js
in auth-next
183 15
firebaseui.js
in auth
194 13
read-and-write.js
in database-next
129 13
ecommerce.js
in analytics-next
178 12
link-multiple-accounts.js
in auth
95 12
ecommerce.js
in analytics
156 12
link-multiple-accounts.js
in auth-next
108 12
manage.js
in auth
78 11
manage.js
in auth-next
90 11
index.js
in auth
55 10
phone-auth.js
in auth
61 10
read-and-write.js
in database
103 10
google-signin.js
in auth-next
93 10
index.js
in auth-next
69 10
phone-auth.js
in auth-next
68 10
facebook.js
in auth-next
100 10
separate-snippets.ts
in scripts
174 9
apple.js
in auth
107 9
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 9 long lines.

File# lines# units# long lines
custom-dependencies.js
in auth-next
34 4 2
multi-tenancy.js
in auth-next
183 15 2
multitenant_account_linking.js
in snippets/auth-next/multi-tenancy
17 - 1
auth_get_auth_equivalent.js
in snippets/auth-next/custom-dependencies
7 - 1
auth_sign_in_redirect_manual_deps.js
in snippets/auth-next/custom-dependencies
7 - 1
auth-state-persistence.js
in auth-next
27 2 1
link-multiple-accounts.js
in auth-next
108 12 1