Code Analysis: Revolut Gateway for WooCommerce 4.13.0

Function Rating Maintainability Complexity Lines of code
WC_Revolut_Payment_Ajax_Controller::wc_revolut_process_payment_result()
C
37 24 68
Revolut_Webhook_Controller::handle_revolut_webhook_callbacks()
B
33 21 96
WC_Payment_Gateway_Revolut::save_payment_method()
B
39 18 56
WC_Payment_Gateway_Revolut::handle_revolut_order_result()
B
44 19 40
WC_Payment_Gateway_Revolut::payment_fields()
B
37 15 80
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_create_order()
B
40 16 58
WC_Payment_Gateway_Revolut::woocommerce_checkout_revolut_order_processed()
A
40 14 56
WC_Payment_Gateway_Revolut::process_payment()
A
39 13 61
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_add_to_cart()
A
43 14 43
WC_Payment_Gateway_Revolut::process_refund()
A
43 13 42
WC_Gateway_Revolut_CC::change_subs_payment_method()
A
45 12 37
WC_Revolut_Payment_Ajax_Controller::wc_revolut_validate_order_pay_form()
A
46 12 35
WC_Gateway_Revolut_Pay::check_revolut_pay_payment_result()
A
48 12 32
WC_Gateway_Revolut_Payment_Request::is_available()
A
53 12 21
WC_Payment_Gateway_Revolut::save_payment_token_to_order()
A
49 11 29
WC_Revolut_Apple_Pay_OnBoarding::admin_notices()
A
53 11 20
WC_Revolut_Apple_Pay_OnBoarding::maybe_onboard_apple_pay_merchant()
A
43 8 54
WC_Revolut_Settings_API::add_revolut_description()
A
45 7 62
WC_Payment_Gateway_Revolut::update_payment_method_title()
A
49 9 29
WC_Payment_Gateway_Revolut::get_upsell_banner_html()
A
45 8 42
WC_Payment_Gateway_Revolut::order_action_from_woocommerce()
A
49 9 26
WC_Gateway_Revolut_CC::generate_inline_revolut_form()
A
51 9 21
WC_Revolut_API_Client::request()
A
46 8 36
WC_Gateway_Revolut_Payment_Request::init_form_fields()
A
35 3 101
WC_Gateway_Revolut_Pay::process_revolut_pay_fc_payment()
A
46 7 41
WC_Revolut_Settings_API::setup_revolut_location()
A
51 8 25
WC_Payment_Gateway_Revolut::normalize_payment_methods()
A
52 8 23
WC_Revolut_Apple_Pay_OnBoarding::download_onboarding_file()
A
48 7 35
WC_Payment_Gateway_Revolut::add_payment_method()
S
50 7 27
WC_Gateway_Revolut_CC::scheduled_subscription_payment()
S
46 6 40
WC_Payment_Gateway_Revolut::save_wc_order_id()
S
48 6 35
WC_Payment_Gateway_Revolut::maybe_cancel_previous_wc_order()
S
54 7 20
WC_Revolut_Settings_API::init_form_fields()
S
37 2 91
WC_Revolut_Settings_API::setup_revolut_synchronous_webhook()
S
48 6 30
WC_Gateway_Revolut_Pay::load_order_data()
S
50 6 29
WC_Payment_Gateway_Revolut::action_revolut_order()
S
59 7 13
WC_Revolut_Settings_API::check_api_key()
S
60 7 12
WC_Payment_Gateway_Revolut::verify_order_total()
S
52 6 23
WC_Revolut_Payment_Ajax_Controller::wc_revolut_onboard_applepay_domain()
S
44 4 49
WC_Revolut_Payment_Tokens::woocommerce_payment_token_deleted()
S
55 6 19
WC_Payment_Gateway_Revolut::wc_revolut_get_current_page()
S
57 6 19
WC_Gateway_Revolut_CC::init_form_fields()
S
37 1 92
WC_Payment_Gateway_Revolut::searchListKeyValue()
S
61 6 12
WC_Revolut_Payment_Ajax_Controller::wc_revolut_clear_records()
S
52 5 26
WC_Revolut_Payment_Ajax_Controller::wc_revolut_validate_checkout_fields()
S
51 5 26
WC_Revolut_Payment_Ajax_Controller::wc_revolut_get_order_pay_billing_info()
S
51 5 24
woocommerce_revolut_install()
S
54 5 22
WC_Gateway_Revolut_Pay::display_payment_request_button_html()
S
56 5 20
woocommerce_revolut_install_single_site()
S
49 4 34
WC_Gateway_Revolut_Pay::generate_inline_revolut_form()
S
53 5 19
WC_Revolut_Settings_API::check_is_shop_needs_webhook_setup()
S
55 5 19
WC_Gateway_Revolut_Pay::wc_revolut_pay_enqueue_scripts()
S
49 4 32
WC_Gateway_Revolut_CC::handle_add_payment_method()
S
58 5 16
WC_Gateway_Revolut_CC::save_payment_method_checkbox()
S
63 6 9
WC_Gateway_Revolut_Pay::activate_default_express_checkout()
S
62 6 10
WC_Revolut_API_Client::__construct()
S
58 5 15
WC_Revolut_Order_Descriptor::__construct()
S
59 5 13
WC_Gateway_Revolut_Payment_Request::revolut_enqueue_payment_request_scripts()
S
48 3 37
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_update_revolut_order_with_cart_total()
S
54 4 21
WC_Gateway_Revolut_CC::display_update_subs_payment_checkout()
S
55 4 20
WC_Gateway_Revolut_Pay::init_form_fields()
S
41 1 65
WC_Revolut_Settings_API::setup_revolut_webhook()
S
54 4 20
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_get_shipping_options()
S
49 3 32
WC_Revolut_Advanced_Settings::admin_options()
S
63 5 10
WC_Revolut_Settings_API::admin_options()
S
63 5 10
WC_Gateway_Revolut_CC::process_payment()
S
62 5 10
WC_Gateway_Revolut_CC::is_available()
S
65 5 9
WC_Gateway_Revolut_CC::maybe_render_subscription_payment_method()
S
59 4 13
WC_Payment_Gateway_Revolut::admin_notices()
S
61 4 13
WC_Revolut_Settings_API::maybe_register_webhook()
S
61 4 13
WC_Revolut_Apple_Pay_OnBoarding::check_is_shop_needs_onboarding()
S
64 4 12
WC_Revolut_Privacy::order_data_exporter()
S
51 3 27
WC_Gateway_Revolut_CC::__construct()
S
50 3 26
WC_Gateway_Revolut_Payment_Request::update_revolut_order_with_cart_total()
S
52 3 23
WC_Gateway_Revolut_Pay::__construct()
S
52 3 23
WC_Gateway_Revolut_Payment_Request::display_payment_request_button_html()
S
57 3 22
WC_Revolut_Apple_Pay_OnBoarding::__construct()
S
47 2 37
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_update_shipping_method()
S
54 3 21
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_cancel_order()
S
54 3 21
WC_Gateway_Revolut_Payment_Request::__construct()
S
53 3 21
woocommerce_revolut_init()
S
56 3 18
WC_Revolut_Payment_Ajax_Controller::__construct()
S
56 3 17
WC_Gateway_Revolut_Pay::get_icon()
S
56 3 17
WC_Gateway_Revolut_CC::get_icon()
S
57 3 16
WC_Payment_Gateway_Revolut::checkout_return()
S
59 3 16
WC_Gateway_Revolut_CC::has_subscription()
S
77 4 3
WC_Payment_Gateway_Revolut::wc_revolut_get_current_order_id()
S
65 4 9
WC_Payment_Gateway_Revolut::maybe_save_payment_method()
S
63 4 10
WC_Gateway_Revolut_CC::is_save_payment_method_mandatory()
S
66 4 9
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_make_state_optional()
S
65 4 9
WC_Gateway_Revolut_Pay::revolut_payment_request_ajax_load_order_data()
S
60 3 13
WC_Revolut_Apple_Pay_OnBoarding::remove_onboarding_file()
S
63 3 12
WC_Revolut_Validate_Checkout::validate_checkout_fields()
S
61 3 12
WC_Revolut_Payment_Ajax_Controller::wc_revolut_get_customer_info()
S
55 2 21
WC_Payment_Gateway_Revolut::wc_revolut_enqueue_scripts()
S
48 1 35
WC_Revolut_Privacy::order_data_eraser()
S
55 2 20
WC_Gateway_Revolut_CC::update_payment_subscription_method()
S
59 2 16
WC_Revolut_Settings_API::maybe_register_synchronous_webhooks()
S
63 3 10
WC_Gateway_Revolut_Payment_Request::is_revolut_pay_fast_checkout_active()
S
74 3 4
WC_Gateway_Revolut_Pay::is_available()
S
70 3 6
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_get_express_checkout_params()
S
59 2 15
WC_Revolut_Apple_Pay_OnBoarding::check_is_already_onboarded()
S
72 3 5
WC_Revolut_Apple_Pay_OnBoarding::get_option()
S
70 3 6
WC_Payment_Gateway_Revolut::remove_all_payment_tokens()
S
66 3 9
WC_Gateway_Revolut_CC::get_selected_payment_token()
S
66 3 8
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_set_error_message()
S
65 3 8
WC_Gateway_Revolut_Pay::is_revolut_payment_request_gateway_active()
S
73 3 4
WC_Revolut_Privacy::get_revolut_orders()
S
59 2 14
WC_Revolut_Apple_Pay_OnBoarding::register_domain()
S
62 2 12
WC_Revolut_Manager::woocommerce_dependencies()
S
52 1 26
WC_Revolut_Advanced_Settings::init_form_fields()
S
56 1 20
WC_Gateway_Revolut_CC::init_supports()
S
57 1 19
WC_Revolut_Privacy::__construct()
S
58 1 19
WC_Gateway_Revolut_CC::differentiate_change_payment_method_form()
S
59 1 17
woocommerce_revolut_load_admin_scripts()
S
59 1 16
woocommerce_revolut_plugin_links()
S
58 1 16
WC_Payment_Gateway_Revolut::wc_revolut_get_current_order_key()
S
68 2 8
declare_features_compatibility()
S
72 2 5
WC_Payment_Gateway_Revolut::wc_revolut_get_checkout_payment_url()
S
67 2 8
WC_Revolut_Settings_API::get_revolut_location()
S
74 2 4
WC_Gateway_Revolut_CC::cart_contains_subscription()
S
68 2 8
WC_Gateway_Revolut_Pay::is_revolut_cc_gateway_active()
S
74 2 4
WC_Revolut_Manager::instance()
S
71 2 6
WC_Payment_Gateway_Revolut::check_payment_processed()
S
74 2 5
WC_Revolut_Apple_Pay_OnBoarding::check_is_api_key_configured()
S
77 2 3
WC_Revolut_Privacy::maybe_handle_order()
S
65 2 9
WC_Payment_Gateway_Revolut::maybe_pay_by_saved_method()
S
69 2 7
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_log_error()
S
71 2 5
WC_Gateway_Revolut_CC::update_changed_subscription_token()
S
66 2 8
WC_Revolut_Settings_API::get_request_data()
S
77 2 3
WC_Payment_Gateway_Revolut::add_default_options()
S
67 2 8
WC_Payment_Gateway_Revolut::__construct()
S
58 1 14
WC_Gateway_Revolut_CC::getSvgImage()
S
64 1 14
WC_Payment_Gateway_Revolut::get_revolut_order()
S
62 1 13
Revolut_Webhook_Controller::register_routes()
S
63 1 11
WC_Payment_Gateway_Revolut::save_payment_method_checkbox()
S
82 1 3
WC_Revolut_Validate_Checkout::return_ajax_failure_response()
S
82 1 3
WC_Gateway_Revolut_CC::delete_resubscribe_meta()
S
73 1 5
WC_Revolut_Apple_Pay_OnBoarding::add_onboarding_error_message()
S
80 1 3
WC_Payment_Gateway_Revolut::check_currency_support()
S
79 1 3
WC_Gateway_Revolut_CC::check_currency_support()
S
79 1 3
WC_Gateway_Revolut_Payment_Request::get_icon()
S
69 1 6
WC_Payment_Gateway_Revolut::handle_add_payment_method()
S
82 1 3
WC_Payment_Gateway_Revolut::save_payment_method_requested()
S
82 1 3
WC_Revolut_API_Client::post()
S
78 1 3
WC_Revolut_Settings_API::add_error_message()
S
79 1 3
WC_Gateway_Revolut_Pay::init_supports()
S
76 1 4
WC_Gateway_Revolut_CC::update_failing_payment_method()
S
70 1 6
WC_Payment_Gateway_Revolut::init_scripts()
S
79 1 3
WC_Revolut_API_Client::set_public_key()
S
81 1 3
WC_Revolut_Advanced_Settings::__construct()
S
69 1 7
rest_api_includes()
S
77 1 4
WC_Revolut_Settings_API::__construct()
S
69 1 7
WC_Gateway_Revolut_Payment_Request::init_supports()
S
76 1 4
WC_Revolut_Settings_API::hooks()
S
63 1 10
WC_Revolut_Apple_Pay_OnBoarding::on_revolut_payment_request_options_update()
S
77 1 4
WC_Payment_Gateway_Revolut::pay_by_saved_method()
S
67 1 8
WC_Revolut_Apple_Pay_OnBoarding::add_onboarding_success_message()
S
80 1 3
WC_Revolut_Settings_API::add_success_message()
S
79 1 3
WC_Gateway_Revolut_Payment_Request::generate_inline_revolut_form()
S
63 1 9
WC_Revolut_API_Client::patch()
S
79 1 3
WC_Revolut_Privacy::get_privacy_message()
S
77 1 3
WC_Payment_Gateway_Revolut::get_selected_payment_token()
S
82 1 3
Revolut_Webhook_Controller::get_wc_order_id()
S
74 1 4
WC_Revolut_Payment_Tokens::__construct()
S
74 1 4
WC_Revolut_Advanced_Settings::hooks()
S
71 1 5
WC_Payment_Gateway_Revolut::admin_nav_tab()
S
76 1 4
revolut_wc()
S
82 1 3
woocommerce_revolut_create_callback_api()
S
77 1 4
WC_Revolut_Settings_API::check_is_get_data_submitted()
S
79 1 3
WC_Revolut_Apple_Pay_OnBoarding::on_revolut_options_update()
S
73 1 5
WC_Revolut_API_Client::delete()
S
79 1 3
Revolut_Webhook_Controller::__construct()
S
76 1 4
WC_Payment_Gateway_Revolut::display_update_subs_payment_checkout()
S
82 1 3
WC_Payment_Gateway_Revolut::get_icon()
S
91 1 2
WC_Revolut_API_Client::get()
S
78 1 3
WC_Payment_Gateway_Revolut::init_supports()
S
75 1 5
woocommerce_revolut_add_gateways()
S
80 1 3
WC_Payment_Gateway_Revolut::currency_support_error()
S
79 1 3
WC_Payment_Gateway_Revolut::clear_temp_session()
S
74 1 4
WC_Gateway_Revolut_CC::load_payment_scripts()
S
82 1 3
Revolut_Webhook_Controller::handle_revolut_webhook_callbacks_permissions_check()
S
82 1 3
WC_Revolut_Payment_Tokens::get_account_saved_payment_methods_list_item()
S
82 1 3
woocommerce_revolut_load_rest_api()
S
80 1 3
WC_Revolut_Manager::__construct()
S
79 1 3
WC_Revolut_Apple_Pay_OnBoarding::is_revolut_payment_request_enabled()
S
79 1 3
WC_Payment_Gateway_Revolut::revolut_plugin_public_query_vars()
S
77 1 3
WC_Payment_Gateway_Revolut::generate_inline_revolut_form()
S
82 1 3
woocommerce_revolut_payment_gateways()
S
71 1 7