Code Analysis: Openpay Cards Plugin 2.9.0

Function Rating Maintainability Complexity Lines of code
Openpay_Cards::process_payment()
B
38 21 62
Openpay_Cards::processOpenpayCharge()
B
36 20 71
OpenpayApiConnector::handleRequestError()
B
47 19 32
Openpay_Cards::error()
B
42 17 50
Openpay_Cards::__construct()
B
41 17 47
OpenpayApiConnector::_curlRequest()
A
38 13 67
OpenpayApiResourceBase::refreshData()
A
46 12 38
openpay_woocommerce_confirm()
A
45 10 39
Openpay_Cards::payment_scripts()
A
42 9 47
admin_enqueue_scripts_order()
A
48 10 31
Openpay_Cards::init_form_fields()
A
30 1 161
get_type_card_openpay()
A
42 8 51
Openpay_Cards::payment_fields()
A
49 9 29
openpay_woocommerce_order_status_change_custom()
A
44 8 43
OpenpayApiConnector::encodeToQueryString()
A
53 9 21
OpenpayApiConnector::_request()
A
49 8 30
openpay_woocommerce_order_refunded()
A
44 7 43
OpenpayApiResourceBase::processAttribute()
A
48 7 34
Openpay_Cards::setSettings()
S
50 7 30
OpenpayApiResourceBase::getUrl()
S
60 8 12
Openpay_Cards::validateNewCard()
S
49 7 27
OpenpayApiResourceBase::__construct()
S
51 7 26
OpenpayApiResourceBase::__set()
S
59 7 13
Openpay_Cards::process_admin_options()
S
50 6 26
Openpay_Cards::getCreditCardList()
S
51 6 26
Openpay_Cards::createOpenpayCharge()
S
53 6 22
Utils::requestOpenpay()
S
47 5 35
ajax_capture_handler()
S
47 5 35
OpenpayApiResourceBase::registerInParent()
S
58 6 16
Openpay_Cards::createOpenpayCustomer()
S
51 5 27
Openpay_Cards::getOpenpayCustomer()
S
55 5 20
OpenpayApiConnector::interpretResponse()
S
56 5 18
Openpay::setEndpointUrl()
S
57 5 17
wc_custom_redirect_after_purchase()
S
56 5 17
Openpay_Cards::cvvValidation()
S
57 5 15
Openpay_Cards::hasAddress()
S
70 6 6
OpenpayApiResourceBase::__get()
S
58 5 15
OpenpayApiError::__construct()
S
63 6 9
OpenpayApiResourceBase::getResourceUrlName()
S
58 5 14
OpenpayApiDerivedResource::addResource()
S
60 5 13
Utils::getUrlScripts()
S
52 4 27
Openpay_Cards::formatAddress()
S
55 4 19
Utils::getCurrencies()
S
58 4 17
Openpay::getInstance()
S
60 4 14
OpenpayApiConnector::handleCurlError()
S
61 4 13
OpenpayApiResourceBase::getInstance()
S
60 4 13
Utils::getCountryName()
S
63 4 12
OpenpayApiResourceBase::getResource()
S
65 4 10
OpenpayApiResourceBase::validateId()
S
63 4 9
OpenpayApiResourceBase::_delete()
S
69 4 6
Openpay_Cards::perform_ssl_check()
S
69 4 5
Utils::getMessageError()
S
58 3 15
OpenpayApiResourceBase::isList()
S
65 4 9
OpenpayApiResourceBase::_find()
S
59 3 14
add_partial_capture_toggle()
S
61 3 12
OpenpayApiConnector::request()
S
60 3 12
Openpay_Cards::getOpenpayInstance()
S
61 3 11
OpenpayApiResourceBase::_retrieve()
S
62 3 11
OpenpaySubscription::__set()
S
65 3 9
openpay_cards_init_your_gateway()
S
68 3 8
Openpay_Cards::getCreditCards()
S
63 2 11
OpenpayCharge::capture()
S
69 2 6
OpenpayApiDerivedResource::getInstance()
S
68 2 7
OpenpayFee::refund()
S
69 2 6
Openpay::getId()
S
69 2 7
Openpay::getProductionMode()
S
68 2 7
OpenpayApiDerivedResource::getResource()
S
71 2 6
Openpay::setId()
S
74 2 5
OpenpayApiDerivedResource::removeResource()
S
71 2 6
OpenpayApiConnector::getInstance()
S
71 2 6
Openpay::getApiKey()
S
69 2 7
OpenpayApiResourceBase::getResourceName()
S
68 2 7
OpenpayApiDerivedResource::isResourceListed()
S
74 2 4
Openpay::setOriginMerchant()
S
74 2 5
Openpay_Cards::get_order_captured_total()
S
75 2 4
confirm_card_saved_notice()
S
64 2 9
Openpay::setSandboxMode()
S
78 2 3
Openpay::getSandboxMode()
S
68 2 7
OpenpayApiDerivedResource::get()
S
65 2 9
order_confirmation_notice()
S
70 2 6
OpenpayApiDerivedResource::getList()
S
66 2 8
Openpay::setProductionMode()
S
78 2 3
Openpay::setUserAgent()
S
74 2 5
Openpay::getEndpointUrl()
S
79 2 3
OpenpayConsole::record()
S
66 2 8
OpenpayApiConnector::encodeToJson()
S
66 2 8
Openpay::setApiKey()
S
74 2 5
Openpay_Cards::getInstallments()
S
68 2 7
Openpay_Cards::createCreditCard()
S
68 2 8
OpenpayApiResourceBase::validateParams()
S
70 2 6
Openpay_Cards::isNullOrEmptyString()
S
78 2 3
OpenpayConsole::getInstance()
S
71 2 6
Openpay_Cards::getProductsDetail()
S
64 2 9
OpenpayConsole::_log()
S
71 2 5
OpenpayConsole::printToScreen()
S
75 2 4
OpenpayApiResourceBase::_update()
S
68 2 7
OpenpayApiResourceBase::_updateCharge()
S
70 2 6
Openpay::setCountry()
S
74 2 5
OpenpayCharge::refund()
S
69 2 6
OpenpayRefund::getResourceUrlName()
S
80 1 3
OpenpayApiResourceBase::getMerchantInfo()
S
74 1 4
OpenpayChargeList::create()
S
80 1 3
OpenpayConsole::warn()
S
79 1 3
Openpay_Cards::is_preauthorized_order()
S
79 1 3
Openpay_Cards::action_woocommerce_checkout_create_order()
S
78 1 3
Openpay_Cards::get_order_auth_amount()
S
73 1 5
Openpay::getOriginMerchant()
S
76 1 4
OpenpayApiResourceBase::_create()
S
69 1 6
OpenpayConsole::setLevel()
S
76 1 4
OpenpayCard::delete()
S
82 1 3
Openpay_Cards::getMsi()
S
76 1 3
OpenpayPlan::save()
S
81 1 3
OpenpayApiConnector::__construct()
S
81 1 3
Openpay_Cards::get_order_auth_remaining()
S
72 1 5
Openpay::getUserAgent()
S
76 1 4
Openpay_Cards::openpay_cards_admin_enqueue()
S
77 1 3
OpenpayApiError::getErrorCode()
S
82 1 3
OpenpayApiDerivedResource::add()
S
69 1 6
OpenpaySubscription::delete()
S
82 1 3
Openpay_Cards::validateCurrency()
S
79 1 3
OpenpayConsole::checkFlag()
S
79 1 3
OpenpayApi::getFullURL()
S
81 1 3
OpenpayApiResourceBase::isResource()
S
76 1 4
OpenpaySubscription::save()
S
81 1 3
OpenpayCustomer::delete()
S
82 1 3
OpenpayApi::getInstance()
S
76 1 4
openpay_cards_add_creditcard_gateway()
S
77 1 4
OpenpayPayoutList::create()
S
80 1 3
OpenpayConsole::trace()
S
79 1 3
OpenpayConsole::critical()
S
79 1 3
OpenpayBankAccount::delete()
S
82 1 3
OpenpayPseList::create()
S
80 1 3
OpenpayTransferList::create()
S
80 1 3
OpenpayApiError::getCategory()
S
82 1 3
Openpay_Cards::admin_options()
S
81 1 3
order_confirmation_text_remove()
S
83 1 3
Openpay::getCountry()
S
76 1 4
OpenpayFeeList::create()
S
80 1 3
OpenpayCustomer::save()
S
81 1 3
OpenpayApiError::getHttpCode()
S
82 1 3
Openpay_Cards::getOriginMerchant()
S
76 1 4
OpenpayApiError::getRequestId()
S
82 1 3
OpenpayApi::getMerchantInfo()
S
80 1 3
OpenpayApiError::getFraudRules()
S
82 1 3
OpenpayCapture::getResourceUrlName()
S
80 1 3
OpenpayApi::getResourceUrlName()
S
82 1 3
OpenpayCard::get()
S
80 1 3
OpenpayApiResourceBase::_getAttributes()
S
71 1 5
OpenpayWebhook::save()
S
81 1 3
OpenpayApiError::getDescription()
S
82 1 3
OpenpaySubscriptionList::create()
S
80 1 3
OpenpayCharge::update()
S
80 1 3
OpenpayApiResourceBase::getSerializeParameters()
S
77 1 4
OpenpayConsole::__construct()
S
77 1 4
Openpay::__construct()
S
91 1 2
OpenpayToken::get()
S
80 1 3
OpenpayConsole::error()
S
79 1 3
OpenpayConsole::debug()
S
79 1 3
OpenpayConsole::info()
S
79 1 3
OpenpayPlan::delete()
S
82 1 3
OpenpayWebhook::delete()
S
82 1 3