WC_Payments D

Total Complexity 158
Dependencies 120
Dependents 41
Total lines 1,892
Lines of code 1,008
Logical lines of code 633
Comment lines 600
Methods 67
Properties 34

Methods 67

Method Rating Maintainability Complexity Lines of code
init()
C
19
12 313
wcpay_show_old_woocommerce_for_hungary_sweden_and_czech_republic()
A
47 7 39
add_woo_admin_notes()
A
47 7 38
maybe_register_woopay_hooks()
S
46 6 36
init_rest_api()
S
36 2 92
register_gateway()
S
54 6 21
load_stripe_bnpl_site_messaging()
S
59 5 13
enqueue_woopay_common_config_script()
S
51 4 27
should_load_stripe_billing_integration()
S
53 4 23
possibly_add_note_source_where_clause()
S
60 4 12
replace_wcpay_gateway_with_payment_methods()
S
57 3 18
create_api_client()
S
57 3 17
create_request()
S
58 3 16
enqueue_dev_runtime_scripts()
S
70 4 5
filter_woocommerce_form_field_woopay_email()
S
66 4 7
maybe_disable_wcpay_subscriptions_on_update()
S
71 4 5
get_file_version()
S
68 4 6
hide_gateways_on_settings_page()
S
65 4 8
set_gateway_top_of_list()
S
65 4 8
remove_woo_admin_notes()
S
60 3 13
ajax_get_cart_total()
S
60 3 13
possibly_add_source_to_notes_query()
S
63 3 11
enqueue_cart_scripts()
S
63 3 11
add_wcpay_options_to_woocommerce_permissions_list()
S
55 2 23
ajax_get_woopay_signature()
S
58 2 17
register_script_with_dependencies()
S
59 2 14
get_plugin_headers()
S
61 2 13
woopay_fields_before_billing_details()
S
54 1 21
maybe_display_express_checkout_buttons()
S
66 2 8
get_wc_payments_http()
S
62 2 10
get_payment_method_by_id()
S
70 2 6
maybe_init_woopay_direct_checkout()
S
69 2 7
maybe_enqueue_woopay_common_config_script()
S
70 2 6
install_actions()
S
70 2 6
init_woopay()
S
65 2 8
get_payment_gateway_by_id()
S
70 2 6
enqueue_assets_script()
S
63 1 11
display_admin_notice()
S
70 1 8
add_user_data_fields()
S
72 1 6
add_ipp_emails()
S
75 1 4
set_plugin_activation_timestamp()
S
79 1 3
is_network_saved_cards_enabled()
S
79 1 3
display_admin_error()
S
79 1 3
register_checkout_gateway()
S
75 1 4
update_plugin_version()
S
79 1 3
get_account_service()
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
woopay_tracker()
S
80 1 3
get_payments_api_client()
S
80 1 3
mode()
S
80 1 3
get_action_scheduler_service()
S
80 1 3
get_fraud_service()
S
80 1 3
get_customer_service()
S
80 1 3
get_customer_service_api()
S
80 1 3
get_order_service()
S
80 1 3
set_customer_service()
S
80 1 3
get_session_service()
S
80 1 3
get_localization_service()
S
80 1 3