Code Analysis: Revolut Gateway for WooCommerce 4.18.10

Function Rating Maintainability Complexity Lines of code
WC_Revolut_Payment_Ajax_Controller::wc_revolut_process_payment_result()
C
37 24 68
WC_Payment_Gateway_Revolut::handle_revolut_order_result()
B
43 20 40
WC_Payment_Gateway_Revolut::save_payment_method()
B
39 18 56
WC_Payment_Gateway_Revolut::blocks_checkout_processor()
B
39 16 66
WC_Payment_Gateway_Revolut::payment_fields()
B
37 15 80
Revolut_Webhook_Controller::handle_revolut_webhook()
B
42 17 45
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_create_order()
B
40 16 58
WC_Revolut_Apple_Pay_OnBoarding::maybe_onboard_apple_pay_merchant()
A
39 13 66
WC_Payment_Gateway_Revolut::process_payment()
A
39 13 62
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_add_to_cart()
A
43 14 43
WC_Gateway_Revolut_Pay::check_revolut_pay_payment_result()
A
46 14 34
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_Payment_Gateway_Revolut::save_payment_token_to_order()
A
49 11 29
WC_Payment_Gateway_Revolut::woocommerce_checkout_revolut_order_processed()
A
49 11 28
WC_Revolut_Apple_Pay_OnBoarding::admin_notices()
A
53 11 20
WC_Gateway_Revolut_CC::generate_inline_revolut_form()
A
50 10 21
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
49 9 26
WC_Payment_Gateway_Revolut::get_confirmation_page_promotional_banners()
A
45 8 40
WC_Revolut_API_Client::request()
A
46 8 36
WC_Gateway_Revolut_Pay::load_order_data()
A
48 8 32
WC_Payment_Gateway_Revolut::woocommerce_order_validator()
A
45 7 41
WC_Gateway_Revolut_Pay::process_revolut_pay_fc_payment()
A
46 7 41
WC_Gateway_Revolut_Payment_Request::init_form_fields()
A
35 3 100
WC_Revolut_Settings_API::setup_revolut_location()
A
51 8 25
WC_Payment_Gateway_Revolut::normalize_payment_methods()
A
52 8 23
WC_Payment_Gateway_Revolut::save_wc_order_id()
A
47 7 36
WC_Revolut_Apple_Pay_OnBoarding::download_onboarding_file()
A
48 7 35
WC_Revolut_Settings_API::setup_revolut_synchronous_webhook()
A
47 7 33
WC_Payment_Gateway_Revolut::add_payment_method()
S
50 7 27
WC_Gateway_Revolut_CC::scheduled_subscription_payment()
S
46 6 40
WC_Revolut_Settings_API::check_is_shop_needs_webhook_setup()
S
52 7 24
WC_Payment_Gateway_Revolut::maybe_cancel_previous_wc_order()
S
54 7 20
WC_Payment_Gateway_Revolut::process_blocks_payment()
S
55 7 19
WC_Payment_Gateway_Revolut::save_shipments_information()
S
50 6 28
WC_Payment_Gateway_Revolut::action_revolut_order()
S
59 7 13
WC_Revolut_Settings_API::check_api_key()
S
60 7 12
WC_Revolut_Settings_API::init_form_fields()
S
38 2 84
WC_Revolut_Settings_API::setup_revolut_webhook()
S
51 6 24
WC_Payment_Gateway_Revolut::verify_order_total()
S
52 6 23
WC_Payment_Gateway_Revolut::wc_revolut_get_current_page()
S
57 6 19
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_Gateway_Revolut_CC::init_form_fields()
S
37 1 92
WC_Payment_Gateway_Revolut::blocks_loaded()
S
57 6 16
WC_Revolut_Payment_Ajax_Controller::wc_revolut_create_order()
S
49 5 31
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
initiate_gateway_block_support()
S
54 5 24
woocommerce_revolut_install()
S
54 5 22
WC_Gateway_Revolut_Pay::generate_inline_revolut_form()
S
53 5 19
woocommerce_revolut_install_single_site()
S
49 4 34
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_CC::__construct()
S
49 4 28
WC_Gateway_Revolut_Pay::is_revolut_payment_request_fast_checkout_active()
S
60 5 13
WC_Payment_Gateway_Revolut::wc_revolut_enqueue_scripts()
S
61 5 13
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_update_revolut_order_with_cart_total()
S
54 4 21
WC_Gateway_Revolut_CC_Blocks_Support::get_payment_method_data()
S
47 3 35
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_Gateway_Revolut_Pay::display_revolut_pay_button()
S
58 4 18
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_ajax_get_shipping_options()
S
49 3 32
WC_Gateway_Revolut_Pay::wc_revolut_pay_enqueue_scripts()
S
66 5 9
Revolut_Webhook_Controller::handle_revolut_address_validation_webhook()
S
50 3 30
WC_Revolut_Advanced_Settings::admin_options()
S
63 5 10
WC_Revolut_Promotional_Settings::admin_options()
S
63 5 10
WC_Revolut_Settings_API::admin_options()
S
63 5 10
WC_Gateway_Revolut_Blocks_Support::prepare_gateway_for_processing()
S
60 4 15
WC_Gateway_Revolut_CC::process_payment()
S
62 5 10
WC_Revolut_Settings_API::maybe_register_webhook()
S
61 4 13
Revolut_Webhook_Controller::revolut_webhook_permission_callback()
S
60 4 13
WC_Payment_Gateway_Revolut::admin_notices()
S
61 4 13
WC_Gateway_Revolut_CC::maybe_render_subscription_payment_method()
S
59 4 13
WC_Revolut_Privacy::order_data_exporter()
S
51 3 27
WC_Revolut_Settings_API::remove_old_revolut_webhook_if_exist()
S
60 4 12
WC_Revolut_Apple_Pay_OnBoarding::check_is_shop_needs_onboarding()
S
64 4 12
WC_Gateway_Revolut_Blocks_Support::revolut_cc_payment_method_data()
S
52 3 25
WC_Gateway_Revolut_Payment_Request::update_revolut_order_with_cart_total()
S
52 3 23
WC_Gateway_Revolut_Payment_Request::display_payment_request_button_html()
S
57 3 22
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
Revolut_Webhook_Controller::register_routes()
S
47 1 49
WC_Gateway_Revolut_Pay::get_icon()
S
55 3 19
WC_Revolut_Apple_Pay_OnBoarding::__construct()
S
48 2 34
woocommerce_revolut_init()
S
56 3 18
WC_Revolut_Payment_Ajax_Controller::__construct()
S
55 3 18
WC_Gateway_Revolut_CC::get_icon()
S
56 3 18
WC_Payment_Gateway_Revolut::checkout_return()
S
59 3 16
WC_Gateway_Revolut_CC::is_save_payment_method_mandatory()
S
66 4 9
WC_Gateway_Revolut_Payment_Request::is_available()
S
66 4 8
WC_Payment_Gateway_Revolut::maybe_save_payment_method()
S
63 4 10
WC_Payment_Gateway_Revolut::wc_revolut_get_current_order_id()
S
65 4 9
WC_Gateway_Revolut_Payment_Request::is_revolut_pay_fast_checkout_active()
S
64 4 10
WC_Gateway_Revolut_Payment_Request::revolut_payment_request_make_state_optional()
S
65 4 9
WC_Gateway_Revolut_CC::has_subscription()
S
77 4 3
WC_Payment_Gateway_Revolut::handle_blocks_saved_payment_method()
S
60 3 13
WC_Gateway_Revolut_Pay::revolut_payment_request_ajax_load_order_data()
S
60 3 13
WC_Gateway_Revolut_Pay_Blocks_Support::get_payment_method_data()
S
50 2 28
WC_Gateway_Revolut_Payment_Request_Blocks_Support::get_payment_method_data()
S
50 2 28
WC_Revolut_Apple_Pay_OnBoarding::remove_onboarding_file()
S
63 3 12
WC_Revolut_Validate_Checkout::validate_checkout_fields()
S
61 3 12
WC_Gateway_Revolut_CC::cart_contains_subscription()
S
63 3 11
Revolut_Webhook_Controller::revolut_address_validation_webhook_permission_callback()
S
63 3 11
WC_Gateway_Revolut_Blocks_Support::revolut_pay_payment_method_data()
S
54 2 23
WC_Gateway_Revolut_Pay::__construct()
S
53 2 22
WC_Revolut_Payment_Ajax_Controller::wc_revolut_get_customer_info()
S
55 2 21
WC_Revolut_Promotional_Settings::init_form_fields()
S
49 1 35
WC_Revolut_Privacy::order_data_eraser()
S
55 2 20
WC_Payment_Gateway_Revolut::get_informational_banner_data()
S
55 2 19
WC_Gateway_Revolut_Blocks_Support::revolut_payment_request_method_data()
S
57 2 18
WC_Gateway_Revolut_CC::update_payment_subscription_method()
S
59 2 16
WC_Revolut_Apple_Pay_OnBoarding::validate_hostname()
S
65 3 8
WC_Gateway_Revolut_Pay::page_supported()
S
71 3 6
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_set_error_message()
S
65 3 8
WC_Gateway_Revolut_CC::get_selected_payment_token()
S
66 3 8
WC_Gateway_Revolut_CC::is_available()
S
70 3 6
WC_Gateway_Revolut_CC::page_supported()
S
71 3 6
WC_Revolut_Settings_API::maybe_register_synchronous_webhooks()
S
63 3 10
WC_Gateway_Revolut_Pay::is_available()
S
68 3 7
WC_Gateway_Revolut_Payment_Request::revolut_enqueue_payment_request_scripts()
S
71 3 6
WC_Gateway_Revolut_Blocks_Support::is_active()
S
79 3 3
WC_Gateway_Revolut_Payment_Request::page_supported()
S
71 3 6
WC_Revolut_Apple_Pay_OnBoarding::get_option()
S
70 3 6
WC_Payment_Gateway_Revolut::points_banner_available()
S
71 3 6
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_get_express_checkout_params()
S
59 2 15
WC_Payment_Gateway_Revolut::remove_all_payment_tokens()
S
66 3 9
WC_Payment_Gateway_Revolut::woocommerce_shipment_save_shipments_information()
S
58 2 15
WC_Gateway_Revolut_Blocks_Support::get_common_payment_data()
S
51 1 30
WC_Revolut_Apple_Pay_OnBoarding::check_is_already_onboarded()
S
72 3 5
WC_Revolut_Privacy::get_revolut_orders()
S
59 2 14
WC_Revolut_Manager::woocommerce_dependencies()
S
51 1 28
WC_Revolut_Apple_Pay_OnBoarding::register_domain()
S
62 2 12
WC_Payment_Gateway_Revolut::enqueue_common_standard_scripts()
S
52 1 24
WC_Payment_Gateway_Revolut::__construct()
S
54 1 20
WC_Revolut_Advanced_Settings::init_form_fields()
S
57 1 19
WC_Gateway_Revolut_CC::init_supports()
S
57 1 19
WC_Revolut_Privacy::__construct()
S
58 1 19
WC_Payment_Gateway_Revolut::enqueue_express_checkout_scripts()
S
60 1 17
WC_Gateway_Revolut_CC::differentiate_change_payment_method_form()
S
59 1 17
woocommerce_revolut_plugin_links()
S
58 1 16
woocommerce_revolut_load_admin_scripts()
S
59 1 16
WC_Gateway_Revolut_CC_Blocks_Support::is_active()
S
67 2 8
WC_Revolut_Privacy::maybe_handle_order()
S
65 2 9
WC_Payment_Gateway_Revolut::wc_revolut_get_current_order_key()
S
68 2 8
WC_Gateway_Revolut_Pay::is_revolut_cc_gateway_active()
S
74 2 4
WC_Payment_Gateway_Revolut::add_default_options()
S
67 2 8
WC_Revolut_Promotional_Settings::revolut_pay_label_icon_variant()
S
69 2 7
WC_Revolut_Manager::instance()
S
71 2 6
WC_Revolut_Apple_Pay_OnBoarding::check_is_api_key_configured()
S
78 2 3
WC_Payment_Gateway_Revolut::check_payment_processed()
S
74 2 5
WC_Gateway_Revolut_Pay_Blocks_Support::is_active()
S
67 2 8
WC_Gateway_Revolut_CC::update_changed_subscription_token()
S
66 2 8
WC_Payment_Gateway_Revolut::get_mode()
S
78 2 3
WC_Revolut_Payment_Ajax_Controller::revolut_payment_request_ajax_log_error()
S
71 2 5
WC_Gateway_Revolut_Pay::revolut_pay_informational_banner_renderer()
S
74 2 5
WC_Gateway_Revolut_Payment_Request_Blocks_Support::is_active()
S
67 2 8
WC_Revolut_Settings_API::get_request_data()
S
77 2 3
declare_features_compatibility()
S
69 2 6
WC_Revolut_Settings_API::get_revolut_location()
S
74 2 4
WC_Payment_Gateway_Revolut::maybe_pay_by_saved_method()
S
69 2 7
Revolut_Webhook_Controller::handle_revolut_webhook_deprecated_endpoint()
S
68 2 7
WC_Payment_Gateway_Revolut::wc_revolut_get_checkout_payment_url()
S
67 2 8
WC_Gateway_Revolut_CC::getSvgImage()
S
64 1 14
WC_Payment_Gateway_Revolut::get_revolut_order()
S
62 1 13
WC_Gateway_Revolut_Blocks_Support::register_blocks_scripts()
S
60 1 13
WC_Gateway_Revolut_Pay::localize_revolut_pay_scripts()
S
65 1 12
WC_Gateway_Revolut_Blocks_Support::get_payment_method_data()
S
64 1 11
WC_Payment_Gateway_Revolut::admin_nav_tab()
S
76 1 4
WC_Revolut_Apple_Pay_OnBoarding::is_revolut_payment_request_enabled()
S
79 1 3
WC_Revolut_Settings_API::__construct()
S
69 1 7
WC_Revolut_API_Client::is_dev_mode()
S
80 1 3
WC_Gateway_Revolut_CC::check_currency_support()
S
79 1 3
WC_Gateway_Revolut_Payment_Request::init_supports()
S
76 1 4
WC_Revolut_Apple_Pay_OnBoarding::add_onboarding_error_message()
S
80 1 3
WC_Revolut_Promotional_Settings::hooks()
S
71 1 5
WC_Payment_Gateway_Revolut::get_icon()
S
91 1 2
WC_Payment_Gateway_Revolut::init_supports()
S
75 1 5
WC_Gateway_Revolut_Pay::get_revolut_pay_banners_data()
S
71 1 6
WC_Revolut_Advanced_Settings::external_order_reference_is_order_id()
S
79 1 3
WC_Gateway_Revolut_CC_Blocks_Support::get_payment_method_script_handles()
S
81 1 3
WC_Payment_Gateway_Revolut::plugin_options_updated()
S
73 1 5
WC_Payment_Gateway_Revolut::check_currency_support()
S
79 1 3
WC_Revolut_Promotional_Settings::upsell_banner_enabled()
S
79 1 3
WC_Revolut_Promotional_Settings::__construct()
S
69 1 7
WC_Gateway_Revolut_CC::delete_resubscribe_meta()
S
73 1 5
WC_Revolut_API_Client::patch()
S
78 1 3
WC_Payment_Gateway_Revolut::revolut_plugin_public_query_vars()
S
77 1 3
WC_Payment_Gateway_Revolut::handle_add_payment_method()
S
82 1 3
WC_Revolut_API_Client::get_mode()
S
82 1 3
WC_Gateway_Revolut_Payment_Request_Blocks_Support::get_payment_method_script_handles()
S
81 1 3
Revolut_Webhook_Controller::revolut_address_validation_webhook_permission_callback_sandbox()
S
75 1 4
WC_Revolut_API_Client::set_public_key()
S
81 1 3
WC_Payment_Gateway_Revolut::display_update_subs_payment_checkout()
S
82 1 3
WC_Gateway_Revolut_Payment_Request::generate_inline_revolut_form()
S
63 1 9
woocommerce_revolut_load_rest_api()
S
80 1 3
WC_Revolut_Apple_Pay_OnBoarding::add_onboarding_success_message()
S
80 1 3
WC_Payment_Gateway_Revolut::save_payment_method_checkbox()
S
82 1 3
WC_Revolut_Settings_API::add_error_message()
S
79 1 3
WC_Gateway_Revolut_Pay_Blocks_Support::initialize()
S
79 1 3
WC_Payment_Gateway_Revolut::generate_inline_revolut_form()
S
82 1 3
WC_Gateway_Revolut_Pay::init_supports()
S
76 1 4
WC_Revolut_API_Client::get()
S
78 1 3
revolut_wc()
S
82 1 3
WC_Payment_Gateway_Revolut::clear_temp_session()
S
74 1 4
WC_Gateway_Revolut_Payment_Request::get_icon()
S
66 1 8
woocommerce_revolut_create_callback_api()
S
77 1 4
WC_Revolut_Settings_API::check_is_get_data_submitted()
S
79 1 3
rest_api_includes()
S
77 1 4
Revolut_Webhook_Controller::revolut_address_validation_webhook_permission_callback_live()
S
75 1 4
WC_Gateway_Revolut_CC::load_payment_scripts()
S
82 1 3
Revolut_Webhook_Controller::__construct()
S
76 1 4
WC_Revolut_API_Client::delete()
S
79 1 3
WC_Revolut_Promotional_Settings::revpoints_banner_enabled()
S
79 1 3
WC_Payment_Gateway_Revolut::get_selected_payment_token()
S
82 1 3
WC_Revolut_Privacy::get_privacy_message()
S
77 1 3
WC_Revolut_Advanced_Settings::hooks()
S
71 1 5
WC_Revolut_Manager::__construct()
S
79 1 3
WC_Payment_Gateway_Revolut::currency_support_error()
S
79 1 3
WC_Revolut_Apple_Pay_OnBoarding::on_revolut_payment_request_options_update()
S
77 1 4
WC_Payment_Gateway_Revolut::save_payment_method_requested()
S
82 1 3
WC_Gateway_Revolut_Payment_Request::localize_prb_scripts()
S
71 1 7
Revolut_Webhook_Controller::get_wc_order_id()
S
74 1 4
WC_Gateway_Revolut_CC_Blocks_Support::initialize()
S
79 1 3
WC_Gateway_Revolut_Payment_Request_Blocks_Support::__construct()
S
72 1 5
WC_Revolut_Advanced_Settings::__construct()
S
69 1 7
WC_Gateway_Revolut_Blocks_Support::initialize()
S
69 1 7
woocommerce_revolut_payment_gateways()
S
71 1 7
WC_Revolut_Payment_Tokens::get_account_saved_payment_methods_list_item()
S
82 1 3
WC_Revolut_Payment_Tokens::__construct()
S
74 1 4
WC_Revolut_Settings_API::add_success_message()
S
79 1 3
WC_Revolut_API_Client::post()
S
78 1 3
woocommerce_revolut_add_gateways()
S
80 1 3
WC_Revolut_Validate_Checkout::return_ajax_failure_response()
S
82 1 3
WC_Gateway_Revolut_Pay_Blocks_Support::__construct()
S
72 1 5
WC_Gateway_Revolut_Blocks_Support::get_payment_method_script_handles()
S
81 1 3
WC_Gateway_Revolut_CC::update_failing_payment_method()
S
70 1 6
WC_Gateway_Revolut_CC_Blocks_Support::__construct()
S
72 1 5
WC_Gateway_Revolut_Pay_Blocks_Support::get_payment_method_script_handles()
S
81 1 3
WC_Payment_Gateway_Revolut::pay_by_saved_method()
S
67 1 8
Revolut_Webhook_Controller::revolut_webhook_permission_callback_sandbox()
S
75 1 4
WC_Revolut_Apple_Pay_OnBoarding::on_revolut_options_update()
S
75 1 4
WC_Gateway_Revolut_Payment_Request::get_prb_button_styles()
S
66 1 9
WC_Payment_Gateway_Revolut::generate_customer_id()
S
81 1 3
Revolut_Webhook_Controller::revolut_webhook_permission_callback_live()
S
75 1 4
WC_Gateway_Revolut_Payment_Request_Blocks_Support::initialize()
S
79 1 3
WC_Revolut_Settings_API::hooks()
S
63 1 10
WC_Gateway_Revolut_Blocks_Support::__construct()
S
67 1 7
WC_Gateway_Revolut_Pay::get_revolut_pay_button_styles()
S
67 1 8