Code Analysis: WooCommerce PixelPay Gateway 2.7

Function Rating Maintainability Complexity Lines of code
woogpp_load()
B
18
1 404
WC_Gateway_PixelPay::process_payment()
B
35 16 77
PixelPayOrder::evaluate()
A
42 13 51
WC_Gateway_PixelPay::woogpp_checkresponse()
A
43 13 44
WC_Gateway_PixelPay::__construct()
A
41 9 51
PixelPayOrder::validateDetailsData()
S
58 8 14
WC_Gateway_PixelPay::payment_fields()
S
39 3 88
PixelPayOrder::validateData()
S
58 6 14
register_gateway_for_block()
S
58 5 16
WC_Gateway_PixelPay::get_params()
S
49 4 27
WC_Gateway_PixelPay::init_form_fields()
S
44 1 54
WC_Gateway_PixelPay::doPixelPayRequest()
S
50 2 28
add_blocks_translations()
S
60 3 12
PixelPayOrder::valAmount()
S
69 3 7
PixelPayOrder::getRedirectLink()
S
68 3 7
WC_Gateway_PixelPay_Blocks::get_payment_method_data()
S
61 2 11
WC_Gateway_PixelPay_Blocks::get_payment_method_script_handles()
S
59 1 17
WC_Gateway_PixelPay::custom_woocommerce_auto_complete_order()
S
69 2 7
get_pixel_card()
S
70 2 6
PixelPayOrder::setCurrency()
S
73 2 5
PixelPayOrder::calculateTotal()
S
69 2 7
save_card_token()
S
72 2 5
pixel_states()
S
72 2 5
custom_woocommerce_state()
S
70 2 6
declare_plugins_compatibility()
S
69 2 6
WC_Gateway_PixelPay_Blocks::is_active()
S
77 2 3
check_for_woopixelpay()
S
71 2 6
add_action_links()
S
65 2 8
WC_Gateway_PixelPay::getCardsUser()
S
69 2 6
PixelPayOrder::addItem()
S
63 1 11
get_plugin_path()
S
81 1 3
PixelPayOrder::setCancelUrl()
S
81 1 3
WC_Gateway_PixelPay_Blocks::initialize()
S
74 1 4
PixelPayOrder::setTax()
S
80 1 3
delete_card()
S
75 1 4
PixelPayOrder::__construct()
S
74 1 5
PixelPayOrder::setReturnUrl()
S
81 1 3
my_change_status_function()
S
76 1 4
woogpp_checkinstance()
S
77 1 4
add_card_token()
S
66 1 8
WC_Gateway_PixelPay::load_pixelpay()
S
80 1 3
country_codes()
S
72 1 6
PixelPayOrder::setShipping()
S
80 1 3