WC_Payments D

Total Complexity 181
Dependencies 138
Dependents 47
Total lines 2,080
Lines of code 1,107
Logical lines of code 711
Comment lines 667
Methods 74
Properties 38

Methods 74

Method Rating Maintainability Complexity Lines of code
init()
D
17
14 367
order_woopayments_gateways()
A
47 10 34
init_rest_api()
A
34 4 104
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
56 7 16
load_stripe_bnpl_site_messaging()
S
57 7 15
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
register_gateway()
S
62 4 11
create_api_client()
S
57 3 17
create_request()
S
58 3 16
hide_gateways_on_settings_page()
S
65 4 8
filter_woocommerce_form_field_woopay_email()
S
66 4 7
get_file_version()
S
68 4 6
maybe_disable_wcpay_subscriptions_on_update()
S
71 4 5
enqueue_dev_runtime_scripts()
S
70 4 5
ajax_get_cart_total()
S
60 3 13
remove_woo_admin_notes()
S
60 3 13
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
remove_deprecated_notes()
S
69 3 6
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
add_user_data_fields()
S
60 1 16
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
maybe_display_express_checkout_buttons()
S
64 2 9
get_woopayments_gateway_ids()
S
69 2 7
get_payment_gateway_by_id()
S
70 2 6
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
display_admin_error()
S
79 1 3
add_ipp_emails()
S
75 1 4
display_admin_notice()
S
70 1 8
is_network_saved_cards_enabled()
S
79 1 3
set_token_service()
S
80 1 3
set_plugin_activation_timestamp()
S
79 1 3
set_account_service()
S
80 1 3
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
get_account_service()
S
80 1 3
get_payments_api_client()
S
80 1 3
update_plugin_version()
S
79 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
register_checkout_gateway()
S
75 1 4
get_customer_service()
S
80 1 3