Code Analysis: WooCommerce PixelPay Gateway 2.3

Function Rating Maintainability Complexity Lines of code
woogpp_load()
B
18
1 384
WC_Gateway_PixelPay::process_payment()
A
37 12 72
PixelPayOrder::evaluate()
A
42 13 51
WC_Gateway_PixelPay::woogpp_checkresponse()
A
43 13 44
WC_Gateway_PixelPay::__construct()
A
32 7 130
PixelPayOrder::validateDetailsData()
S
58 8 14
PixelPayOrder::validateData()
S
58 7 14
WC_Gateway_PixelPay::getPixelCustomerToken()
S
59 5 13
WC_Gateway_PixelPay::init_form_fields()
S
47 1 44
WC_Gateway_PixelPay::doPixelPayRequest()
S
50 2 28
PixelPayOrder::setCurrency()
S
73 3 5
PixelPayOrder::valAmount()
S
69 3 7
PixelPayOrder::getRedirectLink()
S
68 3 7
save_card_token()
S
71 2 5
pixel_states()
S
72 2 5
check_for_woopixelpay()
S
71 2 6
PixelPayOrder::calculateTotal()
S
69 2 7
custom_woocommerce_state()
S
70 2 6
WC_Gateway_PixelPay::custom_woocommerce_auto_complete_order()
S
69 2 7
get_pixel_card()
S
70 2 6
WC_Gateway_PixelPay::savePixelTokenAndUser()
S
61 1 14
add_card_token()
S
62 1 12
PixelPayOrder::addItem()
S
63 1 11
country_codes()
S
72 1 6
add_action_links()
S
69 1 7
PixelPayOrder::setReturnUrl()
S
81 1 3
WC_Gateway_PixelPay::load_pixelpay()
S
80 1 3
get_plugin_path()
S
81 1 3
WC_Gateway_PixelPay::createPixelUser()
S
65 1 9
PixelPayOrder::setShipping()
S
80 1 3
PixelPayOrder::__construct()
S
74 1 5
woogpp_checkinstance()
S
77 1 4
my_change_status_function()
S
76 1 4
PixelPayOrder::setCancelUrl()
S
81 1 3
delete_card()
S
75 1 4
PixelPayOrder::setTax()
S
80 1 3