Code Analysis: Visma Pay Payment Gateway 1.1.4

Function Rating Maintainability Complexity Lines of code
WC_Gateway_Visma_Pay::process_payment()
D
14
57 288
init_visma_pay_gateway()
D
7
2 979
WC_Gateway_Visma_Pay::check_visma_pay_response()
D
27
42 116
WC_Gateway_Visma_Pay::payment_fields()
B
39 21 63
WC_Gateway_Visma_Pay::visma_pay_filter_payment_methods()
B
40 18 60
WC_Gateway_Visma_Pay::init_form_fields()
A
32 2 135
WC_Gateway_Visma_Pay::visma_pay_url()
A
48 8 35
WC_Gateway_Visma_Pay::visma_pay_save_img()
A
48 8 33
WC_Gateway_Visma_Pay::visma_pay_translate_error_code()
A
54 8 21
Visma\VismaPay::checkReturn()
A
55 8 18
WC_Gateway_Visma_Pay::visma_pay_settle_payment()
S
47 6 36
WC_Gateway_Visma_Pay::visma_pay_get_merchant_payment_methods()
S
49 6 29
Visma\VismaPay::makeChargeRequest()
S
54 6 20
WC_Gateway_Visma_Pay::process_settlement()
S
49 5 32
WC_Gateway_Visma_Pay::__construct()
S
47 3 33
WC_Gateway_Visma_Pay::visma_pay_translate_verified_code()
S
61 4 13
Visma\VismaPay::makeRequest()
S
62 4 11
WC_Gateway_Visma_Pay_Blocks_Support::get_payment_method_script_handles()
S
54 3 22
WC_Gateway_Visma_Pay_Blocks_Support::get_payment_method_data()
S
55 3 21
WC_Gateway_Visma_Pay::get_order_by_id_and_order_number()
S
62 3 12
Visma\VismaPayWPConnector::request()
S
57 2 17
woocommerce_register_WC_Gateway_Visma_Pay_Blocks_Support()
S
65 2 11
WC_Gateway_Visma_Pay::sanitize_visma_pay_order_number()
S
70 2 6
WC_Gateway_Visma_Pay::payment_scripts()
S
68 2 6
Visma\VismaPay::__construct()
S
68 2 7
Visma\VismaPay::checkStatusWithOrderNumber()
S
70 1 6
Visma\VismaPay::addCustomer()
S
81 1 3
Visma\VismaPay::createCharge()
S
80 1 3
Visma\VismaPay::addProduct()
S
80 1 3
WC_Gateway_Visma_Pay_Blocks_Support::is_active()
S
81 1 3
WC_Gateway_Visma_Pay_Blocks_Support::initialize()
S
70 1 6
WC_Gateway_Visma_Pay::is_embed()
S
81 1 3
WC_Gateway_Visma_Pay::plugin_url()
S
79 1 3
Visma\VismaPay::settlePayment()
S
70 1 6
Visma\VismaPay::addPaymentMethod()
S
81 1 3
Visma\VismaPay::getCardToken()
S
70 1 6
Visma\VismaPay::cancelPayment()
S
70 1 6
Visma\VismaPay::checkStatusWithToken()
S
70 1 6
Visma\VismaPay::calcAuthcode()
S
78 1 3
Visma\VismaPay::deleteCardToken()
S
70 1 6
WC_Gateway_Visma_Pay::plugin_abspath()
S
80 1 3
WC_Gateway_Visma_Pay::is_valid_currency()
S
79 1 3
Visma\VismaPay::addCharge()
S
81 1 3
Visma\VismaPay::getMerchantPaymentMethods()
S
68 1 7
Visma\VismaPay::chargeWithCardToken()
S
80 1 3
woocommerce_add_WC_Gateway_Visma_Pay()
S
77 1 4
WC_Gateway_Visma_Pay::visma_pay_die()
S
71 1 6