firebase / extensions
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 125 files with 10,153 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (513 lines of code)
    • 9 medium size files (2,438 lines of codeclsfd_ftr_w_mp_ins)
    • 31 small files (4,318 lines of code)
    • 84 very small files (2,884 lines of code)
0% | 5% | 24% | 42% | 28%
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
ts0% | 9% | 25% | 40% | 24%
js0% | 0% | 25% | 27% | 47%
yaml0% | 0% | 16% | 83% | 0%
java0% | 0% | 0% | 100% | 0%
swift0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
firestore-bigquery-export0% | 16% | 27% | 38% | 17%
firestore-counter0% | 0% | 47% | 23% | 28%
firestore-send-email0% | 0% | 47% | 31% | 21%
storage-resize-images0% | 0% | 0% | 80% | 19%
firestore-translate-text0% | 0% | 0% | 63% | 36%
delete-user-data0% | 0% | 0% | 67% | 32%
firestore-shorten-urls-bitly0% | 0% | 0% | 41% | 58%
auth-mailchimp-sync0% | 0% | 0% | 31% | 68%
rtdb-limit-child-nodes0% | 0% | 0% | 46% | 53%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
schema.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
513 19
index.ts
in firestore-bigquery-export/scripts/import/src
375 1
controller.ts
in firestore-counter/functions/src
292 4
index.ts
in firestore-send-email/functions/src
282 7
index.js
in firestore-send-email/functions/lib
275 7
worker.ts
in firestore-counter/functions/src
267 5
index.ts
in firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery
257 13
worker.js
in firestore-counter/functions/lib
233 6
extension.yaml
in firestore-bigquery-export
230 -
controller.js
in firestore-counter/functions/lib
227 6
index.ts
in firestore-translate-text/functions/src
199 1
extension.yaml
in storage-resize-images
194 -
config.ts
in firestore-bigquery-export/scripts/import/src
189 1
snapshot.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
179 2
run.ts
in firestore-bigquery-export/scripts/import/src
169 2
extension.yaml
in delete-user-data
166 -
index.js
in firestore-translate-text/functions/lib
165 2
index.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
163 3
resize-image.ts
in storage-resize-images/functions/src
158 2
resize-image.js
in storage-resize-images/functions/lib
139 2
index.ts
in storage-resize-images/functions/src
139 -
extension.yaml
in firestore-send-email
138 -
index.js
in storage-resize-images/functions/lib
132 -
extension.yaml
in auth-mailchimp-sync
131 -
extension.yaml
in firestore-counter
131 -
extension.yaml
in firestore-translate-text
130 -
udf.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
129 16
extension.yaml
in firestore-shorten-urls-bitly
128 -
templates.ts
in firestore-send-email/functions/src
125 4
index.js
in delete-user-data/functions/lib
125 -
aggregator.js
in firestore-counter/functions/lib
124 15
schema.ts
in firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery
123 -
extension.yaml
in rtdb-limit-child-nodes
123 -
logs.ts
in firestore-bigquery-export/functions/src
121 -
logs.ts
in firestore-bigquery-export/firestore-bigquery-change-tracker/src
121 -
aggregator.ts
in firestore-counter/functions/src
120 13
FirestoreShardedCounter.java
in firestore-counter/clients/android/src/main/java/com/firebase/firestore/counter
119 5
logs.ts
in storage-resize-images/functions/src
117 -
index.ts
in delete-user-data/functions/src
115 -
abstract-shortener.ts
in firestore-shorten-urls-bitly/functions/src
105 8
templates.js
in firestore-send-email/functions/lib
101 4
planner.ts
in firestore-counter/functions/src
97 6
abstract-shortener.js
in firestore-shorten-urls-bitly/functions/lib
96 9
logs.js
in delete-user-data/functions/lib
93 -
logs.js
in storage-resize-images/functions/lib
92 -
planner.js
in firestore-counter/functions/lib
89 6
index.ts
in firestore-counter/clients/web/src
88 6
FirestoreCounter.swift
in firestore-counter/clients/ios/Sources/FirestoreCounter
82 -
logs.ts
in delete-user-data/functions/src
79 -
index.ts
in firestore-translate-text/functions/src/logs
75 -
Files With Most Units (Top 20)
File# lines# units
schema.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
513 19
udf.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
129 16
logs.js
in firestore-send-email/functions/lib
68 15
logs.ts
in firestore-send-email/functions/src
74 15
aggregator.js
in firestore-counter/functions/lib
124 15
index.ts
in firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery
257 13
aggregator.ts
in firestore-counter/functions/src
120 13
abstract-shortener.js
in firestore-shorten-urls-bitly/functions/lib
96 9
abstract-shortener.ts
in firestore-shorten-urls-bitly/functions/src
105 8
schema-loader-utils.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
74 7
index.js
in firestore-send-email/functions/lib
275 7
index.ts
in firestore-send-email/functions/src
282 7
index.js
in firestore-counter/clients/node
70 7
planner.js
in firestore-counter/functions/lib
89 6
worker.js
in firestore-counter/functions/lib
233 6
controller.js
in firestore-counter/functions/lib
227 6
planner.ts
in firestore-counter/functions/src
97 6
index.ts
in firestore-counter/clients/web/src
88 6
worker.ts
in firestore-counter/functions/src
267 5
FirestoreShardedCounter.java
in firestore-counter/clients/android/src/main/java/com/firebase/firestore/counter
119 5
Files With Long Lines (Top 20)

There are 26 files with lines longer than 120 characters. In total, there are 68 long lines.

File# lines# units# long lines
schema.ts
in firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery
123 - 7
controller.js
in firestore-counter/functions/lib
227 6 6
messages.js
in firestore-translate-text/functions/lib/logs
38 - 5
logs.js
in auth-mailchimp-sync/functions/lib
45 - 4
extension.yaml
in storage-resize-images
194 - 4
logs.js
in storage-resize-images/functions/lib
92 - 4
extension.yaml
in firestore-counter
131 - 4
index.ts
in firestore-bigquery-export/scripts/import/src
375 1 3
extension.yaml
in firestore-send-email
138 - 3
logs.js
in firestore-send-email/functions/lib
68 15 3
worker.js
in firestore-counter/functions/lib
233 6 3
logs.js
in delete-user-data/functions/lib
93 - 3
config.ts
in firestore-bigquery-export/scripts/import/src
189 1 2
index.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
163 3 2
udf.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
129 16 2
logs.js
in firestore-shorten-urls-bitly/functions/lib
57 - 2
resize-image.js
in storage-resize-images/functions/lib
139 2 2
index.js
in firestore-translate-text/functions/lib/logs
68 - 1
run.ts
in firestore-bigquery-export/scripts/import/src
169 2 1
snapshot.ts
in firestore-bigquery-export/scripts/gen-schema-view/src
179 2 1