WC_Payments_Onboarding_Service D

Total Complexity 165
Dependencies 13
Dependents 5
Total lines 1,438
Lines of code 772
Logical lines of code 345
Comment lines 476
Methods 33
Properties 3

Methods 33

Method Rating Maintainability Complexity Lines of code
get_source()
D
28
34 155
get_from()
B
38 21 70
get_account_data()
B
37 15 77
init_test_drive_account()
A
42 6 52
update_enabled_payment_methods_ids()
S
51 7 27
disable_test_drive_account()
S
52 7 25
get_capabilities_from_request()
S
48 6 38
reset_onboarding()
S
52 7 22
create_embedded_kyc_session()
S
43 5 50
get_cached_business_types()
S
53 5 27
get_actioned_notes()
S
50 4 29
get_onboarding_user_data()
S
58 5 14
get_fields_data()
S
55 4 22
finalize_embedded_kyc()
S
54 4 21
is_valid_cached_business_types()
S
65 5 9
get_recommended_payment_methods()
S
58 3 17
maybe_add_test_drive_settings_to_new_account_request()
S
62 3 13
tracks_event()
S
57 2 17
set_test_mode()
S
66 3 8
add_admin_body_classes()
S
70 3 6
get_referral_code()
S
69 2 7
normalize_and_store_referral_code()
S
66 2 8
should_enable_woopay()
S
69 2 7
cleanup_on_account_reset()
S
61 1 12
exclude_placeholder_payment_methods()
S
63 1 11
is_test_mode_enabled()
S
77 1 3
set_onboarding_eligibility_modal_dismissed()
S
79 1 3
clear_account_options()
S
77 1 4
clear_embedded_kyc_in_progress()
S
80 1 3
set_embedded_kyc_in_progress()
S
79 1 3
is_embedded_kyc_in_progress()
S
78 1 3
init_hooks()
S
75 1 4
__construct()
S
74 1 5