firebase / firebase-admin-python
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 875 units with 5,544 lines of code in units (82.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 15 medium complex units (560 lines of code)
    • 44 simple units (777 lines of code)
    • 816 very simple units (4,207 lines of code)
0% | 0% | 10% | 14% | 75%
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
py0% | 0% | 10% | 14% | 75%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
firebase_admin0% | 0% | 12% | 16% | 70%
snippets/auth0% | 0% | 1% | 2% | 96%
snippets/database0% | 0% | 0% | 0% | 100%
snippets/messaging0% | 0% | 0% | 0% | 100%
integration0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def verify()
in firebase_admin/_token_gen.py
81 24 3
def encode_action_code_settings()
in firebase_admin/_user_mgt.py
45 19 1
def update_user()
in firebase_admin/_user_mgt.py
44 18 12
def encode_android_notification()
in firebase_admin/_messaging_encoder.py
89 18 2
def update_oidc_provider_config()
in firebase_admin/_auth_providers.py
37 13 9
def get_users()
in firebase_admin/_auth_client.py
23 12 2
def update_saml_provider_config()
in firebase_admin/_auth_providers.py
35 12 9
def create_session_cookie()
in firebase_admin/_token_gen.py
30 12 3
def make_topic_management_request()
in firebase_admin/messaging.py
28 12 4
12 12 2
def create_custom_token()
in firebase_admin/_token_gen.py
37 11 4
def validate_int()
in firebase_admin/_auth_utils.py
15 11 4
def import_users()
in firebase_admin/_user_mgt.py
20 11 3
def encode_aps_alert()
in firebase_admin/_messaging_encoder.py
37 11 2
def __next__()
in firebase_admin/_sseclient.py
27 11 1
def check_string_dict()
in firebase_admin/_messaging_encoder.py
12 10 3
def encode_light_settings()
in firebase_admin/_messaging_encoder.py
36 10 2
def encode_aps_sound()
in firebase_admin/_messaging_encoder.py
20 10 2
def list_tenants()
in firebase_admin/tenant_mgt.py
17 9 3
def create_oidc_provider_config()
in firebase_admin/_auth_providers.py
28 9 9