Code Analysis: 2C2P Redirect API for WooCommerce 7.0.3

Function Rating Maintainability Complexity Lines of code
wc_2c2p_hash_helper::wc_2c2p_create_hashvalue()
D
28
68 106
WC_2C2P_Meta_Data_Helper::wc_2c2p_store_response_meta()
D
26
63 126
WC_Gateway_2c2p::check_2c2p_response()
D
29
36 113
wc_2c2p_hash_helper::wc_2c2p_is_valid_hash()
C
43 33 37
fun2c2p_init()
B
18
2 378
WC_Gateway_2c2p::generate_2c2p_form()
A
36 13 75
WC_2C2P_Validation_Helper::wc_2c2p_is_valid_merchant_request()
A
46 14 40
WC_2c2p_currency::get_currency_code()
A
26
1 170
WC_Gateway_2c2p::payment_fields()
S
49 7 29
wp_2c2p_remove_stored_card_Id_ajax()
S
52 7 23
WC_2C2P_Validation_Helper::wc_2c2p_validate_currency_exponent()
S
51 6 26
wc_2c2p_construct_request_helper::wc_2c2p_construct_request()
S
52 6 24
wc_2c2p_construct_request_helper::wc_2c2p_123_payment_expiry()
S
57 6 15
WC_Gateway_2c2p::__construct()
S
47 4 34
WC_Gateway_2c2p::validate_wc_2c2p_123_payment_expiry_field()
S
58 5 15
wc_2c2p_construct_request_helper::wc_2c2p_create_common_form_field()
S
49 4 29
WC_Gateway_2c2p::wc_2c2p_custom_checkout_field_update_order_meta()
S
65 5 9
wc_2c2p_construct_request_helper::wc_2c2p_get_store_currency_code()
S
61 4 12
fun2c2p_register_deactivation_hook()
S
53 3 23
fun2c2p_register_activation_hook()
S
53 3 23
fun2c2p_add_action_plugin()
S
61 3 12
fun2c2p_add_awaiting_payment_to_order_statuses()
S
64 3 10
fun2c2p_backorder_font_icon()
S
63 1 25
WC_Gateway_2c2p::validate_key_id_field()
S
69 2 7
WC_Gateway_2c2p::wc_2c2p_response_url()
S
66 2 8
WC_Gateway_2c2p::process_payment()
S
62 2 10
WC_Gateway_2c2p::validate_wc_2c2p_fixed_description_field()
S
69 2 7
WC_Gateway_2c2p::validate_key_secret_field()
S
69 2 7
wc_2c2p_construct_request_helper::__construct()
S
77 1 4
WC_Gateway_2c2p::wc_2c2p_get_setting()
S
82 1 3
WC_Gateway_2c2p::receipt_page()
S
81 1 3
WC_2c2p_currency::get_currency_exponent()
S
66 1 9
WC_2C2P_Validation_Helper::__construct()
S
100 1 1
WC_2C2P_Meta_Data_Helper::__construct()
S
100 1 1
WC_Gateway_2c2p::thanku_page()
S
98 1 1
woocommerce_add_gateway_2c2p_gateway()
S
77 1 4
WC_Gateway_2c2p::wc_2c2p_load_scripts()
S
77 1 3
WC_Gateway_2c2p::admin_options()
S
63 1 10
wc_2c2p_hash_helper::__construct()
S
77 1 4
WC_Gateway_2c2p::init_form_fields()
S
79 1 3
fun2c2p_register_awaiting_payment_order_status()
S
64 1 10