WC_Payments D

Total Complexity 177
Dependencies 132
Dependents 46
Total lines 2,058
Lines of code 1,092
Logical lines of code 688
Comment lines 660
Methods 74
Properties 38

Methods 74

Method Rating Maintainability Complexity Lines of code
init()
D
17
14 348
init_rest_api()
A
34 4 101
wcpay_show_old_woocommerce_for_hungary_sweden_and_czech_republic()
A
47 7 39
maybe_register_woopay_hooks()
S
46 6 37
add_woo_admin_notes()
S
55 7 18
load_stripe_bnpl_site_messaging()
S
58 7 14
register_gateway()
S
54 6 21
maybe_show_woopay_phone_number_error()
S
65 6 7
should_load_stripe_billing_integration()
S
53 4 23
possibly_add_note_source_where_clause()
S
60 4 12
enqueue_cart_scripts()
S
63 4 11
replace_wcpay_gateway_with_payment_methods()
S
57 3 18
create_api_client()
S
57 3 17
create_request()
S
58 3 16
set_gateway_top_of_list()
S
65 4 8
maybe_disable_wcpay_subscriptions_on_update()
S
71 4 5
filter_woocommerce_form_field_woopay_email()
S
66 4 7
hide_gateways_on_settings_page()
S
65 4 8
get_file_version()
S
68 4 6
enqueue_dev_runtime_scripts()
S
70 4 5
remove_woo_admin_notes()
S
60 3 13
ajax_get_cart_total()
S
60 3 13
add_wcpay_options_to_woocommerce_permissions_list()
S
53 2 27
possibly_add_source_to_notes_query()
S
63 3 11
enqueue_woopay_common_config_script()
S
52 2 24
ajax_get_woopay_signature()
S
58 2 17
validate_and_enqueue_woopay_common_config_script()
S
68 3 7
register_script_with_dependencies()
S
59 2 14
get_plugin_headers()
S
61 2 13
woopay_fields_before_billing_details()
S
54 1 21
wcpay_show_old_woocommerce_for_norway_notice()
S
57 1 20
maybe_init_woopay_direct_checkout()
S
69 2 7
maybe_enqueue_woopay_common_config_script()
S
70 2 6
init_woopay()
S
63 2 9
get_payment_gateway_by_id()
S
70 2 6
maybe_display_express_checkout_buttons()
S
64 2 9
get_payment_method_by_id()
S
70 2 6
get_wc_payments_http()
S
62 2 10
install_actions()
S
70 2 6
ajax_check_bnpl_availability()
S
61 1 12
enqueue_assets_script()
S
63 1 11
set_plugin_activation_timestamp()
S
79 1 3
display_admin_error()
S
79 1 3
display_admin_notice()
S
70 1 8
is_network_saved_cards_enabled()
S
79 1 3
add_ipp_emails()
S
75 1 4
set_token_service()
S
80 1 3
update_plugin_version()
S
79 1 3
get_account_service()
S
80 1 3
add_user_data_fields()
S
72 1 6
woopay_tracker()
S
80 1 3
get_payment_method_map()
S
80 1 3
get_payment_gateway_map()
S
80 1 3
get_gateway()
S
80 1 3
get_wc_payments_checkout()
S
80 1 3
get_express_checkout_helper()
S
80 1 3
get_database_cache()
S
80 1 3
set_database_cache()
S
80 1 3
set_gateway()
S
80 1 3
set_express_checkout_helper()
S
80 1 3
set_account_service()
S
80 1 3
register_checkout_gateway()
S
75 1 4
get_payments_api_client()
S
80 1 3
get_localization_service()
S
80 1 3
get_settings_service()
S
80 1 3
get_action_scheduler_service()
S
80 1 3
get_fraud_service()
S
80 1 3
mode()
S
80 1 3
get_customer_service_api()
S
80 1 3
get_order_service()
S
80 1 3
get_token_service()
S
80 1 3
set_customer_service()
S
80 1 3
get_session_service()
S
80 1 3
get_customer_service()
S
80 1 3