Code Analysis: WooCommerce Redsys Gateway Light 4.0.1

Function Rating Maintainability Complexity Lines of code
redsys_return_dserrors()
D
1
1 1,374
WC_Gateway_Bizum_Redsys::successful_request()
D
17
48 271
WC_Gateway_Redsys::get_redsys_args()
C
27
28 135
WC_Gateway_Redsys_PSD2_Light::get_acctinfo()
C
27
25 145
WC_Gateway_Redsys::successful_request()
C
28
25 130
WC_Gateway_Bizum_Redsys::check_ipn_request_is_valid()
B
35 18 88
WC_Gateway_Redsys::ask_for_refund()
B
29 14 141
WC_Gateway_Bizum_Redsys::process_refund()
B
37 18 75
WC_Gateway_Redsys::process_refund()
B
38 17 71
WC_Gateway_Bizum_Redsys::ask_for_refund()
B
31 12 127
WC_Gateway_Redsys::check_ipn_request_is_valid()
B
41 15 62
redsys_get_country_code()
A
22
1 253
WC_Gateway_Bizum_Redsys::check_user_test_mode()
A
39 12 78
WC_Gateway_Bizum_Redsys::get_redsys_url_gateway()
A
42 12 67
redsys_return_allowed_currencies()
A
26
1 217
redsys_return_currencies()
A
24
1 215
redsys_return_all_languages_code()
A
27
1 204
WC_Gateway_Redsys::generate_redsys_form()
A
37 8 90
WC_Gateway_Bizum_Redsys::init_form_fields()
A
35 6 105
WC_Gateway_Redsys_Global_lite::get_redsys_users_token()
A
48 10 38
redsys_about_page()
A
32 1 165
redsys_return_dsresponse()
A
29
1 163
WC_Gateway_Redsys_Global_lite::is_paid()
A
46 9 42
WC_Gateway_Redsys_Global_lite::get_users_token_bulk()
A
49 9 36
WC_Gateway_Bizum_Redsys::get_redsys_sha256()
A
47 8 44
WC_Gateway_Redsys_Global_lite::get_lang_code()
A
46 8 41
WC_Gateway_Redsys::init_form_fields()
A
31 1 146
woocommerce_gateway_redsys_init()
A
32 2 122
WC_Gateway_Redsys_PSD2_Light::addr_match()
A
50 8 30
WC_Gateway_Bizum_Redsys::get_redsys_args()
A
38 5 68
WC_Gateway_Redsys_Global_lite::is_redsys_order()
S
52 7 28
WC_Gateway_Redsys_Global_lite::product_description()
S
52 6 24
WC_Gateway_Bizum_Redsys::disable_bizum()
S
54 6 22
WC_Gateway_Redsys_Global_lite::get_error_by_code()
S
56 6 20
WC_Gateway_Redsys_Global_lite::get_response_by_code()
S
56 6 20
WC_Gateway_Redsys_Global_lite::get_msg_error_by_code()
S
56 6 20
mostrar_numero_autentificacion()
S
55 6 19
redsys_lite_add_notice_new_version()
S
49 5 33
redsys_lite_ask_for_telegram()
S
53 5 24
WC_Gateway_Redsys::__construct()
S
42 3 51
redsys_welcome_splash()
S
55 5 19
WC_Gateway_Redsys_Global_lite::check_type_exist_in_tokens()
S
57 5 18
WC_Gateway_Bizum_Redsys::admin_options()
S
50 4 31
WC_Gateway_Redsys_Global_lite::is_redsys_error()
S
61 5 14
WC_Gateway_Redsys_Global_lite::get_error()
S
61 5 14
WC_Gateway_Redsys_Global_lite::get_error_type()
S
61 5 14
WC_Gateway_Bizum_Redsys::generate_redsys_form()
S
45 3 43
WC_Gateway_Redsys_Global_lite::check_if_token_is_valid()
S
55 4 21
WC_Gateway_Redsys_PSD2_Light::shipnameindicator()
S
57 4 19
WC_Gateway_Bizum_Redsys::__construct()
S
43 2 47
WC_Gateway_Redsys::admin_options()
S
51 3 31
WC_Gateway_Redsys_Global_lite::is_ds_error()
S
59 4 15
WC_Gateway_Redsys_Global_lite::is_msg_error()
S
59 4 15
WC_Gateway_Redsys::check_ipn_response()
S
59 4 14
WC_Gateway_Redsys_Global_lite::is_ds_response()
S
60 4 14
WC_Gateway_Bizum_Lite_Support::get_payment_method_script_handles()
S
54 3 22
WC_Gateway_Redsys_Lite_Support::get_payment_method_script_handles()
S
54 3 22
WC_Gateway_Redsys_PSD2_Light::clean_data()
S
44 1 49
WC_Gateway_Redsys_Global_lite::clean_data()
S
44 1 49
WC_Gateway_Redsys::check_redsys_refund()
S
57 3 17
WC_Gateway_Bizum_Redsys::check_redsys_refund()
S
57 3 17
WC_Gateway_Redsys::warning_checkout_test_mode()
S
60 3 16
WC_Gateway_Bizum_Redsys::warning_checkout_test_mode_bizum()
S
60 3 16
WC_Gateway_Redsys_PSD2_Light::get_redsys_option()
S
60 3 14
WC_Gateway_Redsys_Global_lite::get_redsys_option()
S
60 3 14
WC_Gateway_Redsys_Global_lite::order_exist()
S
62 3 13
WC_Gateway_Redsys_Global_lite::get_txnid()
S
63 3 11
WC_Gateway_Redsys_Global_lite::get_token_type()
S
63 3 11
redsys_return_languages()
S
47 1 35
woocommerce_gateway_redsys_lite_block_support()
S
59 2 18
WC_Gateway_Redsys::admin_notice_mcrypt_encrypt()
S
63 3 9
WC_Gateway_Redsys_Global_lite::set_token_type()
S
73 3 5
redsys_return_insiteerrors()
S
54 1 21
redsys_return_number_order_type()
S
56 1 18
WC_Gateway_Bizum_Redsys::is_valid_for_use()
S
69 2 7
redsys_styles_css()
S
66 2 8
redsys_css_lite()
S
66 2 8
WC_Gateway_Redsys_Global_lite::get_gateway()
S
65 2 10
WC_Gateway_Redsys_Global_lite::get_order_hour()
S
68 2 7
RedsysAPI::getOrderNotif()
S
66 2 9
WC_Gateway_Redsys_Global_lite::get_order_auth()
S
69 2 7
WC_Gateway_Redsys_PSD2_Light::get_altura_pantalla()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_anchura_pantalla()
S
67 2 8
WC_Gateway_Redsys_Global_lite::get_order_date()
S
68 2 7
WC_Gateway_Redsys_PSD2_Light::get_profundidad_color_user()
S
67 2 8
WC_Gateway_Redsys_Global_lite::post_exist()
S
68 2 8
WC_Gateway_Redsys_PSD2_Light::get_profundidad_color()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::days()
S
64 2 9
WC_Gateway_Redsys_PSD2_Light::get_diferencia_horaria()
S
67 2 8
RedsysAPI::getOrder()
S
66 2 9
WC_Gateway_Redsys_PSD2_Light::get_browserjavaenabled()
S
67 2 8
RedsysAPI::getOrderNotif()
S
66 2 9
WC_Gateway_Redsys_PSD2_Light::get_agente_navegador_user()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_idioma_navegador_user()
S
67 2 8
WC_Gateway_Redsys_Global_lite::set_txnid()
S
73 2 5
WC_Gateway_Redsys_PSD2_Light::get_altura_pantalla_user()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_anchura_pantalla_user()
S
67 2 8
RedsysAPI::getOrder()
S
66 2 9
WC_Gateway_Redsys_PSD2_Light::get_diferencia_horaria_user()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_browserjavaenabled_user()
S
67 2 8
WC_Gateway_Redsys::is_valid_for_use()
S
69 2 7
WC_Gateway_Bizum_Redsys::check_ipn_response()
S
64 2 10
WC_Gateway_Redsys_Global_lite::is_gateway_enabled()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_challenge_wwndow_size()
S
65 2 9
WC_Gateway_Redsys_Global_lite::get_psd2_arg()
S
69 2 7
WC_Gateway_Redsys_PSD2_Light::get_post_num()
S
59 1 15
WC_Gateway_Redsys_PSD2_Light::get_agente_navegador()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_idioma_navegador()
S
67 2 8
redsys_return_types()
S
62 1 14
RedsysAPI::getOrderNotifSOAP()
S
69 1 6
redsys_menu()
S
74 1 4
WC_Gateway_Redsys_Lite_Support::initialize()
S
79 1 3
RedsysAPI::base64_url_encode()
S
79 1 3
WC_Gateway_Bizum_Lite_Support::initialize()
S
79 1 3
RedsysAPI::stringToArray()
S
79 1 3
RedsysAPI::getRequestNotifSOAP()
S
69 1 6
WC_Gateway_Redsys_Global_lite::get_orders_type()
S
71 1 6
WC_Gateway_Redsys_Global_lite::allowed_currencies()
S
71 1 6
WC_Gateway_Redsys_PSD2_Light::get_work()
S
81 1 3
RedsysAPI::base64_url_encode()
S
79 1 3
redsys_return_status_paid()
S
69 1 8
RedsysAPI::createMerchantSignatureNotifSOAPResponse()
S
68 1 7
RedsysAPI::getParameter()
S
81 1 3
WC_Gateway_Redsys::get_redsys_order()
S
77 1 4
WC_Gateway_Redsys_PSD2_Light::get_mobile_phone()
S
91 1 2
WC_Gateway_Redsys_Global_lite::get_ds_error()
S
71 1 6
RedsysAPI::encrypt_3DES()
S
66 1 7
WC_Gateway_Bizum_Redsys::receipt_page()
S
75 1 4
plugin_url_redsys()
S
79 1 3
WC_Gateway_Redsys_PSD2_Light::get_accept_headers()
S
79 1 3
RedsysAPI::base64_url_decode()
S
79 1 3
WC_Gateway_Redsys_Global_lite::prepare_order_number()
S
68 1 6
plugin_abspath_redsys()
S
80 1 3
woocommerce_add_gateway_bizum_redsys()
S
77 1 4
RedsysAPI::base64_url_decode()
S
79 1 3
plugins_to_deactivate()
S
68 1 9
WC_Gateway_Redsys_Global_lite::redsys_amount_format()
S
75 1 4
RedsysAPI::getParameter()
S
81 1 3
WCPSD2L()
S
76 1 4
redsys_lite_add_head_text()
S
79 1 3
RedsysAPI::arrayToJson()
S
77 1 4
WC_Gateway_Bizum_Lite_Support::is_active()
S
80 1 3
RedsysAPI::createMerchantSignature()
S
68 1 7
WC_Gateway_Redsys_PSD2_Light::get_email()
S
81 1 3
WC_Gateway_Redsys_PSD2_Light::get_cardholdername()
S
91 1 2
RedsysAPI::createMerchantSignature()
S
68 1 7
RedsysAPI::arrayToJson()
S
77 1 4
RedsysAPI::encrypt_3DES()
S
69 1 6
WC_Gateway_Redsys_Global_lite::get_order()
S
76 1 4
RedsysAPI::createMerchantSignatureNotifSOAPRequest()
S
68 1 7
WC_Gateway_Redsys_Global_lite::get_redsys_wp_languages()
S
71 1 6
RedsysAPI::decodeMerchantParameters()
S
74 1 5
WC_Gateway_Redsys_PSD2_Light::get_adress_ship()
S
63 1 10
RedsysAPI::encodeBase64()
S
77 1 4
WC_Gateway_Redsys_Global_lite::get_currencies()
S
71 1 6
WC_Gateway_Redsys::receipt_page()
S
75 1 4
WC_Gateway_Redsys_Global_lite::get_ds_response()
S
71 1 6
RedsysAPI::decodeMerchantParameters()
S
77 1 4
WC_Gateway_Bizum_Redsys::process_payment()
S
69 1 7
WC_Gateway_Redsys_PSD2_Light::get_acctid()
S
91 1 2
WC_Gateway_Redsys_Global_lite::get_msg_error()
S
71 1 6
RedsysAPI::mac256()
S
75 1 4
WC_Gateway_Redsys_Global_lite::get_redsys_languages()
S
71 1 6
RedsysAPI::decodeBase64()
S
77 1 4
WC_Gateway_Redsys_PSD2_Light::get_accept_headers_user()
S
79 1 3
RedsysAPI::mac256()
S
75 1 4
WC_Gateway_Redsys_Global_lite::clean_order_number()
S
79 1 3
RedsysAPI::setParameter()
S
80 1 3
WC_Gateway_Redsys_Lite_Support::get_payment_method_data()
S
65 1 10
WC_Gateway_Redsys_PSD2_Light::get_homephone()
S
81 1 3
woocommerce_add_gateway_redsys_gateway()
S
77 1 4
WC_Gateway_Redsys_Global_lite::get_status_pending()
S
70 1 6
RedsysAPI::createMerchantSignatureNotif()
S
66 1 8
RedsysAPI::getResponseNotifSOAP()
S
69 1 6
redsys_get_parent_page()
S
76 1 4
RedsysAPI::createMerchantSignatureNotif()
S
66 1 8
WC_Gateway_Redsys_Lite_Support::is_active()
S
80 1 3
RedsysAPI::createMerchantParameters()
S
77 1 4
RedsysAPI::encodeBase64()
S
77 1 4
RedsysAPI::setParameter()
S
80 1 3
WC_Gateway_Redsys::process_payment()
S
69 1 7
WC_Gateway_Redsys_Global_lite::__construct()
S
80 1 3
RedsysAPI::stringToArray()
S
79 1 3
add_redsys_meta_box()
S
64 1 8
WCRedL()
S
76 1 4
RedsysAPI::createMerchantParameters()
S
77 1 4
WC_Gateway_Bizum_Lite_Support::get_payment_method_data()
S
65 1 10
redsys_lite_notice_style()
S
75 1 4
RedsysAPI::decodeBase64()
S
77 1 4