Code Analysis: WooCommerce Redsys Gateway Light 3.0.3

Function Rating Maintainability Complexity Lines of code
woocommerce_gateway_redsys_init()
D
2
2 1,456
WC_Gateway_Bizum_Redsys::successful_request()
D
17
48 271
WC_Gateway_Redsys::get_redsys_args()
D
15
24 331
WC_Gateway_Redsys::ask_for_refund()
D
16
14 353
WC_Gateway_Redsys_PSD2_Light::get_acctinfo()
C
27
26 149
WC_Gateway_Redsys::successful_request()
C
30 22 119
WC_Gateway_Bizum_Redsys::check_ipn_request_is_valid()
B
35 18 88
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
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 203
WC_Gateway_Redsys::generate_redsys_form()
A
38 8 86
redsys_return_dserrors()
A
26
1 177
WC_Gateway_Bizum_Redsys::init_form_fields()
A
35 6 99
WC_Gateway_Redsys_Global::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::is_paid()
A
46 9 42
WC_Gateway_Redsys_Global::get_users_token_bulk()
A
49 9 36
WC_Gateway_Bizum_Redsys::get_redsys_sha256()
A
47 8 44
WC_Gateway_Redsys_Global::get_lang_code()
A
46 8 41
WC_Gateway_Redsys::init_form_fields()
A
31 1 146
WC_Gateway_Redsys_PSD2_Light::addr_match()
A
50 8 30
WC_Gateway_Bizum_Redsys::get_redsys_args()
A
39 5 66
WC_Gateway_Redsys_Global::is_redsys_order()
S
52 7 28
WC_Gateway_Redsys_Global::product_description()
S
52 6 24
WC_Gateway_Redsys_Global::get_msg_error_by_code()
S
56 6 20
WC_Gateway_Redsys_Global::get_error_by_code()
S
56 6 20
WC_Gateway_Redsys_Global::get_response_by_code()
S
56 6 20
redsys_lite_add_notice_new_version()
S
49 5 32
redsys_lite_ask_for_telegram()
S
53 5 23
WC_Gateway_Redsys::__construct()
S
42 3 50
redsys_welcome_splash()
S
55 5 19
WC_Gateway_Redsys_Global::check_type_exist_in_tokens()
S
57 5 18
mostrar_numero_autentificacion()
S
56 5 17
WC_Gateway_Bizum_Redsys::admin_options()
S
50 4 31
WC_Gateway_Redsys_Global::is_redsys_error()
S
61 5 14
WC_Gateway_Redsys_Global::get_error_type()
S
61 5 14
WC_Gateway_Redsys_Global::get_error()
S
61 5 14
WC_Gateway_Bizum_Redsys::generate_redsys_form()
S
45 3 43
PAnD::get_admin_notice_cache()
S
61 5 12
WC_Gateway_Redsys_Global::check_if_token_is_valid()
S
56 4 21
WC_Gateway_Redsys_PSD2_Light::shipnameindicator()
S
57 4 19
WC_Gateway_Redsys::admin_options()
S
51 3 31
WC_Gateway_Redsys_Global::is_msg_error()
S
60 4 15
WC_Gateway_Bizum_Redsys::__construct()
S
43 2 45
WC_Gateway_Redsys_Global::is_ds_error()
S
60 4 15
WC_Gateway_Redsys_Global::is_ds_response()
S
60 4 14
WC_Gateway_Redsys_PSD2_Light::clean_data()
S
44 1 49
WC_Gateway_Redsys_Global::clean_data()
S
44 1 49
WC_Gateway_Bizum_Redsys::check_redsys_refund()
S
57 3 17
WC_Gateway_Redsys::check_redsys_refund()
S
57 3 17
WC_Gateway_Bizum_Redsys::warning_checkout_test_mode_bizum()
S
60 3 16
WC_Gateway_Redsys::warning_checkout_test_mode()
S
60 3 16
WC_Gateway_Redsys_PSD2_Light::get_redsys_option()
S
60 3 14
WC_Gateway_Redsys_Global::get_redsys_option()
S
60 3 14
redsys_ask_for_rating()
S
59 3 14
WC_Gateway_Redsys_Global::order_exist()
S
62 3 13
PAnD::is_admin_notice_active()
S
60 3 13
PAnD::dismiss_admin_notice()
S
61 3 11
WC_Gateway_Redsys_Global::get_txnid()
S
64 3 11
WC_Gateway_Redsys_Global::get_token_type()
S
64 3 11
redsys_return_languages()
S
47 1 35
PAnD::load_script()
S
57 2 19
WC_Gateway_Redsys_Global::set_token_type()
S
73 3 5
WC_Gateway_Redsys::admin_notice_mcrypt_encrypt()
S
63 3 9
redsys_return_insiteerrors()
S
54 1 21
RedsysAPI::getOrder()
S
66 2 9
redsys_styles_css()
S
66 2 8
redsys_css_lite()
S
66 2 8
WC_Gateway_Redsys_PSD2_Light::get_agente_navegador()
S
67 2 8
redsys_help_admin_notice()
S
63 2 10
WC_Gateway_Redsys_Global::get_order_auth()
S
69 2 7
WC_Gateway_Redsys_PSD2_Light::get_diferencia_horaria_user()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_profundidad_color_user()
S
67 2 8
WC_Gateway_Bizum_Redsys::is_valid_for_use()
S
69 2 7
WC_Gateway_Redsys_PSD2_Light::get_idioma_navegador()
S
67 2 8
WC_Gateway_Redsys_Global::post_exist()
S
68 2 8
WC_Gateway_Redsys_PSD2_Light::get_altura_pantalla()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_idioma_navegador_user()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_anchura_pantalla()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_profundidad_color()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_diferencia_horaria()
S
67 2 8
WC_Gateway_Redsys_Global::get_order_date()
S
68 2 7
WC_Gateway_Redsys_PSD2_Light::get_browserjavaenabled()
S
68 2 8
WC_Gateway_Redsys_Global::is_gateway_enabled()
S
67 2 8
WC_Gateway_Redsys_PSD2_Light::get_agente_navegador_user()
S
67 2 8
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
WC_Gateway_Redsys_Global::set_txnid()
S
74 2 5
WC_Gateway_Redsys_PSD2_Light::get_browserjavaenabled_user()
S
68 2 8
WC_Gateway_Redsys_Global::get_gateway()
S
65 2 10
WC_Gateway_Redsys_Global::get_order_hour()
S
68 2 7
WC_Gateway_Redsys::is_valid_for_use()
S
62 2 5
WC_Gateway_Bizum_Redsys::check_ipn_response()
S
64 2 10
RedsysAPI::getOrderNotif()
S
66 2 9
RedsysAPI::getOrderNotif()
S
66 2 9
WC_Gateway_Redsys_Global::get_psd2_arg()
S
69 2 7
RedsysAPI::getOrder()
S
66 2 9
WC_Gateway_Redsys_PSD2_Light::get_challenge_wwndow_size()
S
66 2 9
WC_Gateway_Redsys::check_ipn_response()
S
64 2 10
WC_Gateway_Redsys_PSD2_Light::days()
S
64 2 9
redsys_return_types()
S
63 1 13
WC_Gateway_Redsys_PSD2_Light::get_post_num()
S
61 1 13
WC_Gateway_Redsys_PSD2_Light::get_mobile_phone()
S
100 1 2
RedsysAPI::stringToArray()
S
79 1 3
WCRedL()
S
76 1 4
WC_Gateway_Redsys_Global::redsys_amount_format()
S
75 1 4
WC_Gateway_Redsys_Global::get_status_pending()
S
70 1 6
WC_Gateway_Redsys_Global::get_orders_type()
S
71 1 6
RedsysAPI::getParameter()
S
81 1 3
WC_Gateway_Redsys_PSD2_Light::get_homephone()
S
82 1 3
redsys_menu()
S
74 1 4
WC_Gateway_Redsys::receipt_page()
S
75 1 4
RedsysAPI::getOrderNotifSOAP()
S
69 1 6
RedsysAPI::mac256()
S
75 1 4
WCPSD2L()
S
76 1 4
WC_Gateway_Redsys_PSD2_Light::get_email()
S
82 1 3
WC_Gateway_Redsys_Global::prepare_order_number()
S
69 1 6
RedsysAPI::getRequestNotifSOAP()
S
69 1 6
redsys_lite_notice_style()
S
75 1 4
add_redsys_meta_box()
S
64 1 8
WC_Gateway_Redsys_PSD2_Light::get_acctid()
S
100 1 2
redsys_lite_add_head_text()
S
80 1 3
WC_Gateway_Redsys_PSD2_Light::get_accept_headers()
S
79 1 3
WC_Gateway_Redsys_Global::get_ds_response()
S
71 1 6
redsys_get_parent_page()
S
76 1 4
WC_Gateway_Redsys_PSD2_Light::get_work()
S
82 1 3
RedsysAPI::arrayToJson()
S
77 1 4
WC_Gateway_Redsys_Global::__construct()
S
80 1 3
woocommerce_add_gateway_redsys_gateway()
S
77 1 4
WC_Gateway_Redsys_PSD2_Light::get_adress_ship()
S
64 1 10
RedsysAPI::createMerchantSignature()
S
68 1 7
RedsysAPI::encrypt_3DES()
S
66 1 7
woocommerce_add_gateway_bizum_redsys()
S
77 1 4
WC_Gateway_Redsys_Global::get_redsys_wp_languages()
S
71 1 6
WC_Gateway_Bizum_Redsys::process_payment()
S
69 1 7
WC_Gateway_Redsys_Global::clean_order_number()
S
80 1 3
WC_Gateway_Redsys_Global::allowed_currencies()
S
71 1 6
WC_Gateway_Redsys_Global::get_order()
S
77 1 4
RedsysAPI::arrayToJson()
S
77 1 4
RedsysAPI::createMerchantSignatureNotifSOAPResponse()
S
68 1 7
RedsysAPI::decodeBase64()
S
77 1 4
WC_Gateway_Redsys::get_redsys_order()
S
77 1 4
RedsysAPI::createMerchantSignatureNotif()
S
66 1 8
RedsysAPI::mac256()
S
75 1 4
RedsysAPI::decodeMerchantParameters()
S
74 1 5
WC_Gateway_Redsys_Global::get_redsys_languages()
S
71 1 6
WC_Gateway_Bizum_Redsys::receipt_page()
S
75 1 4
WC_Gateway_Redsys_PSD2_Light::get_accept_headers_user()
S
79 1 3
RedsysAPI::createMerchantParameters()
S
77 1 4
RedsysAPI::createMerchantSignatureNotif()
S
66 1 8
RedsysAPI::base64_url_decode()
S
79 1 3
RedsysAPI::createMerchantSignature()
S
68 1 7
RedsysAPI::encodeBase64()
S
77 1 4
RedsysAPI::base64_url_decode()
S
79 1 3
RedsysAPI::encrypt_3DES()
S
69 1 6
PAnD::set_admin_notice_cache()
S
72 1 5
RedsysAPI::createMerchantSignatureNotifSOAPRequest()
S
68 1 7
RedsysAPI::encodeBase64()
S
77 1 4
RedsysAPI::stringToArray()
S
79 1 3
RedsysAPI::decodeMerchantParameters()
S
77 1 4
RedsysAPI::setParameter()
S
80 1 3
RedsysAPI::setParameter()
S
80 1 3
PAnD::init()
S
75 1 4
RedsysAPI::base64_url_encode()
S
79 1 3
WC_Gateway_Redsys::process_payment()
S
69 1 7
RedsysAPI::createMerchantParameters()
S
77 1 4
WC_Gateway_Redsys_PSD2_Light::get_cardholdername()
S
100 1 2
RedsysAPI::getResponseNotifSOAP()
S
69 1 6
WC_Gateway_Redsys_Global::get_ds_error()
S
71 1 6
RedsysAPI::getParameter()
S
81 1 3
RedsysAPI::decodeBase64()
S
77 1 4
WC_Gateway_Redsys_Global::get_msg_error()
S
71 1 6
redsys_return_status_paid()
S
69 1 8
WC_Gateway_Redsys_Global::get_currencies()
S
71 1 6
RedsysAPI::base64_url_encode()
S
79 1 3