Code Analysis: imoje 2.0.3

Function Rating Maintainability Complexity Lines of code
WC_Gateway_ImojeTwisto::get_cart()
A
36 12 85
WC_Gateway_ImojeTwisto::getPreviousOrders()
A
36 8 90
Helper::check_notification()
A
43 10 49
Imoje\Payment\Paywall::prepareData()
A
48 10 36
Imoje\Payment\Notification::formatResponse()
A
50 8 31
Imoje\Payment\Notification::checkRequest()
A
49 8 30
WC_Gateway_ImojeTwisto::init_form_fields()
S
38 2 82
WC_Gateway_Imoje::init_form_fields()
S
39 2 77
WC_Gateway_ImojeCards::init_form_fields()
S
39 2 77
Imoje\Payment\Api::call()
S
49 5 31
WC_Gateway_ImojeTwisto::check_imoje_twisto_available_payment_gateways()
S
61 6 11
Imoje\Payment\CartData::prepareCartDataArray()
S
54 5 22
Helper::process_refund()
S
49 4 32
WC_Gateway_Imoje::check_imoje_available_payment_gateways()
S
62 6 10
WC_Gateway_ImojeCards::check_imoje_cards_available_payment_gateways()
S
62 6 10
WC_Gateway_ImojeBlik::check_imoje_blik_available_payment_gateways()
S
62 6 10
Imoje\Payment\Util::createOrderForm()
S
57 4 15
WC_Gateway_ImojeBlik::init_form_fields()
S
42 1 60
Imoje\Payment\Paywall::createSignature()
S
59 4 13
WC_Gateway_ImojeCards::__construct()
S
51 3 28
WC_Gateway_Imoje::__construct()
S
51 3 28
WC_Gateway_ImojeTwisto::__construct()
S
51 3 28
Imoje\Payment\Validate::notification()
S
46 1 50
Imoje\Payment\Validate::validate()
S
58 3 15
WC_Gateway_ImojeBlik::__construct()
S
53 2 25
Imoje\Payment\Validate::cartItems()
S
49 1 37
Imoje\Payment\Api::prepareData()
S
54 2 22
WC_Gateway_ImojeCards::receipt_page()
S
54 2 21
WC_Gateway_ImojeCards::generate_imoje_form()
S
55 2 21
WC_Gateway_ImojeTwisto::receipt_page()
S
54 2 21
WC_Gateway_Imoje::receipt_page()
S
54 2 21
Imoje\Payment\Validate::cartAddress()
S
50 1 35
WC_Gateway_ImojeTwisto::generate_imoje_form()
S
56 2 20
WC_Gateway_Imoje::generate_imoje_form()
S
56 2 19
WC_Gateway_ImojeBlik::receipt_page()
S
49 1 32
Imoje\Payment\Api::getRefundCreateUrl()
S
60 2 16
init_woocommerce_gateway_imoje()
S
59 2 14
Imoje\Payment\Validate::cartShipping()
S
54 1 25
Imoje\Payment\Validate::cartDiscount()
S
54 1 25
Imoje\Payment\Api::getServiceUrl()
S
70 2 6
Imoje\Payment\Paywall::getServiceUrl()
S
70 2 6
Imoje\Payment\Paywall::getTransactionCreateUrl()
S
69 2 7
Imoje\Payment\Util::getPaymentMethod()
S
70 2 6
Imoje\Payment\Util::getHashMethod()
S
70 2 6
Imoje\Payment\Util::getPaymentMethodCode()
S
70 2 6
Imoje\Payment\Api::getTransactionCreateUrl()
S
68 2 7
Imoje\Payment\Api::buildOrderForm()
S
62 2 10
Imoje\Payment\CartData::addPrevious()
S
71 2 6
Imoje\Payment\CartData::prepareCartData()
S
67 2 7
Imoje\Payment\CartData::preparePrevious()
S
69 2 7
Imoje\Payment\Notification::checkRequestAmount()
S
77 2 3
WC_Gateway_Imoje::setup_properties()
S
64 1 10
Imoje\Payment\CartData::setShipping()
S
69 1 7
Imoje\Payment\CartData::setAddressBilling()
S
64 1 10
Imoje\Payment\Api::__construct()
S
74 1 5
Imoje\Payment\Util::convertAmountToMain()
S
78 1 3
WC_Gateway_ImojeCards::process_refund()
S
65 1 10
Imoje\Payment\Util::isJson()
S
75 1 4
Imoje\Payment\CartData::setCreatedAt()
S
81 1 3
Imoje\Payment\Util::convertAmountToFractional()
S
77 1 3
Imoje\Payment\Api::prepareRefundData()
S
69 1 7
WC_Gateway_Imoje::process_refund()
S
65 1 10
WC_Gateway_ImojeTwisto::setup_properties()
S
64 1 10
Imoje\Payment\Util::getTransactionStatuses()
S
80 1 3
WC_Gateway_ImojeBlik::process_refund()
S
65 1 10
Imoje\Payment\Util::getSupportedCurrencies()
S
80 1 3
WC_Gateway_Imoje::process_payment()
S
68 1 7
Imoje\Payment\Api::createTransaction()
S
70 1 7
Imoje\Payment\Util::multiplyValues()
S
78 1 3
Imoje\Payment\Api::createRefund()
S
70 1 7
Imoje\Payment\Util::hashSignature()
S
78 1 3
Imoje\Payment\Util::canUseForCurrency()
S
78 1 3
WC_Gateway_ImojeTwisto::imoje_twisto_notification()
S
68 1 8
Imoje\Payment\CartData::setDiscount()
S
69 1 7
WC_Gateway_ImojeTwisto::process_payment()
S
68 1 7
Imoje\Payment\Paywall::__construct()
S
70 1 6
add_imoje_gateways()
S
70 1 7
WC_Gateway_ImojeCards::process_payment()
S
68 1 7
Imoje\Payment\CartData::addItem()
S
66 1 9
Imoje\Payment\CartData::setAmount()
S
81 1 3
WC_Gateway_Imoje::imoje_notification()
S
68 1 8
WC_Gateway_ImojeTwisto::process_refund()
S
65 1 10
WC_Gateway_ImojeBlik::setup_properties()
S
64 1 10
WC_Gateway_ImojeBlik::process_payment()
S
68 1 7
Imoje\Payment\Paywall::prepareOrderData()
S
69 1 6
WC_Gateway_ImojeCards::setup_properties()
S
64 1 10
Imoje\Payment\CartData::setAddressDelivery()
S
64 1 10
WC_Gateway_ImojeBlik::imoje_blik_notification()
S
68 1 8
Imoje\Payment\Notification::__construct()
S
77 1 4
WC_Gateway_ImojeCards::imoje_cards_notification()
S
68 1 8
Imoje\Payment\Paywall::buildOrderForm()
S
65 1 10
Imoje\Payment\Util::parseStringToArray()
S
73 1 5