firebase / firebase-admin-go
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 592 units with 6,563 lines of code in units (82.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (107 lines of code)
    • 13 medium complex units (566 lines of code)
    • 34 simple units (895 lines of code)
    • 544 very simple units (4,995 lines of code)
0% | 1% | 8% | 13% | 76%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
go0% | 1% | 8% | 13% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
auth0% | 4% | 17% | 13% | 65%
messaging0% | 0% | 8% | 30% | 60%
db0% | 0% | 0% | 23% | 76%
snippets0% | 0% | 0% | 3% | 96%
ROOT0% | 0% | 0% | 24% | 75%
internal0% | 0% | 0% | 4% | 95%
iid0% | 0% | 0% | 0% | 100%
errorutils0% | 0% | 0% | 0% | 100%
integration0% | 0% | 0% | 0% | 100%
storage0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in auth/user_mgt.go
107 32 1
func()
in auth/provider_config.go
29 18 1
func()
in auth/provider_config.go
29 17 1
func()
in auth/provider_config.go
35 17 1
func NewClient()
in auth/auth.go
83 16 2
func()
in auth/provider_config.go
38 16 1
func()
in auth/token_verifier.go
52 15 1
func()
in auth/import_users.go
55 14 1
func()
in auth/import_users.go
41 14 1
func()
in auth/user_mgt.go
37 14 1
func validateAndroidNotification()
in messaging/messaging_utils.go
26 12 1
func validateWebpushConfig()
in messaging/messaging_utils.go
25 12 1
func()
in auth/user_mgt.go
72 11 1
func()
in messaging/messaging.go
44 11 1
func()
in auth/email_action_links.go
23 10 1
func()
in auth/user_mgt.go
36 10 1
func()
in messaging/messaging.go
59 10 1
func()
in messaging/messaging.go
29 10 1
26 10 2
func()
in auth/user_mgt.go
24 9 1