firebase / firebase-admin-go
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 592 units with 6,563 lines of code in units (82.1% of code).
    • 1 very long units (107 lines of code)
    • 5 long units (321 lines of code)
    • 73 medium size units (1,992 lines of code)
    • 166 small units (2,409 lines of code)
    • 347 very small units (1,734 lines of code)
1% | 4% | 30% | 36% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go1% | 4% | 30% | 36% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
auth4% | 9% | 32% | 22% | 31%
messaging0% | 5% | 43% | 33% | 16%
snippets0% | 0% | 30% | 50% | 18%
db0% | 0% | 17% | 56% | 25%
ROOT0% | 0% | 45% | 11% | 43%
internal0% | 0% | 0% | 71% | 28%
iid0% | 0% | 0% | 26% | 73%
integration0% | 0% | 0% | 36% | 63%
errorutils0% | 0% | 0% | 0% | 100%
storage0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func()
in auth/user_mgt.go
107 32 1
func NewClient()
in auth/auth.go
83 16 2
func()
in auth/user_mgt.go
72 11 1
func()
in messaging/messaging.go
59 10 1
func()
in auth/import_users.go
55 14 1
func()
in auth/token_verifier.go
52 15 1
func()
in messaging/messaging.go
45 5 1
func()
in messaging/messaging.go
44 11 1
func()
in auth/import_users.go
41 14 1
func()
in auth/provider_config.go
38 16 1
func()
in auth/user_mgt.go
37 14 1
func()
in messaging/messaging.go
37 7 1
func()
in auth/user_mgt.go
36 10 1
func()
in db/ref.go
36 6 1
func()
in auth/auth.go
35 8 1
func()
in auth/provider_config.go
35 17 1
33 5 1
func()
in auth/user_mgt.go
32 6 1
func()
in auth/export_users.go
32 6 1
func()
in messaging/topic_mgt.go
32 9 1