Code Analysis: WooCommerce imoje 4.9.1

Function Rating Maintainability Complexity Lines of code
imoje_create_transaction_ajax()
C
34 25 89
imoje_get_error_message()
C
38 24 68
WC_Gateway_Imoje_Api_Abstract::render_channels()
B
36 20 74
WC_Gateway_Imoje_Api_Abstract::process_payment()
B
40 19 62
WC_Gateway_Imoje_Abstract::process_notification()
B
35 17 86
Helper::get_cart()
A
36 13 83
Helper::get_invoice()
A
41 14 55
Imoje\Payment\Paywall::prepareData()
A
44 13 47
WC_Gateway_Imoje_Api_Abstract::get_payment_channel_to_array()
A
45 12 42
WC_Gateway_Imoje_Api_Abstract::prepare_payment_methods_block_checkout()
A
45 12 36
imoje_debit_alias()
A
48 12 35
Imoje\Payment\Api::call()
A
44 11 44
WC_Gateway_ImojeBlik::process_payment()
A
46 11 36
Imoje\Payment\Api::prepareData()
A
44 10 43
Imoje\Payment\Api::verifyTransactionLimits()
A
57 10 17
WC_Gateway_Imoje_Abstract::check_available_payment_gateways()
A
56 10 17
Imoje\Payment\Api::getPaymentMethodChannelAvailable()
A
57 10 16
imoje_deactivate_alias()
A
52 9 25
Helper::get_lease_now()
A
46 8 40
Imoje\Payment\Notification::checkRequest()
A
49 8 30
Imoje\Payment\Api::getPaymentMethodAvailable()
A
58 9 15
Imoje\Payment\Api::getPaymentChannelInServiceAndVerify()
A
58 9 15
Imoje\Payment\Util::createOrderForm()
A
52 8 24
Imoje\Payment\Notification::formatResponse()
A
50 7 31
imoje_init_woocommerce_gateway()
S
49 7 30
Imoje\Payment\Api::prepareDataPaymentLink()
S
48 6 35
Imoje\Payment\Invoice::get()
S
48 6 34
WC_Gateway_ImojeBlik::prepare_data()
S
49 6 33
imoje_prepare_success_response()
S
56 7 18
Imoje\Payment\Api::parseStringToArray()
S
57 7 17
imoje_check_transaction_ajax()
S
58 7 16
WC_Gateway_Imoje_Abstract::get_default_form_fields()
S
38 2 90
Imoje\Payment\LeaseNow::addItem()
S
51 6 29
imoje_get_api_instance()
S
57 6 18
WC_Gateway_Imoje_Api_Abstract::check_availability()
S
57 6 17
WC_Gateway_Imoje_Api_Abstract::create_transaction_and_process_order()
S
51 5 30
Imoje\Payment\CartData::prepareCartDataArray()
S
54 5 22
Helper::process_refund()
S
47 4 37
WC_Gateway_ImojeInstallments::fetch_installments_data()
S
55 5 19
Helper::leasenow_get_product_category()
S
55 5 19
Imoje\Payment\Util::calculateAmountToRefund()
S
61 5 11
Imoje\Payment\Invoice::setBuyer()
S
54 4 22
WC_Gateway_Imoje_Abstract::process_refund()
S
56 4 18
Imoje\Payment\CartData::addItem()
S
50 3 31
Imoje\Payment\Api::verifyPaymentLink()
S
68 5 7
Imoje\Payment\Api::verifyTransaction()
S
68 5 7
WC_Gateway_Imoje_Api_Abstract::verify_transaction()
S
68 5 7
WC_Gateway_Imoje_Api_Abstract::verify_payment_link()
S
68 5 7
Imoje\Payment\Paywall::createSignature()
S
59 4 13
WC_Gateway_Imoje_Abstract::payment_method_list()
S
45 1 52
Imoje\Payment\Validate::notification()
S
46 1 50
Imoje\Payment\Api::prepareBlikOneclickData()
S
56 3 18
Helper::get_refund_error()
S
68 4 6
Imoje\Payment\Validate::validate()
S
58 3 15
WC_Gateway_Imoje_Api_Abstract::get_service_active()
S
59 3 14
WC_Gateway_Imoje_RestApi_Blocks::enqueue_payment_scripts()
S
62 3 13
Imoje\Payment\Api::createTransaction()
S
62 3 13
Imoje\Payment\Api::createPaymentLink()
S
62 3 13
WC_Gateway_Imoje_RestApi_Blocks::initialize()
S
61 3 12
Helper::get_tooltip_payment_channel()
S
60 3 12
WC_Gateway_Imoje_Api_Abstract::get_address_data()
S
52 2 26
WC_Gateway_ImojeVisa::prepare_data()
S
53 2 26
WC_Gateway_Imoje::prepare_data()
S
53 2 25
WC_Gateway_ImojeCards::prepare_data()
S
53 2 25
Imoje\Payment\Api::getProfileBlikUrl()
S
57 2 20
WC_Gateway_Imoje_Abstract::setup_properties()
S
57 2 16
Imoje\Payment\Api::getRefundCreateUrl()
S
60 2 16
Imoje\Payment\Api::getDebitBlikProfileUrl()
S
60 2 16
Imoje\Payment\Api::getServiceInfoUrl()
S
61 2 15
WC_Gateway_Imoje_Api_Abstract::render_regulations()
S
62 3 10
Helper::get_payment_methods_for_payment_link()
S
65 3 9
Imoje\Payment\Api::getTransactionUrl()
S
61 2 15
Imoje\Payment\Invoice::addItem()
S
59 2 14
Imoje\Payment\Api::prepareAddressData()
S
60 2 14
Imoje\Payment\Api::getDeactivateBlikProfileUrl()
S
61 2 14
Imoje\Payment\CartData::commonPrepareAddress()
S
60 2 14
Imoje\Payment\Api::getTransactionCreateUrl()
S
62 2 13
Imoje\Payment\Api::getPaymentLinkCreateUrl()
S
62 2 13
Imoje\Payment\Api::buildOrderForm()
S
61 2 13
Imoje\Payment\Api::check_retype_code()
S
53 1 26
WC_Gateway_ImojeInstallments::render_calculator()
S
62 2 11
WC_Gateway_Imoje_Api_Abstract::__construct()
S
63 2 11
WC_Gateway_Imoje_RestApi_Blocks::enqueue_imoje_blik_payment_script()
S
53 1 25
WC_Gateway_Imoje_RestApi_Blocks::enqueue_imoje_paylater_payment_script()
S
53 1 24
WC_Gateway_Imoje_RestApi_Blocks::enqueue_common_payment_script()
S
54 1 23
WC_Gateway_Imoje_RestApi_Blocks::enqueue_imoje_pbl_payment_script()
S
54 1 23
WC_Gateway_Imoje_RestApi_Blocks::enqueue_imoje_installments_payment_script()
S
54 1 23
WC_Gateway_Imoje_RestApi_Blocks::enqueue_imoje_wallet_payment_script()
S
54 1 23
WC_Gateway_ImojeInstallments::prepare_data()
S
55 1 23
WC_Gateway_ImojePbl::prepare_data()
S
56 1 22
WC_Gateway_ImojeWallet::prepare_data()
S
56 1 22
WC_Gateway_Imoje_Abstract::__construct()
S
55 1 22
WC_Gateway_ImojePaylater::prepare_data()
S
55 1 22
WC_Gateway_Imoje_RestApi_Blocks::enqueue_imoje_payment_script()
S
56 1 21
WC_Gateway_Imoje_RestApi_Blocks::enqueue_imoje_cards_payment_script()
S
56 1 21
WC_Gateway_Imoje_RestApi_Blocks::enqueue_imoje_visa_payment_script()
S
56 1 21
Imoje\Payment\Util::getPaymentMethodCode()
S
70 2 6
Imoje\Payment\Api::__construct()
S
69 2 7
WC_Gateway_ImojeInstallments::get_installments_instance()
S
67 2 8
WC_Gateway_Imoje_Api_Abstract::check_payment_method_with_inclusions()
S
75 2 4
Imoje\Payment\Installments::__construct()
S
69 2 7
Imoje\Payment\Notification::__construct()
S
70 2 7
Imoje\Payment\Util::getPaymentMethodCodeLogo()
S
70 2 6
imoje_add_gateways()
S
71 2 6
WC_Gateway_ImojeBlik::__construct()
S
64 2 10
WC_Gateway_ImojeWallet::payment_fields()
S
71 2 6
Imoje\Payment\Invoice::setCompanyBuyer()
S
66 2 9
Imoje\Payment\Installments::getScriptUrl()
S
67 2 9
Imoje\Payment\Util::getPaymentMethod()
S
70 2 6
Imoje\Payment\LeaseNow::prepare()
S
67 2 8
WC_Gateway_ImojePbl::payment_fields()
S
70 2 6
Imoje\Payment\Installments::getServiceUrl()
S
71 2 6
Imoje\Payment\Invoice::prepare()
S
65 2 9
Imoje\Payment\CartData::preparePrevious()
S
69 2 7
Imoje\Payment\CartData::addPrevious()
S
71 2 6
Imoje\Payment\Notification::checkRequestAmount()
S
77 2 3
WC_Gateway_Imoje_RestApi_Blocks::get_block_checkout_tooltip()
S
67 2 8
Imoje\Payment\Paywall::getTransactionCreateUrl()
S
69 2 7
Imoje\Payment\Util::getHashMethod()
S
70 2 6
WC_Gateway_ImojeBlik::payment_fields()
S
70 2 6
Imoje\Payment\Api::getServiceUrl()
S
71 2 6
WC_Gateway_ImojeInstallments::payment_fields()
S
72 2 6
Imoje\Payment\Util::getDocUrl()
S
70 2 6
Imoje\Payment\Paywall::getServiceUrl()
S
70 2 6
WC_Gateway_ImojePaylater::payment_fields()
S
69 2 7
Imoje\Payment\Installments::getData()
S
62 1 12
imoje_get_gateways()
S
64 1 12
Imoje\Payment\CartData::setAddressDelivery()
S
64 1 11
Imoje\Payment\CartData::setAddressBilling()
S
64 1 11
Imoje\Payment\Util::hashSignature()
S
78 1 3
Helper::get_version()
S
73 1 4
Imoje\Payment\Util::getSupportedCurrencies()
S
80 1 3
WC_Gateway_ImojeBlik::get_payment_channels()
S
80 1 3
WC_Gateway_Imoje_Abstract::get_notification_url()
S
78 1 3
WC_Gateway_ImojePbl::get_payment_channels()
S
80 1 3
Imoje\Payment\Api::getTransaction()
S
72 1 6
Imoje\Payment\Util::canUseForCurrency()
S
78 1 3
Imoje\Payment\Util::getCid()
S
79 1 3
WC_Gateway_Imoje_Abstract::get_payment_method_data()
S
79 1 3
Imoje\Payment\Util::convertAmountToFractional()
S
77 1 3
Imoje\Payment\Util::doResponseJson()
S
74 1 5
Imoje\Payment\CartData::prepareCartData()
S
75 1 4
WC_Gateway_ImojeBlik::init_form_fields()
S
64 1 10
WC_Gateway_ImojeBlik::receipt_page()
S
65 1 8
WC_Gateway_ImojeWallet::get_payment_channels()
S
80 1 3
Helper::get_gateway_details()
S
67 1 8
Helper::check_is_config_value_selected()
S
80 1 3
Imoje\Payment\Api::getServiceInfo()
S
73 1 6
WC_Gateway_Imoje_Abstract::render_unavailable_template()
S
71 1 5
WC_Gateway_Imoje_Abstract::get_invoice()
S
68 1 8
Imoje\Payment\Paywall::buildOrderForm()
S
65 1 10
WC_Gateway_Imoje_Abstract::process_payment()
S
68 1 7
Imoje\Payment\Api::getBlikProfileList()
S
72 1 6
Imoje\Payment\Util::isJson()
S
75 1 4
WC_Gateway_Imoje_Abstract::prepare_data()
S
100 1 0
Imoje\Payment\Invoice::validateCurrency()
S
79 1 3
WC_Gateway_Imoje_Abstract::default_form_fields_merge()
S
79 1 3
Imoje\Payment\Util::convertAmountToMain()
S
78 1 3
WC_Gateway_ImojeCards::init_form_fields()
S
81 1 3
Imoje\Payment\CartData::getItems()
S
82 1 3
imoje_get_options()
S
79 1 3
WC_Gateway_Imoje_Api_Abstract::verify_availability()
S
82 1 3
Imoje\Payment\CartData::setShipping()
S
69 1 7
WC_Gateway_Imoje_Abstract::verify_availability()
S
100 1 0
Imoje\Payment\CartData::setDiscount()
S
69 1 7
WC_Gateway_Imoje_Api_Abstract::get_payment_channels()
S
80 1 3
WC_Gateway_ImojeInstallments::get_calculator_data()
S
81 1 3
Imoje\Payment\CartData::setAmount()
S
81 1 3
Imoje\Payment\CartData::setCreatedAt()
S
81 1 3
Imoje\Payment\Api::check_new_param_alias()
S
68 1 8
WC_Gateway_Imoje_Abstract::imoje_enqueue_scripts()
S
65 1 8
Imoje\Payment\Paywall::prepareOrderData()
S
69 1 6
WC_Gateway_Imoje_Abstract::disable_gateway()
S
76 1 4
Imoje\Payment\Paywall::__construct()
S
70 1 6
Imoje\Payment\Api::prepareRefundData()
S
69 1 7
Imoje\Payment\Util::multiplyValues()
S
78 1 3
WC_Gateway_Imoje_Abstract::init_form_fields()
S
80 1 3
Imoje\Payment\Api::createRefund()
S
70 1 7
WC_Gateway_Imoje::init_form_fields()
S
81 1 3
WC_Gateway_Imoje_Abstract::init_form_fields_paywall()
S
64 1 10
WC_Gateway_ImojeVisa::init_form_fields()
S
81 1 3
Imoje\Payment\Util::getTransactionStatuses()
S
80 1 3
WC_Gateway_Imoje::__construct()
S
81 1 3
WC_Gateway_Imoje_Api_Abstract::render_twisto_regulations()
S
78 1 3