firebase / firebase-cpp-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 1,152 files with 101,331 lines of code.
    • 1 very long files (1,458 lines of code)
    • 25 long files (17,457 lines of code)
    • 87 medium size files (26,706 lines of codeclsfd_ftr_w_mp_ins)
    • 157 small files (22,223 lines of code)
    • 882 very small files (33,487 lines of code)
1% | 17% | 26% | 21% | 33%
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
cc2% | 28% | 27% | 22% | 18%
cmake0% | 43% | 14% | 0% | 41%
mm0% | 7% | 50% | 22% | 19%
h0% | 2% | 10% | 22% | 64%
py0% | 11% | 51% | 25% | 11%
java0% | 0% | 25% | 17% | 57%
cpp0% | 0% | 100% | 0% | 0%
rb0% | 0% | 0% | 100% | 0%
swift0% | 0% | 0% | 0% | 100%
kt0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
pro0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
app7% | 13% | 30% | 17% | 30%
database0% | 29% | 24% | 20% | 25%
auth0% | 24% | 21% | 17% | 36%
messaging0% | 46% | 6% | 24% | 22%
remote_config0% | 38% | 11% | 24% | 25%
cmake0% | 55% | 18% | 0% | 26%
dynamic_links0% | 49% | 16% | 28% | 6%
storage0% | 9% | 36% | 20% | 33%
scripts0% | 12% | 49% | 21% | 16%
firestore0% | 3% | 21% | 24% | 50%
admob0% | 0% | 38% | 24% | 36%
testing0% | 0% | 31% | 22% | 46%
analytics0% | 0% | 37% | 27% | 35%
performance0% | 0% | 23% | 44% | 31%
ROOT0% | 0% | 54% | 30% | 14%
functions0% | 0% | 17% | 36% | 46%
testlab0% | 0% | 23% | 49% | 26%
installations0% | 0% | 0% | 24% | 75%
build_tools0% | 0% | 0% | 0% | 100%
ios_pod0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
util_android.cc
in app/src
1458 67
util_desktop.cc
in database/src/desktop
975 48
repo.cc
in database/src/desktop/core
943 41
remote_config_android.cc
in remote_config/src/android
887 42
cmake
apple.toolchain.cmake
in cmake/toolchains
887 -
persistent_connection.cc
in database/src/desktop/connection
883 54
credential_android.cc
in auth/src/android
807 29
messaging.cc
in messaging/src/android/cpp
784 41
dynamic_links_android.cc
in dynamic_links/src
781 26
user_desktop.cc
in auth/src/desktop
745 52
messaging.mm
in messaging/src/ios
722 36
transport_curl.cc
in app/rest
712 30
level_db_persistence_storage_engine.cc
in database/src/desktop/persistence
679 39
database_android.cc
in database/src/android
660 27
storage_reference_android.cc
in storage/src/android
641 27
util_android.h
in app/src
625 14
reference_counted_future_impl.cc
in app/src
621 37
merge_libraries.py
in scripts
609 28
query_android.cc
in database/src/android
601 14
sync_tree.cc
in database/src/desktop/core
577 26
zlibwrapper.cc
in app/rest
575 32
view_processor.cc
in database/src/desktop/view
570 13
user_android.cc
in auth/src/android
566 41
auth_desktop.cc
in auth/src/desktop
562 47
firestore_android.cc
in firestore/src/android
523 38
remote_config_desktop.cc
in remote_config/src/desktop
522 43
variant.cc
in app/src
495 9
storage_reference_ios.mm
in storage/src/ios
491 21
auth_android.cc
in auth/src/android
479 26
build_testapps.py
in scripts/gha
472 15
app_android.cc
in app/src
461 16
intrusive_list.h
in app/src
459 60
query_ios.mm
in database/src/ios
455 15
NativeExpressAdViewHelper.java
in admob/src_java/com/google/firebase/admob/internal/cpp
447 18
BannerViewHelper.java
in admob/src_java/com/google/firebase/admob/internal/cpp
442 18
android_app_framework.cc
in testing/sample_framework/src/android
437 29
game_engine.cpp
in admob/tools/ios/testapp/testapp
434 14
update_android_ios_dependencies.py
in scripts
432 13
user_data_converter_main.cc
in firestore/src/main
416 18
metadata_android.cc
in storage/src/android
412 20
variant.h
in app/src/include/firebase
412 68
database_reference_android.cc
in database/src/android
410 19
query_desktop.cc
in database/src/desktop
409 17
credential_ios.mm
in auth/src/ios
406 24
write_tree.cc
in database/src/desktop/core
403 26
remote_config_ios.mm
in remote_config/src/ios
402 33
storage_android.cc
in storage/src/android
402 11
util_ios.mm
in app/src
397 16
app_common.cc
in app/src
379 12
common_android.cc
in auth/src/android
374 10
Files With Most Units (Top 20)
File# lines# units
variant.h
in app/src/include/firebase
412 68
util_android.cc
in app/src
1458 67
intrusive_list.h
in app/src
459 60
persistent_connection.cc
in database/src/desktop/connection
883 54
user_desktop.cc
in auth/src/desktop
745 52
util_desktop.cc
in database/src/desktop
975 48
auth_desktop.cc
in auth/src/desktop
562 47
remote_config_desktop.cc
in remote_config/src/desktop
522 43
remote_config_android.cc
in remote_config/src/android
887 42
user_android.cc
in auth/src/android
566 41
messaging.cc
in messaging/src/android/cpp
784 41
repo.cc
in database/src/desktop/core
943 41
level_db_persistence_storage_engine.cc
in database/src/desktop/persistence
679 39
firestore_android.cc
in firestore/src/android
523 38
reference_counted_future_impl.h
in app/src
267 38
reference_counted_future_impl.cc
in app/src
621 37
query.cc
in firestore/src/common
244 36
messaging.mm
in messaging/src/ios
722 36
remote_config_ios.mm
in remote_config/src/ios
402 33
remote_config.cc
in remote_config/src
162 32
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 48 long lines.

File# lines# units# long lines
cmake
apple.toolchain.cmake
in cmake/toolchains
887 - 21
print_matrix_configuration.py
in scripts/gha
239 7 6
pr_file_commenter.py
in scripts/gha
185 2 6
summarize_test_results.py
in scripts/gha
285 16 4
build_desktop.py
in scripts/gha
146 7 3
lint_commenter.py
in scripts/gha
201 2 3
it_workflow.py
in scripts/gha
205 12 2
app.h
in app/src/include/firebase
205 10 1
invites_android_helper.cc
in app/src/invites/android
193 8 1
admob_android.cc
in admob/src/android
349 12 1