Code Analysis: Revolut Gateway for WooCommerce 4.7.1

Function Rating Maintainability Complexity Lines of code
Revolut_Webhook_Controller::handle_revolut_webhook_callbacks()
B
33 21 98
WC_Gateway_Revolut_Payment_Request::get_wc_order_details()
B
40 20 58
WC_Payment_Gateway_Revolut::save_payment_method()
B
39 18 56
WC_Payment_Gateway_Revolut::handle_revolut_order_result()
B
44 19 39
WC_Payment_Gateway_Revolut::payment_fields()
B
37 15 80
WC_Revolut_Payment_Ajax_Controller::wc_revolut_set_webhook()
A
41 13 60
WC_Payment_Gateway_Revolut::process_refund()
A
43 13 42
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_add_to_cart()
A
42 12 48
WC_Revolut_Payment_Ajax_Controller::wc_revolut_process_payment_result()
A
45 12 42
WC_Payment_Gateway_Revolut::process_payment()
A
41 10 55
WC_Payment_Gateway_Revolut::save_payment_token_to_order()
A
49 11 28
WC_Payment_Gateway_Revolut::show_revolut_pay_register_banner()
A
46 9 36
WC_Revolut_API_Client::request()
A
47 9 34
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::order_action_from_woocommerce()
A
50 9 25
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_create_order()
A
46 8 38
WC_Revolut_Apple_Pay_OnBoarding::admin_notices()
A
54 9 20
WC_Revolut_Payment_Ajax_Controller::wc_revolut_validate_order_pay_form()
A
48 8 33
WC_Gateway_Revolut_Payment_Request::init_form_fields()
A
35 3 101
WC_Payment_Gateway_Revolut::normalize_payment_methods()
A
52 8 23
WC_Gateway_Revolut_CC::generate_inline_revolut_form()
A
51 8 20
WC_Revolut_Apple_Pay_OnBoarding::maybe_onboard_apple_pay_merchant()
S
46 6 45
WC_Gateway_Revolut_Payment_Request::is_available()
S
59 8 13
WC_Gateway_Revolut_CC::scheduled_subscription_payment()
S
46 6 40
WC_Gateway_Revolut_Pay::revolut_payment_request_ajax_load_order_data()
S
46 6 38
WC_Payment_Gateway_Revolut::woocommerce_checkout_revolut_order_processed()
S
47 6 37
WC_Payment_Gateway_Revolut::maybe_cancel_previous_wc_order()
S
54 7 20
WC_Revolut_Apple_Pay_OnBoarding::download_onboarding_file()
S
49 6 34
WC_Gateway_Revolut_CC::change_subs_payment_method()
S
49 6 31
WC_Revolut_Settings_API::init_form_fields()
S
37 2 91
WC_Gateway_Revolut_Payment_Request::get_wc_billing_address()
S
56 7 15
WC_Gateway_Revolut_Payment_Request::get_wc_shipping_address()
S
57 7 14
WC_Payment_Gateway_Revolut::action_revolut_order()
S
59 7 13
WC_Revolut_Payment_Ajax_Controller::wc_revolut_register_cashback_candidate()
S
51 6 27
WC_Revolut_Settings_API::check_api_key()
S
60 7 12
WC_Revolut_Settings_API::setup_revolut_synchronous_webhook()
S
51 6 25
WC_Payment_Gateway_Revolut::verify_order_total()
S
52 6 23
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_Revolut_Payment_Ajax_Controller::wc_revolut_validate_checkout_fields()
S
51 5 27
WC_Payment_Gateway_Revolut::searchListKeyValue()
S
61 6 12
WC_Payment_Gateway_Revolut::add_payment_method()
S
52 5 25
woocommerce_revolut_install()
S
54 5 22
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_get_shipping_options()
S
47 4 37
WC_Revolut_API_Client::public_request()
S
52 5 22
woocommerce_revolut_install_single_site()
S
49 4 34
WC_Revolut_Settings_API::check_is_shop_needs_webhook_setup()
S
55 5 19
WC_Revolut_API_Client::__construct()
S
56 5 17
WC_Revolut_Payment_Ajax_Controller::wc_revolut_onboard_applepay_domain()
S
45 3 46
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_Order_Descriptor::__construct()
S
59 5 13
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_update_shipping_method()
S
51 4 26
WC_Payment_Gateway_Revolut::save_wc_order_id()
S
52 4 24
WC_Revolut_Payment_Ajax_Controller::wc_revolut_clear_records()
S
54 4 23
WC_Gateway_Revolut_Payment_Request::revolut_enqueue_payment_request_scripts()
S
48 3 37
WC_Revolut_Manager::woocommerce_dependencies()
S
48 3 36
WC_Revolut_Settings_API::setup_revolut_webhook()
S
54 4 20
WC_Gateway_Revolut_CC::display_update_subs_payment_checkout()
S
55 4 20
WC_Gateway_Revolut_Pay::display_payment_request_button_html()
S
57 4 20
WC_Gateway_Revolut_Pay::init_form_fields()
S
41 1 65
WC_Gateway_Revolut_Pay::generate_inline_revolut_form()
S
54 4 18
WC_Gateway_Revolut_Pay::wc_revolut_pay_enqueue_scripts()
S
50 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::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_Gateway_Revolut_CC::__construct()
S
50 3 26
WC_Revolut_Privacy::order_data_exporter()
S
52 3 26
WC_Gateway_Revolut_Payment_Request::update_revolut_order_with_cart_total()
S
51 3 25
WC_Revolut_Payment_Ajax_Controller::wc_revolut_get_order_pay_billing_info()
S
52 3 24
WC_Gateway_Revolut_Pay::__construct()
S
52 3 23
WC_Gateway_Revolut_Payment_Request::display_payment_request_button_html()
S
57 3 22
WC_Gateway_Revolut_Payment_Request::__construct()
S
53 3 21
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_update_revolut_order_with_cart_total()
S
54 3 21
WC_Revolut_Apple_Pay_OnBoarding::__construct()
S
48 2 36
woocommerce_revolut_init()
S
57 3 17
WC_Gateway_Revolut_CC::has_subscription()
S
77 4 3
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_Payment_Gateway_Revolut::wc_revolut_get_current_order_id()
S
65 4 9
WC_Payment_Gateway_Revolut::check_payment_processed()
S
68 4 6
WC_Revolut_Validate_Checkout::validate_checkout_fields()
S
61 3 12
WC_Revolut_Payment_Ajax_Controller::__construct()
S
53 2 22
WC_Revolut_Payment_Ajax_Controller::wc_revolut_get_customer_info()
S
55 2 21
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_cancel_order()
S
55 2 21
WC_Revolut_Privacy::order_data_eraser()
S
55 2 20
WC_Payment_Gateway_Revolut::wc_revolut_enqueue_scripts()
S
50 1 32
WC_Gateway_Revolut_CC::update_payment_subscription_method()
S
59 2 16
WC_Gateway_Revolut_Payment_Request::is_revolut_pay_fast_checkout_active()
S
74 3 4
WC_Gateway_Revolut_CC::is_available()
S
70 3 6
WC_Gateway_Revolut_CC::process_payment()
S
65 3 10
WC_Revolut_Settings_API::maybe_register_synchronous_webhooks()
S
63 3 10
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_Payment_Request::revolut_payment_request_ajax_get_payment_request_params()
S
59 2 15
WC_Gateway_Revolut_CC::get_selected_payment_token()
S
64 3 9
WC_Gateway_Revolut_CC::is_using_saved_payment_method()
S
76 3 3
WC_Gateway_Revolut_Pay::revolut_payment_request_ajax_get_express_checkout_params()
S
59 2 15
WC_Gateway_Revolut_Pay::is_revolut_payment_request_gateway_active()
S
73 3 4
WC_Payment_Gateway_Revolut::insert_revolut_customer_id()
S
60 2 14
WC_Revolut_Privacy::get_revolut_orders()
S
59 2 14
WC_Payment_Gateway_Revolut::checkout_return()
S
62 2 12
WC_Revolut_Apple_Pay_OnBoarding::register_domain()
S
62 2 12
WC_Gateway_Revolut_Payment_Request::parse_customer_name()
S
63 2 11
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
woocommerce_revolut_plugin_links()
S
58 1 16
WC_Revolut_Apple_Pay_OnBoarding::get_post_request_data()
S
71 2 6
WC_Payment_Gateway_Revolut::wc_revolut_get_current_order_key()
S
68 2 8
WC_Gateway_Revolut_CC::update_all_subscriptions_payment_method()
S
78 2 3
WC_Revolut_Manager::instance()
S
71 2 6
WC_Revolut_Settings_API::get_request_data()
S
71 2 6
WC_Gateway_Revolut_CC::check_currency_support()
S
71 2 6
WC_Gateway_Revolut_Pay::is_revolut_cc_gateway_active()
S
74 2 4
WC_Gateway_Revolut_CC::cart_contains_subscription()
S
68 2 8
WC_Revolut_Settings_API::recursive_sanitize_text_field()
S
68 2 7
WC_Revolut_Apple_Pay_OnBoarding::remove_onboarding_file()
S
66 2 10
WC_Revolut_Apple_Pay_OnBoarding::get_request_data()
S
71 2 6
WC_Revolut_Apple_Pay_OnBoarding::recursive_sanitize_text_field()
S
68 2 7
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_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_set_error_message()
S
68 2 7
WC_Payment_Gateway_Revolut::add_default_options()
S
67 2 8
WC_Payment_Gateway_Revolut::maybe_pay_by_saved_method()
S
69 2 7
WC_Gateway_Revolut_CC::update_changed_subscription_token()
S
70 2 6
WC_Payment_Gateway_Revolut::check_currency_support()
S
71 2 6
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
woocommerce_revolut_load_admin_scripts()
S
62 1 12
Revolut_Webhook_Controller::register_routes()
S
63 1 11
WC_Payment_Gateway_Revolut::generate_inline_revolut_form()
S
82 1 3
Revolut_Webhook_Controller::get_wc_order_id()
S
74 1 4
WC_Gateway_Revolut_CC::differentiate_change_payment_method_form()
S
80 1 3
WC_Payment_Gateway_Revolut::currency_support_error()
S
79 1 3
WC_Revolut_Validate_Checkout::return_ajax_failure_response()
S
82 1 3
WC_Payment_Gateway_Revolut::get_selected_payment_token()
S
82 1 3
WC_Revolut_Settings_API::__construct()
S
69 1 7
WC_Payment_Gateway_Revolut::init_scripts()
S
79 1 3
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_log_error()
S
76 1 4
WC_Gateway_Revolut_CC::load_payment_scripts()
S
82 1 3
WC_Revolut_API_Client::patch()
S
79 1 3
WC_Revolut_Apple_Pay_OnBoarding::on_revolut_options_update()
S
73 1 5
WC_Revolut_Apple_Pay_OnBoarding::add_onboarding_error_message()
S
80 1 3
WC_Payment_Gateway_Revolut::save_payment_method_requested()
S
82 1 3
Revolut_Webhook_Controller::__construct()
S
76 1 4
WC_Revolut_Apple_Pay_OnBoarding::is_revolut_payment_request_enabled()
S
79 1 3
WC_Revolut_Manager::__construct()
S
79 1 3
woocommerce_revolut_create_callback_api()
S
77 1 4
rest_api_includes()
S
77 1 4
WC_Revolut_Settings_API::hooks()
S
63 1 10
woocommerce_revolut_load_rest_api()
S
80 1 3
WC_Payment_Gateway_Revolut::init_supports()
S
75 1 5
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::set_public_key()
S
81 1 3
WC_Gateway_Revolut_CC::get_icon()
S
69 1 6
WC_Revolut_Privacy::get_privacy_message()
S
77 1 3
WC_Revolut_Settings_API::add_error_message()
S
79 1 3
WC_Revolut_API_Client::post()
S
79 1 3
WC_Revolut_Apple_Pay_OnBoarding::add_onboarding_success_message()
S
80 1 3
WC_Gateway_Revolut_Payment_Request::get_icon()
S
69 1 6
WC_Payment_Gateway_Revolut::get_icon()
S
91 1 2
WC_Revolut_Advanced_Settings::hooks()
S
71 1 5
WC_Revolut_Apple_Pay_OnBoarding::on_revolut_payment_request_options_update()
S
77 1 4
WC_Revolut_Advanced_Settings::__construct()
S
69 1 7
WC_Gateway_Revolut_CC::save_payment_method_requested()
S
80 1 3
WC_Gateway_Revolut_Payment_Request::init_supports()
S
76 1 4
woocommerce_revolut_add_gateways()
S
80 1 3
revolut_wc()
S
82 1 3
WC_Revolut_Settings_API::check_is_get_data_submitted()
S
79 1 3
WC_Payment_Gateway_Revolut::handle_add_payment_method()
S
82 1 3
WC_Gateway_Revolut_CC::delete_resubscribe_meta()
S
73 1 5
WC_Payment_Gateway_Revolut::admin_nav_tab()
S
76 1 4
WC_Gateway_Revolut_Pay::init_supports()
S
76 1 4
WC_Payment_Gateway_Revolut::display_update_subs_payment_checkout()
S
82 1 3
WC_Revolut_Payment_Tokens::__construct()
S
74 1 4
WC_Payment_Gateway_Revolut::save_payment_method_checkbox()
S
82 1 3
WC_Revolut_API_Client::delete()
S
79 1 3
WC_Gateway_Revolut_CC::update_failing_payment_method()
S
72 1 5
woocommerce_revolut_payment_gateways()
S
71 1 7
WC_Gateway_Revolut_Pay::get_icon()
S
67 1 7
WC_Revolut_Payment_Tokens::get_account_saved_payment_methods_list_item()
S
82 1 3
WC_Payment_Gateway_Revolut::is_using_saved_payment_method()
S
82 1 3
WC_Revolut_API_Client::get()
S
78 1 3
WC_Payment_Gateway_Revolut::pay_by_saved_method()
S
67 1 8
Revolut_Webhook_Controller::handle_revolut_webhook_callbacks_permissions_check()
S
82 1 3
WC_Payment_Gateway_Revolut::clear_temp_session()
S
74 1 4