firebase / firebase-unity-sdk
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 591 files with 62,705 lines of code.
    • 5 very long files (8,853 lines of code)
    • 18 long files (12,369 lines of code)
    • 62 medium size files (16,427 lines of codeclsfd_ftr_w_mp_ins)
    • 77 small files (11,340 lines of code)
    • 429 very small files (13,716 lines of code)
14% | 19% | 26% | 18% | 21%
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
cs22% | 12% | 13% | 24% | 26%
i41% | 13% | 35% | 6% | 3%
asset0% | 44% | 19% | 12% | 23%
py0% | 17% | 20% | 38% | 23%
unity0% | 0% | 100% | 0% | 0%
cmake0% | 0% | 46% | 29% | 24%
cc0% | 0% | 61% | 0% | 38%
h0% | 0% | 0% | 34% | 65%
cpp0% | 0% | 0% | 100% | 0%
swift0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
kt0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
firestore33% | 10% | 21% | 11% | 23%
database31% | 12% | 22% | 17% | 15%
app39% | 0% | 9% | 15% | 35%
auth28% | 32% | 21% | 8% | 8%
storage0% | 40% | 35% | 11% | 13%
messaging0% | 45% | 30% | 11% | 12%
dynamic_links0% | 26% | 34% | 16% | 21%
crashlytics0% | 21% | 29% | 12% | 36%
functions0% | 28% | 27% | 16% | 27%
analytics0% | 29% | 36% | 19% | 14%
scripts0% | 17% | 25% | 24% | 32%
installations0% | 24% | 30% | 29% | 15%
remote_config0% | 22% | 38% | 20% | 18%
editor0% | 13% | 21% | 41% | 24%
cmake0% | 0% | 44% | 27% | 27%
ROOT0% | 0% | 26% | 58% | 15%
testapp0% | 0% | 0% | 41% | 58%
aar_builder0% | 0% | 0% | 0% | 100%
proxy0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
UIHandlerAutomated.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
3080 126
UIHandlerAutomated.cs
in database/testapp/Assets/Firebase/Sample/Database
1784 80
i
app.i
in app/src/swig
1487 -
i
auth.i
in auth/src/swig
1329 -
InvalidArgumentsTest.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
1173 142
UIHandlerAutomated.cs
in storage/testapp/Assets/Firebase/Sample/Storage
914 73
i
messaging.i
in messaging/src/swig
884 -
UIHandler.cs
in auth/testapp/Assets/Firebase/Sample/Auth
784 47
asset
ProjectSettings.asset
in dynamic_links/testapp/ProjectSettings
769 -
asset
ProjectSettings.asset
in firestore/testapp/ProjectSettings
766 -
asset
ProjectSettings.asset
in crashlytics/testapp/ProjectSettings
766 -
asset
ProjectSettings.asset
in functions/testapp/ProjectSettings
766 -
asset
ProjectSettings.asset
in analytics/testapp/ProjectSettings
763 -
asset
ProjectSettings.asset
in auth/testapp/ProjectSettings
734 -
asset
ProjectSettings.asset
in database/testapp/ProjectSettings
734 -
build_testapps.py
in scripts/gha
666 37
asset
ProjectSettings.asset
in storage/testapp/ProjectSettings
587 -
asset
ProjectSettings.asset
in installations/testapp/ProjectSettings
587 -
asset
ProjectSettings.asset
in remote_config/testapp/ProjectSettings
561 -
asset
ProjectSettings.asset
in messaging/testapp/ProjectSettings
559 -
UIHandler.cs
in storage/testapp/Assets/Firebase/Sample/Storage
514 31
GenerateXmlFromGoogleServicesJson.cs
in editor/app/src
513 23
SerializationTestData.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
502 23
UIHandler.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
462 21
i
firestore.i
in firestore/src/swig
459 -
i
storage.i
in storage/src/swig
429 -
XcodeProjectPatcher.cs
in editor/app/src
385 17
i
future.i
in app/src/swig
374 -
StorageReference.cs
in storage/src
373 25
crashlytics_android.cc
in crashlytics/src/cpp/android
352 12
i
listener.i
in database/src/swig
345 -
Snippets.cs
in firestore/snippets
328 21
swig_post_process.py
in root
313 26
cmake
unity_mono.cmake
in cmake
313 -
cmake
unity_pack.cmake
in cmake
309 -
i
dynamic_links.i
in dynamic_links/src/swig
296 -
asset
InputManager.asset
in remote_config/testapp/ProjectSettings
295 -
asset
InputManager.asset
in firestore/testapp/ProjectSettings
295 -
asset
InputManager.asset
in storage/testapp/ProjectSettings
295 -
asset
InputManager.asset
in crashlytics/testapp/ProjectSettings
295 -
asset
InputManager.asset
in auth/testapp/ProjectSettings
295 -
asset
InputManager.asset
in messaging/testapp/ProjectSettings
295 -
asset
InputManager.asset
in installations/testapp/ProjectSettings
295 -
asset
InputManager.asset
in analytics/testapp/ProjectSettings
295 -
asset
InputManager.asset
in functions/testapp/ProjectSettings
295 -
asset
InputManager.asset
in dynamic_links/testapp/ProjectSettings
295 -
asset
InputManager.asset
in database/testapp/ProjectSettings
295 -
UIHandlerAutomated.cs
in auth/testapp/Assets/Firebase/Sample/Auth
266 15
SettingsWindow.cs
in editor/app/src
265 22
FirebaseFirestore.cs
in firestore/src
258 26
Files With Most Units (Top 20)
File# lines# units
InvalidArgumentsTest.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
1173 142
UIHandlerAutomated.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
3080 126
UIHandlerAutomated.cs
in database/testapp/Assets/Firebase/Sample/Database
1784 80
UIHandlerAutomated.cs
in storage/testapp/Assets/Firebase/Sample/Storage
914 73
UIHandler.cs
in auth/testapp/Assets/Firebase/Sample/Auth
784 47
Query.cs
in firestore/src
250 41
build_testapps.py
in scripts/gha
666 37
map.h
in firestore/src/swig
157 31
UIHandler.cs
in storage/testapp/Assets/Firebase/Sample/Storage
514 31
Query.cs
in database/src
146 29
SimpleConverters.cs
in firestore/src/Converters
138 28
FirebaseFirestore.cs
in firestore/src
258 26
swig_post_process.py
in root
313 26
transaction_manager.cc
in firestore/src/swig
237 25
StorageReference.cs
in storage/src
373 25
SerializationTestData.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
502 23
github.py
in scripts/gha
188 23
GenerateXmlFromGoogleServicesJson.cs
in editor/app/src
513 23
Preconditions.cs
in storage/src/internal
147 22
SettingsWindow.cs
in editor/app/src
265 22
Files With Long Lines (Top 20)

There are 55 files with lines longer than 120 characters. In total, there are 122 long lines.

File# lines# units# long lines
print_matrix_configuration.py
in scripts/gha
214 10 20
SimpleConverters.cs
in firestore/src/Converters
138 28 14
Query.cs
in firestore/src
250 41 12
AttributedTypeConverter.cs
in firestore/src/Converters
159 8 7
restore_secrets.py
in scripts/gha
122 4 6
i
messaging.i
in messaging/src/swig
884 - 5
DocumentSnapshot.cs
in firestore/src
95 9 3
UIHandlerAutomated.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
3080 126 2
FieldPath.cs
in firestore/src
41 3 2
DictionaryConverter.cs
in firestore/src/Converters
40 3 2
ConverterCache.cs
in firestore/src/Converters
121 5 2
Transaction.cs
in firestore/src
92 7 2
StackTraceParser.cs
in crashlytics/src
62 - 2
iOSPostBuild.cs
in editor/crashlytics/src
137 8 2
asset
DynamicsManager.asset
in remote_config/testapp/ProjectSettings
15 - 1
asset
Physics2DSettings.asset
in remote_config/testapp/ProjectSettings
25 - 1
i
remote_config.i
in remote_config/src/swig
233 - 1
SerializationTestData.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
502 23 1
EventAccumulator.cs
in firestore/testapp/Assets/Firebase/Sample/Firestore
71 6 1
asset
DynamicsManager.asset
in firestore/testapp/ProjectSettings
15 - 1