Code Analysis: Woo Mercado Pago Module 2.2.19

Function Rating Maintainability Complexity Lines of code
WC_WooMercadoPago_Gateway::build_payment_preference()
D
19
40 242
WC_WooMercadoPagoCustom_Gateway::build_payment_preference()
D
20
39 228
WC_WooMercadoPagoSubscription_Gateway::successful_request()
D
22
39 216
WC_WooMercadoPagoTicket_Gateway::build_payment_preference()
D
21
38 221
WC_WooMercadoPagoSubscription_Gateway::check_ipn_response()
D
26
39 150
WC_WooMercadoPago_Gateway::successful_request()
D
25
33 176
WC_WooMercadoPagoTicket_Gateway::successful_request()
C
27
26 158
WC_WooMercadoPago_Gateway::init_form_fields()
C
21
16 294
WC_WooMercadoPagoCustom_Gateway::successful_request()
C
29 23 141
WC_WooMercadoPagoCustom_Gateway::process_payment()
C
31 23 120
WC_WooMercadoPagoTicket_Gateway::process_payment()
C
38 27 59
WC_WooMercadoPago_Gateway::check_mercado_envios()
C
29
20 131
WC_WooMercadoPagoCustom_Gateway::process_refund()
C
34 22 95
WC_WooMercadoPagoTicket_Gateway::process_refund()
C
34 22 95
WC_WooMercadoPago_Gateway::process_refund()
C
34 22 95
WC_WooMercadoPago_Gateway::check_ipn_response()
B
36 21 81
WC_WooMercadoPagoCustom_Gateway::init_form_fields()
B
25
12 213
WC_MercadoEnvios_Shipping::calculate_shipping()
B
33 19 95
WC_WooMercadoPagoSubscription_Gateway::init_form_fields()
B
25
11 213
WC_WooMercadoPagoTicket_Gateway::init_form_fields()
B
26
12 191
MPRestClient::build_request()
B
35 19 83
MeliRestClient::build_request()
B
35 19 83
MeliRestClient::exec()
B
39 20 61
MPRestClient::exec()
B
39 20 61
WC_WooMercadoPagoSubscription_Gateway::build_preapproval()
B
35 18 84
WC_WooMercadoPagoCustom_Gateway::__construct()
B
31 14 117
WC_WooMercadoPagoTicket_Gateway::validate_credentials()
B
39 17 62
WC_WooMercadoPagoCustom_Gateway::get_order_status()
B
45 18 40
WC_WooMercadoPagoCustom_Gateway::check_ipn_request_is_valid()
A
40 15 60
WC_WooMercadoPago_Gateway::__construct()
A
31 11 118
WC_WooMercadoPagoTicket_Gateway::__construct()
A
32 11 113
WC_WooMercadoPago_Gateway::custom_process_admin_options()
A
42 15 49
WC_WooMercadoPagoSubscription_Gateway::__construct()
A
33 11 102
WC_WooMercadoPagoTicket_Gateway::create_url()
A
38 13 72
WC_WooMercadoPagoTicket_Gateway::check_ipn_request_is_valid()
A
41 14 56
WC_WooMercadoPago_Module::get_country_config()
A
33 9 130
WC_WooMercadoPagoTicket_Gateway::payment_fields()
A
31 9 118
WC_WooMercadoPagoCustom_Gateway::payment_fields()
A
31 9 115
WC_WooMercadoPagoSubscription_Gateway::validate_credentials()
A
41 13 55
WC_WooMercadoPagoCustom_Gateway::validate_credentials()
A
41 13 53
WC_WooMercadoPagoCustom_Gateway::add_discount_custom()
A
47 14 32
WC_WooMercadoPagoTicket_Gateway::add_discount_ticket()
A
47 14 32
WC_WooMercadoPagoCustom_Gateway::custom_process_admin_options()
A
44 13 41
WC_WooMercadoPago_Gateway::create_url()
A
42 12 55
mp_subscription_order_refund_cancel_box()
A
31 4 173
WC_WooMercadoPagoCustom_Gateway::check_and_save_customer_card()
A
45 12 40
WC_WooMercadoPagoCustom_Gateway::create_url()
A
43 11 51
WC_WooMercadoPagoCustom_Gateway::process_cancel_order_meta_box_actions()
A
45 11 40
WC_WooMercadoPagoTicket_Gateway::custom_process_admin_options()
A
45 11 40
WC_WooMercadoPagoTicket_Gateway::process_cancel_order_meta_box_actions()
A
45 11 40
WC_WooMercadoPago_Gateway::process_cancel_order_meta_box_actions()
A
45 11 40
WC_WooMercadoPago_Gateway::validate_credentials()
A
42 10 52
WC_WooMercadoPagoSubscription_Gateway::process_cancel_order_meta_box_actions()
A
45 10 40
WC_WooMercadoPago_Gateway::render_order_form()
A
40 8 67
WC_WooMercadoPago_Gateway::get_payment_method_title_basic()
A
52 11 22
WC_WooMercadoPagoSubscription_Gateway::render_order_form()
A
41 8 63
WC_WooMercadoPagoSubscription_Gateway::create_url()
A
45 9 44
WC_MercadoEnvios_Shipping::show_message_shipping_methods()
A
53 10 23
WC_WooMercadoPagoCustom_Gateway::is_available()
A
53 10 21
WC_WooMercadoPagoCustom_Gateway::get_payment_method_title_custom()
A
54 10 19
WC_WooMercadoPagoSubscription_Gateway::get_payment_method_title_subscription()
A
54 10 19
WC_WooMercadoPagoTicket_Gateway::get_payment_method_title_ticket()
A
54 10 19
WC_WooMercadoPagoCustom_Gateway::process_http_request()
A
44 8 48
WC_WooMercadoPagoTicket_Gateway::update_checkout_status()
A
45 8 44
WC_MercadoEnvios_Admin_Orders::metabox_content()
A
47 8 32
WC_MercadoEnvios_Package::get_package_data()
A
44 7 46
WC_WooMercadoPagoSubscription_Gateway::custom_process_admin_options()
A
49 8 30
WC_WooMercadoPagoTicket_Gateway::process_http_request()
A
44 7 45
WC_WooMercadoPagoSubscription_Gateway::process_payment()
A
49 7 32
WC_WooMercadoPago_Gateway::process_payment()
A
49 7 32
WC_WooMercadoPagoCustom_Gateway::add_checkout_script()
S
50 7 30
WC_WooMercadoPagoSubscription_Gateway::add_checkout_script()
S
50 7 30
WC_WooMercadoPagoTicket_Gateway::add_checkout_script()
S
50 7 30
WC_WooMercadoPago_Gateway::add_checkout_script()
S
50 7 30
WC_WooMercadoPagoTicket_Gateway::is_available()
S
56 7 17
filter_woocommerce_is_purchasable()
S
54 6 21
WC_WooMercadoPago_Module::filter_payment_method_by_shipping()
S
56 6 18
MP::get()
S
56 6 17
MP::post()
S
56 6 17
MP::put()
S
56 6 17
WC_WooMercadoPago_Gateway::is_available()
S
57 6 16
WC_WooMercadoPagoSubscription_Gateway::is_available()
S
57 6 16
MP::delete()
S
57 6 16
mp_save_recurrent_settings()
S
53 5 26
WC_MercadoEnvios_Shipping::init_form_fields()
S
46 4 40
WC_WooMercadoPagoCustom_Gateway::update_checkout_status()
S
54 5 22
WC_WooMercadoPagoSubscription_Gateway::update_checkout_status()
S
54 5 22
WC_MercadoEnvios_Package::get_cubage()
S
49 4 37
WC_WooMercadoPago_Gateway::update_checkout_status()
S
54 5 22
check_recurrent_product_singularity()
S
55 5 19
MP::__construct()
S
58 5 17
MP::get_access_token()
S
52 4 25
WC_MercadoEnvios_Shipping::update_settings_api()
S
53 4 22
WC_MercadoEnvios_Package::get_data()
S
56 4 18
WC_WooMercadoPago_Module::get_conversion_rate()
S
56 4 18
WC_WooMercadoPago_Module::__construct()
S
51 3 28
WC_WooMercadoPagoCustom_Gateway::custom_checkout_scripts()
S
61 4 13
WC_WooMercadoPagoTicket_Gateway::ticket_checkout_scripts()
S
61 4 13
WC_WooMercadoPago_Module::is_subscription()
S
61 4 12
WC_WooMercadoPagoCustom_Gateway::check_ssl_absence()
S
61 4 12
WC_WooMercadoPagoTicket_Gateway::check_ssl_absence()
S
61 4 12
WC_WooMercadoPagoSubscription_Gateway::css()
S
62 4 11
WC_WooMercadoPago_Gateway::css()
S
62 4 11
WC_WooMercadoPago_Module::get_categories()
S
54 3 22
mp_add_recurrent_settings()
S
46 1 45
WC_MercadoEnvios_Package::cubage_total()
S
61 3 12
default_no_quantities()
S
62 3 12
WC_WooMercadoPago_Module::woomercadopago_settings_link()
S
49 1 32
WC_WooMercadoPagoTicket_Gateway::admin_url()
S
64 3 10
WC_WooMercadoPagoSubscription_Gateway::payment_fields()
S
67 3 8
MP::get_or_create_customer()
S
63 3 10
WC_MercadoEnvios_Package::calculate_root()
S
63 3 10
WC_WooMercadoPago_Gateway::admin_url()
S
64 3 10
MPRestClient::build_query()
S
63 3 10
MeliRestClient::build_query()
S
63 3 10
WC_WooMercadoPagoSubscription_Gateway::admin_url()
S
64 3 10
WC_WooMercadoPagoCustom_Gateway::admin_url()
S
64 3 10
WC_WooMercadoPago_Gateway::payment_fields()
S
67 3 8
MP::search_payment()
S
60 2 13
MP::get_payment_info()
S
62 2 11
MP::check_two_cards()
S
62 2 11
WC_MercadoEnvios_Shipping::get_shipping_methods_zone_by_shipping_id()
S
62 2 11
MPRestClient::sendErrorLog()
S
58 1 16
MeliRestClient::sendErrorLog()
S
58 1 16
WC_WooMercadoPago_Module::init_mercado_pago_gateway_class()
S
72 2 6
WC_WooMercadoPago_Module::woocommerce_instance()
S
68 2 8
MP::create_card_in_customer()
S
59 1 15
MP::sandbox_mode()
S
71 2 6
WC_WooMercadoPago_Module::get_client_id()
S
68 2 7
MP::create_preference()
S
60 1 14
MP::create_payment()
S
60 1 14
MP::partial_refund_payment()
S
60 1 14
MP::cancel_preapproval_payment()
S
61 1 13
WC_WooMercadoPago_Module::load_plugin_textdomain()
S
61 1 13
WC_MercadoEnvios_Shipping::load_plugin_textdomain()
S
61 1 13
MP::set_two_cards_mode()
S
61 1 13
MP::create_customer()
S
61 1 13
MP::check_discount_campaigns()
S
61 1 13
WC_MercadoEnvios_Shipping::__construct()
S
62 1 12
MP::search_customer()
S
63 1 11
MP::update_preference()
S
63 1 11
WC_WooMercadoPago_Module::get_common_settings()
S
63 1 11
MP::update_preapproval_payment()
S
63 1 11
MP::refund_payment()
S
63 1 11
MP::create_preapproval_payment()
S
63 1 11
MP::cancel_payment()
S
63 1 11
WC_WooMercadoPago_Module::build_currency_converted_msg()
S
64 1 9
add_mp_order_meta_box_actions()
S
75 1 4
MP::set_email()
S
77 1 4
WC_WooMercadoPagoSubscription_Gateway::client_id_or_secret_missing_message()
S
69 1 7
WC_WooMercadoPagoTicket_Gateway::credentials_missing_message()
S
69 1 7
WC_WooMercadoPago_Module::admin_includes()
S
79 1 3
WC_WooMercadoPagoSubscription_Gateway::is_supported_currency()
S
79 1 3
add_meta_boxes()
S
66 1 10
WC_WooMercadoPagoCustom_Gateway::is_supported_currency()
S
79 1 3
MPRestClient::get()
S
74 1 4
MeliRestClient::delete()
S
74 1 4
WC_WooMercadoPago_Module::add_gateway()
S
69 1 7
WC_WooMercadoPago_Module::utf8_ansi()
S
71 1 5
MeliRestClient::set_email()
S
80 1 3
WC_WooMercadoPago_Module::get_module_version()
S
81 1 3
MP::search_paymentV1()
S
64 1 10
WC_WooMercadoPago_Gateway::build_log_path_string()
S
70 1 5
WC_WooMercadoPago_Module::get_templates_path()
S
79 1 3
WC_MercadoEnvios_Package::__construct()
S
81 1 3
MP::get_all_customer_cards()
S
64 1 10
WC_MercadoEnvios_Shipping_Express::__construct()
S
72 1 5
WC_WooMercadoPagoCustom_Gateway::credentials_missing_message()
S
69 1 7
MeliRestClient::put()
S
74 1 4
WC_MercadoEnvios_Shipping_Normal::__construct()
S
72 1 5
MeliRestClient::get()
S
74 1 4
WC_WooMercadoPago_Gateway::is_supported_currency()
S
79 1 3
MeliRestClient::post()
S
74 1 4
WC_WooMercadoPago_Gateway::client_id_or_secret_missing_message()
S
69 1 7
WC_MercadoEnvios_Shipping::get_shipping_method_id()
S
80 1 3
WC_WooMercadoPago_Module::workaround_ampersand_bug()
S
77 1 3
WC_WooMercadoPagoSubscription_Gateway::build_log_path_string()
S
70 1 5
MP::analytics_save_settings()
S
67 1 8
WC_WooMercadoPago_Module::build_currency_not_converted_msg()
S
63 1 10
WC_WooMercadoPago_Module::add_shipping()
S
73 1 5
WC_MercadoEnvios_Shipping::fix_format()
S
75 1 4
MPRestClient::delete()
S
74 1 4
WC_WooMercadoPagoCustom_Gateway::build_log_path_string()
S
70 1 5
MP::get_preference()
S
65 1 10
MPRestClient::set_email()
S
80 1 3
WC_WooMercadoPago_Gateway::receipt_page()
S
80 1 3
WC_WooMercadoPago_Module::build_currency_conversion_err_msg()
S
64 1 9
WC_WooMercadoPagoTicket_Gateway::build_log_path_string()
S
70 1 5
MP::get_preapproval_payment()
S
64 1 10
MP::get_authorized_payment()
S
65 1 10
WC_MercadoEnvios_Admin_Orders::register_metabox()
S
66 1 10
WC_WooMercadoPago_Module::build_valid_credentials_msg()
S
64 1 9
WC_MercadoEnvios_Package::get_max_values()
S
67 1 8
WC_WooMercadoPago_Module::build_invalid_credentials_msg()
S
70 1 6
MPRestClient::post()
S
74 1 4
WC_MercadoEnvios_Package::fix_format()
S
75 1 4
MercadoPagoException::__construct()
S
79 1 3
WC_MercadoEnvios_Admin_Orders::__construct()
S
79 1 3
MPRestClient::put()
S
74 1 4
WC_MercadoEnvios_Shipping::init()
S
63 1 10
WC_WooMercadoPago_Module::notify_woocommerce_miss()
S
67 1 9
WC_WooMercadoPagoSubscription_Gateway::receipt_page()
S
80 1 3
WC_WooMercadoPagoTicket_Gateway::is_supported_currency()
S
79 1 3