Code Analysis: Eway Payments for Woo 3.8.0

Function Rating Maintainability Complexity Lines of code
WC_Gateway_Eway_Error_Codes::get_error_codes()
C
15
1 408
WC_Gateway_EWAY::process_payment()
B
36 18 80
WC_Gateway_EWAY::process_payment_with_trasparent_redirect()
A
41 12 52
WC_Gateway_EWAY::process_refund()
A
45 12 40
WC_Gateway_EWAY::preserve_customer_token()
A
43 11 49
WC_Gateway_EWAY_Ajax_Request_Controller::get_token_from_ajax_request()
A
47 10 38
WC_Gateway_EWAY::get_customer_payment_tokens()
A
46 9 38
WC_Gateway_EWAY::init_form_fields()
A
33 2 131
WC_Gateway_EWAY::add_payment_method()
A
43 7 52
WC_Gateway_EWAY::responsive_shared_page()
A
42 7 51
WC_Gateway_EWAY::__construct()
A
41 6 59
WC_EWAY_API::direct_payment_with_secured_card_data_token()
A
38 5 68
WC_Gateway_EWAY_Ajax_Request_Controller::eway_3ds_enrollment_order_pay()
A
48 7 31
WC_Gateway_EWAY::validate_checkout_values()
S
47 6 39
WC_Payment_Token_Eway_CC::validate()
S
56 7 21
WC_Gateway_EWAY_Subscriptions::maybe_render_subscription_payment_method()
S
55 7 18
WC_Gateway_EWAY::request_access_code()
S
58 7 14
woocommerce_eway_init()
S
50 6 28
WC_Gateway_EWAY::payment_fields()
S
52 6 26
WC_Gateway_EWAY_Subscriptions::migrate_eway_customer_token_from_user_meta()
S
52 6 25
WC_Gateway_EWAY_Privacy::maybe_handle_subscription()
S
52 6 24
wc_eway_get_asset_data()
S
55 6 19
WC_Gateway_EWAY_Subscriptions::maybe_update_all_subscriptions_payment()
S
58 6 17
WC_Gateway_EWAY_Subscriptions::maybe_update_payment_method()
S
58 6 16
WC_Gateway_EWAY_Subscriptions::request_access_code()
S
56 6 16
WC_Gateway_EWAY::enqueue_scripts()
S
43 3 57
WC_Gateway_EWAY_Subscriptions::validate_subscription_payment_meta()
S
61 6 11
WC_Gateway_EWAY_Subscriptions::check_customer_has_token()
S
47 4 39
WC_EWAY_API::request_access_code()
S
42 3 51
WC_Gateway_EWAY::response_listener()
S
49 4 31
WC_Gateway_EWAY_Privacy::subscriptions_data_exporter()
S
45 3 45
WC_Gateway_EWAY::get_icon()
S
59 4 15
WC_Gateway_EWAY::validate_fields()
S
63 5 10
WC_EWAY_API::direct_payment()
S
45 2 44
WC_Gateway_EWAY_Subscriptions::process_subscription_payment()
S
59 4 14
WC_EWAY_API::get_customer_token_detail()
S
58 4 13
WC_EWAY_API::perform_request()
S
50 3 27
WC_Gateway_EWAY::can_save_eway_customer_token()
S
63 4 12
WC_Gateway_EWAY_Blocks_Support::add_eway_saved_payment_methods()
S
51 3 26
WC_Gateway_EWAY_Privacy::order_data_exporter()
S
52 3 26
WC_Gateway_EWAY::handle_eway_payment_response()
S
52 3 24
WC_EWAY_API::perform_get_request()
S
52 3 23
WC_Gateway_EWAY::receipt_page()
S
49 2 32
WC_Gateway_EWAY::print_receipt_page_css()
S
56 3 17
WC_EWAY_API::get_access_code_share()
S
44 1 46
WC_EWAY_API::__construct()
S
59 3 15
WC_EWAY_API::debug_message()
S
64 4 10
WC_Gateway_EWAY::plugin_url()
S
59 3 15
WC_Gateway_EWAY::get_api()
S
61 3 13
WC_EWAY_API::three_ds_enroll_secured_card_data_token()
S
51 2 26
WC_Gateway_EWAY_Privacy::order_data_eraser()
S
53 2 24
WC_Gateway_EWAY_Blocks_Support::get_payment_method_data()
S
54 2 22
WC_Gateway_EWAY_Ajax_Request_Controller::eway_3ds_enrollment()
S
56 2 18
WC_Gateway_EWAY::is_available()
S
68 3 7
WC_Gateway_EWAY::process_payment_request()
S
58 2 15
WC_Gateway_EWAY::get_order_item()
S
58 2 15
WC_Gateway_EWAY_Subscriptions::get_subscriptions_from_order()
S
67 3 9
WC_Gateway_EWAY_Subscriptions::set_token_customer_id()
S
65 3 9
WC_Gateway_EWAY_Subscriptions::can_save_eway_customer_token()
S
71 3 6
woocommerce_eway_add_gateway()
S
67 3 8
WC_Gateway_EWAY::log()
S
67 3 8
WC_Gateway_EWAY_Privacy::get_eway_orders()
S
59 2 14
WC_Gateway_EWAY::admin_options()
S
61 2 13
WC_Gateway_EWAY::process_payment_with_secure_fields()
S
60 2 13
WC_Gateway_Eway_Error_Codes::get_message()
S
61 2 12
woocommerce_eway_woocommerce_blocks_support()
S
64 2 11
WC_EWAY_API::direct_refund()
S
57 1 17
WC_EWAY_API::add_new_credit_card()
S
56 1 17
WC_Gateway_EWAY_Blocks_Support::get_payment_method_script_handles()
S
59 1 16
wc_eway_get_saved_payment_methods_list()
S
65 2 8
WC_Gateway_EWAY_Subscriptions::get_token_customer_id()
S
67 2 8
WC_Gateway_EWAY_Privacy::__construct()
S
65 2 8
WC_EWAY_API::validate_result()
S
71 2 6
WC_Gateway_EWAY_Subscriptions::order_contains_subscription()
S
78 2 3
WC_Gateway_EWAY_Ajax_Request_Controller::get_gateway_class()
S
70 2 7
WC_Gateway_EWAY_Blocks_Support::initialize()
S
60 1 15
eway_declare_hpos_compatibility()
S
72 2 5
WC_Gateway_EWAY::is_eway_secure_fields_enabled()
S
77 2 3
WC_Gateway_EWAY::needs_setup()
S
78 2 3
WC_Gateway_Eway_Error_Codes::get_error_messages()
S
68 2 7
WC_Gateway_Eway_Error_Codes::get_error_message()
S
69 2 7
WC_Gateway_EWAY_Blocks_Support::get_show_saved_cards()
S
77 2 3
WC_Gateway_EWAY_Subscriptions::is_subscription()
S
69 2 7
WC_Gateway_EWAY_Subscriptions::has_eway_customer_token()
S
60 1 15
WC_Gateway_EWAY_Privacy::maybe_handle_order()
S
65 2 9
WC_Gateway_EWAY_Subscriptions::scheduled_subscription_payment()
S
69 2 6
WC_Gateway_EWAY::get_all_payment_icons()
S
60 1 13
WC_Gateway_Eway_Error_Codes::add_notice()
S
61 1 12
WC_Gateway_EWAY::add_new_customer_token()
S
63 1 11
WC_Gateway_EWAY_Subscriptions::add_subscription_payment_meta()
S
63 1 11
WC_Gateway_EWAY_Subscriptions::__construct()
S
62 1 10
WC_EWAY_API::get_invoice_reference()
S
75 1 4
WC_Payment_Token_Eway_CC::set_number()
S
80 1 3
woocommerce_eway_outdated_wcs_notice()
S
72 1 5
WC_Gateway_EWAY::get_required_settings_keys()
S
73 1 6
WC_Payment_Token_Eway_CC::get_hook_prefix()
S
82 1 3
WC_Gateway_EWAY_Blocks_Support::get_supported_features()
S
81 1 3
WC_EWAY_API::lookup_customer()
S
79 1 3
WC_EWAY_API::get_access_code_result()
S
70 1 6
WC_Gateway_EWAY::get_setup_help_text()
S
68 1 9
WC_Payment_Token_Eway_CC::get_expiry_month()
S
79 1 3
WC_Payment_Token_Eway_CC::get_expiry_year()
S
79 1 3
WC_Gateway_EWAY_Ajax_Request_Controller::setup_hooks()
S
66 1 9
woocommerce_eway_outdated_wc_notice()
S
72 1 5
woocommerce_eway_plugin_action_links()
S
68 1 7
WC_Payment_Token_Eway_CC::set_expiry_month()
S
78 1 3
WC_Payment_Token_Eway_CC::set_expiry_year()
S
80 1 3
WC_Gateway_EWAY::print_responsive_shared_page_css()
S
69 1 6
WC_Gateway_EWAY_Blocks_Support::is_active()
S
81 1 3
WC_EWAY_API::get_3dsverify_results()
S
64 1 9
WC_Payment_Token_Eway_CC::get_number()
S
79 1 3
WC_Gateway_EWAY_Blocks_Support::get_saved_cards()
S
79 1 3
WC_Gateway_EWAY::response_message_lookup()
S
80 1 3
WC_Gateway_EWAY_Privacy::get_privacy_message()
S
78 1 3
WC_Payment_Token_Eway_CC::get_display_name()
S
66 1 9
WC_Gateway_EWAY::get_token_customer_id()
S
79 1 3
WC_Gateway_EWAY_Subscriptions::update_failing_payment_method()
S
76 1 4
wc_eway_get_gateway_class()
S
76 1 4
wc_eway_add_notice()
S
68 1 9
WC_Gateway_EWAY::set_token_customer_id()
S
76 1 4
WC_Gateway_EWAY_Ajax_Request_Controller::get_eway_api()
S
81 1 3