WC_Payments_Account D

Total Complexity 281
Dependencies 24
Dependents 20
Total lines 2,103
Lines of code 1,164
Logical lines of code 556
Comment lines 669
Methods 89
Properties 4

Methods 89

Method Rating Maintainability Complexity Lines of code
maybe_handle_onboarding()
D
26
39 149
init_stripe_onboarding()
B
34 15 96
maybe_redirect_to_onboarding()
A
50 9 29
maybe_redirect_to_wcpay_connect()
A
45 8 41
get_cached_account_data()
A
47 8 40
finalize_connection()
A
46 7 36
maybe_redirect_onboarding_flow_to_connect()
S
50 7 28
maybe_redirect_settings_to_connect_or_overview()
S
47 6 43
is_valid_cached_account()
S
58 7 18
maybe_redirect_onboarding_flow_to_overview()
S
51 6 30
maybe_redirect_to_capital_offer()
S
51 5 28
handle_loan_approved_inbox_note()
S
55 5 19
possibly_update_wcpay_account_locale()
S
57 5 15
redirect_to_account_link()
S
58 5 15
get_actioned_notes()
S
50 4 29
get_onboarding_user_data()
S
58 5 13
get_account_status_data()
S
46 3 40
get_onboarding_return_url()
S
55 4 21
redirect_to_onboarding_flow_page()
S
56 4 19
maybe_redirect_to_server_link()
S
61 4 14
maybe_init_jetpack_connection()
S
56 3 19
update_stripe_account()
S
58 3 15
get_capital()
S
65 4 8
redirect_to_onboarding_welcome_page()
S
59 3 14
handle_instant_deposits_inbox_note()
S
64 3 11
tracks_event()
S
57 2 17
get_latest_tos_agreement()
S
70 3 6
get_statement_descriptor_kana()
S
73 3 4
get_is_live()
S
73 3 4
get_account_customer_supported_currencies()
S
73 3 4
get_fees()
S
74 3 4
get_publishable_key()
S
65 3 10
get_lifetime_total_payments_volume()
S
73 3 4
get_statement_descriptor()
S
73 3 4
maybe_activate_woopay()
S
66 3 9
is_stripe_account_valid()
S
64 3 10
get_statement_descriptor_kanji()
S
73 3 4
get_tracking_info()
S
63 2 13
init_hooks()
S
56 1 18
settings_changed()
S
66 2 8
get_business_support_address()
S
74 2 4
get_stripe_account_id()
S
69 2 7
is_overview_page()
S
77 2 3
is_stripe_connected()
S
70 2 7
is_account_under_review()
S
68 2 7
is_account_rejected()
S
67 2 7
get_business_url()
S
74 2 4
update_cached_account_data()
S
71 2 5
get_deposit_schedule_monthly_anchor()
S
74 2 4
get_business_support_email()
S
74 2 4
get_business_support_phone()
S
74 2 4
get_branding_logo()
S
74 2 4
get_branding_icon()
S
74 2 4
get_branding_primary_color()
S
74 2 4
get_branding_secondary_color()
S
74 2 4
try_is_stripe_connected()
S
68 2 7
is_instant_deposits_eligible()
S
71 2 6
maybe_add_instant_deposit_note_reminder()
S
66 2 8
is_progressive_onboarding_in_progress()
S
71 2 5
get_business_name()
S
74 2 4
get_wpcom_reconnect_url()
S
64 1 11
is_card_testing_protection_eligible()
S
75 1 4
get_account_default_currency()
S
74 1 4
handle_instant_deposits_inbox_reminder()
S
73 1 5
update_account_data()
S
79 1 3
clear_cache()
S
81 1 3
get_account_country()
S
75 1 4
get_connect_url()
S
77 1 3
refresh_account_data()
S
80 1 3
get_progressive_onboarding_details()
S
64 1 9
get_deposit_schedule_interval()
S
75 1 4
get_deposit_schedule_weekly_anchor()
S
75 1 4
get_deposit_delay_days()
S
75 1 4
get_deposit_status()
S
75 1 4
get_deposit_restrictions()
S
75 1 4
get_deposit_completed_waiting_period()
S
75 1 4
is_card_present_eligible()
S
75 1 4
has_card_readers_available()
S
75 1 4
get_account_email()
S
75 1 4
redirect_to_login()
S
64 1 10
is_details_submitted()
S
72 1 5
allowed_redirect_hosts()
S
77 1 4
get_login_url()
S
68 1 8
get_payments_task_page_url()
S
65 1 10
get_connect_page_url()
S
66 1 9
get_overview_page_url()
S
66 1 9
is_on_boarding_disabled()
S
80 1 3
redirect_to()
S
77 1 4
__construct()
S
71 1 6