WC_Payments_Account D

Total Complexity 372
Dependencies 19
Dependents 22
Total lines 2,756
Lines of code 1,420
Logical lines of code 649
Comment lines 1,003
Methods 92
Properties 5

Methods 92

Method Rating Maintainability Complexity Lines of code
maybe_handle_onboarding()
D
7
104 368
init_stripe_onboarding()
B
36 18 75
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
45 9 46
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()
A
46 7 39
get_recommended_payment_methods()
A
48 7 38
maybe_redirect_onboarding_referral()
S
52 7 26
maybe_redirect_from_settings_page()
S
52 6 25
finalize_embedded_connection()
S
52 6 23
get_account_status_data()
S
45 4 44
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
52 4 26
create_embedded_account_session()
S
57 3 17
get_capital()
S
65 4 8
update_stripe_account()
S
58 3 15
handle_instant_deposits_inbox_note()
S
64 3 11
tracks_event()
S
57 2 17
get_statement_descriptor_kanji()
S
73 3 4
get_account_customer_supported_currencies()
S
73 3 4
get_statement_descriptor_kana()
S
73 3 4
get_lifetime_total_payment_volume()
S
73 3 4
get_is_live()
S
73 3 4
get_publishable_key()
S
65 3 10
update_account_data()
S
66 3 8
maybe_activate_woopay()
S
66 3 9
get_fees()
S
74 3 4
get_latest_tos_agreement()
S
70 3 6
get_statement_descriptor()
S
73 3 4
save_test_drive_settings()
S
67 3 7
get_tracking_info()
S
63 2 13
init_hooks()
S
55 1 18
get_branding_icon()
S
74 2 4
settings_changed()
S
66 2 8
get_branding_logo()
S
74 2 4
get_business_support_phone()
S
74 2 4
is_overview_page()
S
77 2 3
has_working_jetpack_connection()
S
79 2 3
get_business_support_email()
S
74 2 4
maybe_init_jetpack_connection()
S
66 2 8
get_business_support_address()
S
74 2 4
get_stripe_account_id()
S
69 2 7
get_business_url()
S
74 2 4
get_business_name()
S
74 2 4
get_branding_primary_color()
S
74 2 4
has_account_data()
S
68 2 7
get_test_drive_settings_for_live_account()
S
66 2 8
is_stripe_connected()
S
70 2 7
maybe_add_instant_deposit_note_reminder()
S
66 2 8
is_progressive_onboarding_in_progress()
S
71 2 5
is_instant_deposits_eligible()
S
71 2 6
get_deposit_schedule_monthly_anchor()
S
74 2 4
is_account_rejected()
S
67 2 7
is_account_under_review()
S
68 2 7
get_branding_secondary_color()
S
74 2 4
try_is_stripe_connected()
S
68 2 7
get_payments_task_page_url()
S
63 1 11
get_wpcom_reconnect_url()
S
64 1 11
refresh_account_data()
S
80 1 3
is_card_testing_protection_eligible()
S
75 1 4
get_account_country()
S
75 1 4
get_account_default_currency()
S
74 1 4
handle_instant_deposits_inbox_reminder()
S
73 1 5
__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_provider_connected()
S
80 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
get_supported_countries()
S
81 1 3
allowed_redirect_hosts()
S
77 1 4
get_login_url()
S
68 1 8
get_provider_onboarding_page_url()
S
66 1 9
get_connect_url()
S
66 1 8
get_overview_page_url()
S
66 1 9
redirect_to_onboarding_welcome_page()
S
81 1 3