Code Analysis: Checkout.com Payment Gateway 4.4.19

Function Rating Maintainability Complexity Lines of code
WC_Checkoutcom_Utility::get_alternative_payment_methods()
D
20
100 129
WC_Checkoutcom_Api_Request::get_request_param()
D
18
53 224
WC_Gateway_Checkout_Com_Cards::process_payment()
C
34 28 84
WC_Gateway_Checkout_Com_Apple_Pay::payment_fields()
C
24
4 384
WC_Checkoutcom_Api_Request::customer_address()
B
37 22 71
WC_Gateway_Checkout_Com_Cards::callback_handler()
B
34 21 82
WC_Gateway_Checkout_Com_Alternative_Payments_Sepa::process_payment()
B
34 20 94
WC_Gateway_Checkout_Com_Cards::webhook_handler()
B
34 20 86
WC_Checkoutcom_Api_Request::create_payment()
B
38 19 62
WC_Checkoutcom_Api_Request::refund_payment()
B
36 17 82
WC_Checkoutcom_Admin::generate_links()
A
41 13 60
WC_Checkoutcom_Cards_Settings::cards_settings()
A
26
1 233
WC_Checkoutcom_Api_Request::klarna_session()
A
34 9 94
WC_Checkoutcom_Api_Request::get_cart_info()
A
35 8 96
WC_Checkoutcom_APM_Method::get_sepa_info()
A
39 10 62
cko_gateway_icon()
A
44 11 46
WC_Gateway_Checkout_Com_Cards::payment_scripts()
A
45 11 39
WC_Checkoutcom_Api_Request::create_apm_payment()
A
45 10 40
WC_Checkoutcom_Workflows::create()
A
37 7 82
WC_Gateway_Checkout_Com_Cards::get_localisation()
A
44 9 43
handle_order_capture_void_action()
A
45 9 43
WC_Gateway_Checkout_Com_Google_Pay::process_payment()
A
45 9 41
WC_Gateway_Checkout_Com_Cards::add_payment_method()
A
39 7 66
callback_for_setting_up_scripts()
A
54 10 18
WC_Checkoutcom_Api_Request::capture_payment()
A
44 8 46
WC_Checkoutcom_Apm_Templates::get_sepa_mandate()
A
38 4 105
WC_Checkoutcom_Api_Request::void_payment()
A
45 8 43
WC_Gateway_Checkout_Com_Cards::payment_fields()
A
46 8 42
WC_Checkoutcom_Api_Request::verify_session()
A
45 8 41
WC_Checkoutcom_Api_Request::mandate_cancel_request()
A
48 8 32
WC_Gateway_Checkout_Com_Google_Pay::payment_scripts()
A
50 8 25
WC_Gateway_Checkout_Com_Cards::admin_options()
A
47 7 38
WC_Checkoutcom_Workflows::get_list()
A
53 8 22
WC_Checkout_Com_Webhook::refund_payment()
A
43 6 51
WC_Gateway_Checkout_Com_PayPal::process_payment()
A
47 7 36
WC_Checkoutcom_Cards_Settings::apple_settings()
A
36 3 95
cko_check_if_empty()
S
59 8 14
WC_Checkoutcom_Cards_Settings::core_settings()
S
37 3 85
WC_Checkoutcom_Webhook::ajax_register_webhook()
S
53 7 23
WC_Gateway_Checkout_Com_Apple_Pay::process_payment()
S
47 6 36
WC_Gateway_Checkout_Com_Cards::save_token()
S
48 6 32
WC_Gateway_Checkout_Com_Alternative_Payments_Fawry::process_payment()
S
46 5 39
Checkout_SDK::__construct()
S
53 6 22
WC_Checkoutcom_Webhook::create()
S
43 4 51
WC_Checkout_Com_Webhook::capture_payment()
S
47 5 35
WC_Checkoutcom_Webhook::get_list()
S
55 6 20
apache_request_headers()
S
55 6 19
WC_Gateway_Checkout_Com_Cards::save_preferred_card_scheme()
S
56 6 18
WC_Gateway_Checkout_Com_Alternative_Payments_Ideal::process_payment()
S
56 6 18
WC_Gateway_Checkout_Com_Alternative_Payments_Bancontact::process_payment()
S
56 6 18
WC_Gateway_Checkout_Com_Alternative_Payments_Eps::process_payment()
S
56 6 18
WC_Gateway_Checkout_Com_Alternative_Payments_Giropay::process_payment()
S
56 6 18
WC_Gateway_Checkout_Com_Cards::process_admin_options()
S
57 6 17
WC_Gateway_Checkout_Com_Alternative_Payments_Klarna::process_payment()
S
56 6 17
WC_Gateway_Checkout_Com_Alternative_Payments_Knet::process_payment()
S
56 6 17
WC_Gateway_Checkout_Com_Alternative_Payments_Multibanco::process_payment()
S
56 6 17
WC_Gateway_Checkout_Com_Alternative_Payments_Poli::process_payment()
S
56 6 17
WC_Gateway_Checkout_Com_Alternative_Payments_Qpay::process_payment()
S
56 6 17
WC_Gateway_Checkout_Com_Alternative_Payments_Sofort::process_payment()
S
56 6 17
WC_Gateway_Checkout_Com_Alternative_Payments_Alipay::process_payment()
S
56 6 17
WC_Gateway_Checkout_Com_Alternative_Payments_Boleto::process_payment()
S
56 6 17
WC_Checkout_Com_Webhook::cancel_payment()
S
50 5 27
WC_Checkout_Com_Webhook::authorize_payment()
S
51 5 26
WC_Gateway_Checkout_Com_Cards::process_refund()
S
54 5 21
WC_Checkoutcom_Subscription::update_order_status()
S
48 4 35
WC_Checkoutcom_Api_Request::get_paypal_products()
S
49 4 33
WC_Checkoutcom_Apm_Templates::get_sepa_details()
S
45 1 77
WC_Gateway_Checkout_Com_Apple_Pay::applepay_sesion()
S
49 4 30
WC_Gateway_Checkout_Com_Cards::element_form()
S
45 2 59
WC_Checkoutcom_Subscription::save_source_id()
S
59 5 14
WC_Checkoutcom_Subscription::save_mandate_cancel()
S
60 5 13
get_selected_apms_class()
S
61 5 11
action_woocommerce_order_item_add_action_buttons()
S
54 4 23
WC_Gateway_Checkout_Com_Google_Pay::process_refund()
S
53 4 22
WC_Gateway_Checkout_Com_PayPal::process_refund()
S
53 4 22
WC_Checkoutcom_Cards_Settings::google_settings()
S
41 1 65
WC_Gateway_Checkout_Com_Alternative_Payments::process_refund()
S
54 4 20
WC_Gateway_Checkout_Com_Apple_Pay::process_refund()
S
54 4 20
WC_Checkoutcom_Utility::wc_add_notice_self()
S
57 4 18
WC_Checkoutcom_Webhook::ajax_check_webhook()
S
57 4 17
WC_Checkoutcom_Subscription::renewal_payment()
S
57 4 16
WC_Checkoutcom_Utility::value_to_decimal()
S
50 3 29
WC_Checkoutcom_Utility::decimal_to_value()
S
50 3 29
WC_Checkoutcom_Subscription::subscription_cancelled()
S
61 4 13
WC_Checkoutcom_Webhook::is_registered()
S
60 4 13
WC_Checkoutcom_Workflows::is_registered()
S
60 4 13
WC_Checkoutcom_Utility::get_redirect_url()
S
62 4 12
WC_Checkoutcom_APM_Method::get_fawry_info()
S
51 3 26
WC_Checkoutcom_Cards_Settings::order_settings()
S
44 1 55
WC_Checkout_Com_Webhook::void_payment()
S
52 3 24
WC_Checkoutcom_Apm_Templates::get_klarna()
S
55 3 23
WC_Gateway_Checkout_Com_Alternative_Payments_Sepa::payment_fields()
S
52 2 34
WC_Checkoutcom_Cards_Settings::apm_settings()
S
44 1 49
WC_Gateway_Checkout_Com_Cards::__construct()
S
48 2 33
WC_Gateway_Checkout_Com_Alternative_Payments_Boleto::payment_fields()
S
53 2 32
WC_Checkoutcom_Utility::get_delayed_capture_timestamp()
S
57 3 15
WC_Checkoutcom_Api_Request::generate_apple_token()
S
50 2 30
WC_Checkoutcom_Api_Request::get_ideal_bank()
S
59 3 14
WC_Gateway_Checkout_Com_Alternative_Payments_Klarna::payment_fields()
S
53 2 29
WC_Gateway_Checkout_Com_Apple_Pay::__construct()
S
52 2 24
WC_Gateway_Checkout_Com_Google_Pay::__construct()
S
53 2 23
WC_Checkoutcom_Cards_Settings::checkoutcom_cards_settings_html()
S
51 1 38
WC_Checkoutcom_Apm_Templates::get_ideal_bank()
S
55 2 23
WC_Gateway_Checkout_Com_PayPal::__construct()
S
54 2 22
WC_Checkoutcom_Api_Request::generate_google_token()
S
53 2 22
WC_Checkoutcom_Cards_Settings::debug_settings()
S
49 1 34
WC_Checkoutcom_Cards_Settings::paypal_settings()
S
49 1 34
WC_Checkout_Com_Webhook::decline_payment()
S
57 2 16
cko_add_rewrite_rules()
S
64 3 10
WC_Checkoutcom_Api_Request::is_using_saved_payment_method()
S
72 3 4
WC_Gateway_Checkout_Com_Alternative_Payments_Ideal::payment_fields()
S
60 2 15
WC_Checkoutcom_Utility::is_successful()
S
69 3 6
WC_Checkoutcom_Workflows::__construct()
S
65 3 8
add_fawry_number()
S
61 2 14
WC_Checkout_Com_Webhook::card_verified()
S
59 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Fawry::payment_fields()
S
61 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Poli::payment_fields()
S
61 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Qpay::payment_fields()
S
61 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Knet::payment_fields()
S
61 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Alipay::payment_fields()
S
61 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Bancontact::payment_fields()
S
61 2 14
WC_Gateway_Checkout_Com_Alternative_Payments::__construct()
S
58 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Eps::payment_fields()
S
61 2 14
WC_Checkoutcom_APM_Method::knet()
S
61 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Giropay::payment_fields()
S
61 2 14
WC_Gateway_Checkout_Com_Alternative_Payments_Sofort::payment_fields()
S
61 2 14
init_checkout_com_gateway_class()
S
61 2 12
WC_Gateway_Checkout_Com_Cards::element_form_save_card()
S
67 2 12
WC_Checkout_Com_Webhook::get_wc_order()
S
62 2 12
WC_Checkout_Com_Webhook::capture_declined()
S
63 2 11
WC_Checkoutcom_Utility::logger()
S
62 2 11
WC_Gateway_Checkout_Com_Alternative_Payments_Sepa::__construct()
S
55 1 20
WC_Checkoutcom_Apm_Templates::get_boleto_details()
S
62 1 16
WC_Checkoutcom_Api_Request::is_url_response_ok()
S
74 2 4
WC_Gateway_Checkout_Com_Google_Pay::payment_fields()
S
67 2 10
WC_Gateway_Checkout_Com_PayPal::payment_fields()
S
73 2 5
WC_Checkoutcom_Webhook::__construct()
S
69 2 6
Checkout_SDK::get_payment_request()
S
69 2 7
WC_Checkoutcom_Utility::is_approved()
S
69 2 7
Checkout_SDK::get_capture_request()
S
69 2 7
WC_Checkoutcom_Utility::is_mada_card()
S
63 2 10
cko_set_query_vars()
S
73 2 5
WC_Checkoutcom_Api_Request::format_fawry_product()
S
63 2 10
WC_Checkoutcom_Workflows::get_instance()
S
71 2 6
WC_Checkoutcom_Webhook::get_instance()
S
71 2 6
checkout_com_add_gateway()
S
64 2 10
cko_is_nas_account()
S
74 2 4
WC_Checkoutcom_Api_Request::get_apm_method()
S
67 2 8
WC_Gateway_Checkout_Com_Alternative_Payments_Multibanco::payment_fields()
S
66 2 10
WC_Checkoutcom_APM_Method::get_klarna_info()
S
58 1 15
WC_Checkoutcom_Cards_Settings::webhook_settings()
S
60 1 14
WC_Gateway_Checkout_Com_Apple_Pay::init_form_fields()
S
62 1 13
WC_Gateway_Checkout_Com_Alternative_Payments::init_form_fields()
S
62 1 13
WC_Gateway_Checkout_Com_Cards::init_form_fields()
S
62 1 13
WC_Gateway_Checkout_Com_Google_Pay::init_form_fields()
S
62 1 13
WC_Gateway_Checkout_Com_PayPal::init_form_fields()
S
62 1 13
register_cko_new_order_statuses()
S
61 1 13
WC_Gateway_Checkout_Com_Cards::add_payment_meta_field()
S
63 1 12
cko_admin_enqueue_scripts()
S
60 1 12
WC_Gateway_Checkout_Com_Alternative_Payments_Sepa::add_payment_meta_field()
S
63 1 12
WC_Checkoutcom_APM_Method::klarna()
S
61 1 12
WC_Checkoutcom_APM_Method::boleto()
S
62 1 11
WC_Checkoutcom_APM_Method::giropay()
S
74 1 5
WC_Gateway_Checkout_Com_Alternative_Payments_Sofort::process_refund()
S
78 1 3
WC_Checkoutcom_APM_Method::eps()
S
73 1 5
WC_Gateway_Checkout_Com_Apple_Pay::applepay_token()
S
74 1 5
WC_Gateway_Checkout_Com_Alternative_Payments_Fawry::process_refund()
S
78 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Bancontact::process_refund()
S
78 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Boleto::process_refund()
S
78 1 3
WC_Checkoutcom_APM_Method::poli()
S
81 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Sofort::__construct()
S
65 1 8
WC_Gateway_Checkout_Com_Alternative_Payments_Multibanco::__construct()
S
63 1 10
WC_Checkoutcom_APM_Method::alipay()
S
81 1 3
WC_Gateway_Checkout_Com_Alternative_Payments::generate_screen_button_html()
S
80 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Knet::__construct()
S
65 1 8
WC_Gateway_Checkout_Com_Alternative_Payments_Poli::__construct()
S
66 1 8
WC_Gateway_Checkout_Com_Alternative_Payments_Ideal::process_refund()
S
78 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Qpay::__construct()
S
65 1 8
WC_Checkoutcom_Utility::is_pending()
S
78 1 3
subscription_payment()
S
76 1 4
WC_Gateway_Checkout_Com_PayPal::generate_screen_button_html()
S
80 1 3
WC_Checkoutcom_Webhook::generate_current_webhook_url()
S
78 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Qpay::process_refund()
S
78 1 3
WC_Checkoutcom_Workflows::get_request_args()
S
64 1 10
WC_Checkoutcom_APM_Method::ideal()
S
71 1 6
WC_Gateway_Checkout_Com_Cards::element_form_cvv()
S
66 1 10
cko_add_query_vars()
S
74 1 5
WC_Gateway_Checkout_Com_Alternative_Payments_Bancontact::__construct()
S
65 1 8
WC_Checkoutcom_APM_Method::multibanco()
S
70 1 6
WC_Checkoutcom_APM_Method::sofort()
S
81 1 3
WC_Gateway_Checkout_Com_Apple_Pay::generate_screen_button_html()
S
80 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Giropay::__construct()
S
65 1 8
WC_Gateway_Checkout_Com_Alternative_Payments_Klarna::process_refund()
S
78 1 3
my_new_wc_order_statuses()
S
75 1 4
WC_Gateway_Checkout_Com_Alternative_Payments_Eps::__construct()
S
65 1 8
WC_Checkoutcom_APM_Method::sepa()
S
70 1 6
Checkout_SDK::get_builder()
S
82 1 3
WC_Gateway_Checkout_Com_Alternative_Payments::payment_fields()
S
79 1 7
WC_Gateway_Checkout_Com_Alternative_Payments_Ideal::__construct()
S
63 1 10
WC_Gateway_Checkout_Com_Cards::generate_screen_button_html()
S
80 1 3
WC_Checkoutcom_APM_Method::fawry()
S
65 1 9
WC_Checkoutcom_APM_Method::__construct()
S
73 1 5
WC_Gateway_Checkout_Com_Alternative_Payments_Giropay::process_refund()
S
78 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Eps::process_refund()
S
78 1 3
checkout_com_action_links()
S
69 1 6
WC_Gateway_Checkout_Com_Alternative_Payments_Alipay::__construct()
S
65 1 8
WC_Gateway_Checkout_Com_Google_Pay::generate_screen_button_html()
S
80 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Boleto::__construct()
S
63 1 10
WC_Gateway_Checkout_Com_Alternative_Payments_Fawry::__construct()
S
63 1 10
WC_Gateway_Checkout_Com_Alternative_Payments_Knet::process_refund()
S
78 1 3
WC_Checkoutcom_Cards_Settings::__construct()
S
79 1 3
WC_Gateway_Checkout_Com_Alternative_Payments_Sepa::process_refund()
S
78 1 3
subscription_cancelled()
S
77 1 4
WC_Checkoutcom_Utility::verify_signature()
S
78 1 3
WC_Checkoutcom_APM_Method::qpay()
S
73 1 5
WC_Gateway_Checkout_Com_Alternative_Payments_Klarna::__construct()
S
63 1 10
WC_Checkoutcom_APM_Method::bancontact()
S
70 1 6