WC_Payments_Account D

Total Complexity 334
Dependencies 20
Dependents 22
Total lines 2,448
Lines of code 1,247
Logical lines of code 572
Comment lines 902
Methods 86
Properties 5

Methods 86

Method Rating Maintainability Complexity Lines of code
maybe_handle_onboarding()
D
10
95 328
init_stripe_onboarding()
A
40 14 58
maybe_redirect_from_onboarding_wizard_page()
A
43 10 50
maybe_redirect_by_get_param()
A
45 10 40
maybe_redirect_from_connect_page()
A
47 10 39
get_cached_account_data()
A
47 8 40
is_valid_cached_account()
A
55 9 22
maybe_redirect_from_overview_page()
A
50 8 27
maybe_redirect_after_plugin_activation()
A
52 8 25
finalize_connection()
S
47 6 35
maybe_redirect_from_settings_page()
S
52 6 25
finalize_embedded_connection()
S
52 6 23
get_account_status_data()
S
46 4 40
handle_loan_approved_inbox_note()
S
55 5 19
possibly_update_wcpay_account_locale()
S
57 5 15
is_stripe_account_valid()
S
60 5 14
get_onboarding_return_url()
S
56 3 19
update_stripe_account()
S
58 3 15
get_capital()
S
65 4 8
handle_instant_deposits_inbox_note()
S
64 3 11
tracks_event()
S
57 2 17
get_is_live()
S
73 3 4
get_account_customer_supported_currencies()
S
73 3 4
get_latest_tos_agreement()
S
70 3 6
get_fees()
S
74 3 4
get_lifetime_total_payment_volume()
S
73 3 4
maybe_activate_woopay()
S
66 3 9
get_statement_descriptor_kana()
S
73 3 4
get_publishable_key()
S
65 3 10
get_statement_descriptor()
S
73 3 4
get_statement_descriptor_kanji()
S
73 3 4
get_tracking_info()
S
63 2 13
init_hooks()
S
56 1 17
get_branding_secondary_color()
S
74 2 4
get_stripe_account_id()
S
69 2 7
get_deposit_schedule_monthly_anchor()
S
74 2 4
has_working_jetpack_connection()
S
79 2 3
maybe_init_jetpack_connection()
S
66 2 8
has_account_data()
S
68 2 7
is_overview_page()
S
77 2 3
update_account_data()
S
71 2 5
is_stripe_connected()
S
70 2 7
try_is_stripe_connected()
S
68 2 7
is_account_rejected()
S
67 2 7
settings_changed()
S
66 2 8
get_branding_primary_color()
S
74 2 4
is_account_under_review()
S
68 2 7
maybe_add_instant_deposit_note_reminder()
S
66 2 8
is_instant_deposits_eligible()
S
71 2 6
get_branding_icon()
S
74 2 4
get_branding_logo()
S
74 2 4
is_progressive_onboarding_in_progress()
S
71 2 5
get_business_support_phone()
S
74 2 4
get_business_support_email()
S
74 2 4
get_business_support_address()
S
74 2 4
get_business_url()
S
74 2 4
get_business_name()
S
74 2 4
cleanup_on_account_reset()
S
62 1 12
get_payments_task_page_url()
S
63 1 11
get_wpcom_reconnect_url()
S
64 1 11
refresh_account_data()
S
80 1 3
handle_instant_deposits_inbox_reminder()
S
73 1 5
get_account_country()
S
75 1 4
get_account_default_currency()
S
74 1 4
is_card_testing_protection_eligible()
S
75 1 4
__construct()
S
69 1 7
get_onboarding_kyc_url()
S
66 1 8
get_deposit_completed_waiting_period()
S
75 1 4
clear_cache()
S
81 1 3
is_details_submitted()
S
72 1 5
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
is_card_present_eligible()
S
75 1 4
is_on_boarding_disabled()
S
80 1 3
has_card_readers_available()
S
75 1 4
get_progressive_onboarding_details()
S
64 1 9
get_account_email()
S
75 1 4
allowed_redirect_hosts()
S
77 1 4
get_login_url()
S
68 1 8
get_connect_url()
S
66 1 8
get_connect_page_url()
S
66 1 9
get_overview_page_url()
S
66 1 9
redirect_to_onboarding_welcome_page()
S
81 1 3