Code Analysis: Method payment module 3.1.1

Function Rating Maintainability Complexity Lines of code
init_woocommerce_paygine()
D
12
3 629
woocommerce_paygine::callback_notify()
B
38 17 67
woocommerce_paygine::process_admin_options()
A
48 11 29
woocommerce_paygine::init_form_fields()
A
29 1 167
woocommerce_paygine::process_complete()
A
44 9 41
woocommerce_paygine::process_refund()
A
46 9 37
B2P\Client::getPaymentMethods()
A
52 9 24
woocommerce_paygine::__construct()
A
41 7 51
B2P\Requests\AbstractRequest::setRequiredParams()
S
55 6 19
B2P\Models\Orders\Order::getInstance()
S
55 6 19
B2P\Requests\RequestsFactory::make()
S
54 6 19
B2P\Responses\Operations\AbstractOperation::checkSignature()
S
56 6 17
woocommerce_paygine::process_payment_registration()
S
48 5 30
B2P\Common\ConfigManager::setUrl()
S
59 6 13
woocommerce_paygine::calc_fiscal_position_shop_cart()
S
47 4 39
woocommerce_paygine::process_payment()
S
52 5 24
B2P\Models\Parameters\ParametersFactory::make()
S
46 4 35
B2P\Models\Parameters\ReasonCode::__construct()
S
57 5 18
B2P\Models\Parameters\Signature::implodeIterable()
S
63 6 9
B2P\Requests\AbstractRequest::getBody()
S
59 5 14
B2P\Responses\ResponsesFactory::make()
S
53 4 22
B2P\Responses\ResponsesFactory::parseResponse()
S
55 4 19
woocommerce_paygine::wc_paygine_order_payment_change()
S
73 5 4
B2P\Models\Orders\Order::getParameterValue()
S
65 5 8
B2P\Models\Orders\InstallmentsOrder::getInstance()
S
68 5 7
B2P\Models\Orders\InstallmentsOrder::getHoldAmount()
S
65 5 8
B2P\Models\Orders\LoanFBOrder::getInstance()
S
68 5 7
B2P\Models\Orders\LoanFBOrder::isPaid()
S
64 5 9
B2P\Models\Orders\LoanVDAOrder::getInstance()
S
68 5 7
B2P\Models\Orders\LoanVDAOrder::isPaid()
S
64 5 9
B2P\Client::oneStepPayment()
S
62 5 10
B2P\Responses\AbstractResponse::getParameterValue()
S
65 5 8
B2P\Models\Parameters\Type::__construct()
S
59 4 14
B2P\Models\Parameters\Currency::__construct()
S
59 4 14
B2P\Models\Parameters\OperationState::__construct()
S
60 4 14
B2P\Models\Parameters\OrderState::__construct()
S
60 4 14
woocommerce_paygine::process_payment_payform()
S
60 4 12
B2P\Responses\Order::__set()
S
62 4 11
B2P\Responses\ResponsesFactory::signatureIsCorrect()
S
62 4 11
woocommerce_paygine::generate_image_html()
S
47 2 39
B2P\Requests\AbstractClientRequest::getPayLink()
S
57 3 15
woocommerce_paygine::isNotifyRequest()
S
65 4 9
B2P\Requests\AbstractRequest::generateParamsIndex()
S
63 4 10
woocommerce_paygine::payment_fields()
S
72 4 4
B2P\Models\Orders\Order::isPaid()
S
71 4 5
woocommerce_paygine::getClient()
S
64 4 9
B2P\Models\Parameters\Signature::__construct()
S
63 4 10
B2P\Models\Parameters\Language::__construct()
S
63 3 12
woocommerce_paygine::wc_order_item_add_complete_button()
S
63 3 9
B2P\Models\Parameters\Signature::make()
S
70 3 5
B2P\Requests\AbstractRequest::checkParams()
S
66 3 7
B2P\Requests\AbstractRequest::__get()
S
77 3 3
B2P\Models\Orders\Order::__construct()
S
62 3 10
B2P\Models\Orders\Order::buildInstance()
S
69 3 6
B2P\Responses\AbstractResponse::__get()
S
77 3 3
B2P\Models\Parameters\Amount::__construct()
S
66 3 8
B2P\Models\Parameters\AbstractParameter::__call()
S
69 3 6
B2P\Services\AmountService::centifyAmount()
S
70 3 5
B2P\Models\Parameters\Id::__construct()
S
66 3 8
B2P\Models\Parameters\InProgress::__construct()
S
67 3 8
B2P\Models\Parameters\LifePeriod::__construct()
S
66 3 8
B2P\Models\Parameters\Sector::__construct()
S
66 3 8
B2P\Client::__construct()
S
63 2 11
B2P\Requests\AbstractRequest::setParam()
S
63 2 11
B2P\Models\Orders\Order::isCanceled()
S
78 2 3
B2P\Models\Parameters\Signature::isEqualsTo()
S
74 2 4
B2P\Models\Parameters\Url::__construct()
S
69 2 7
B2P\Models\Orders\LoanFBOrder::canHandle()
S
78 2 3
B2P\Requests\AbstractRequest::__construct()
S
67 2 8
B2P\Responses\AbstractResponse::checkProperty()
S
65 2 9
B2P\Models\Orders\Order::isAuthorized()
S
78 2 3
B2P\Models\Orders\LoanVDAOrder::canHandle()
S
78 2 3
B2P\Requests\AbstractRequest::getParam()
S
68 2 7
woocommerce_paygine::get_currency()
S
72 2 5
B2P\Models\Orders\Order::__get()
S
78 2 3
B2P\Responses\AbstractResponse::__set()
S
71 2 6
B2P\Client::handleResponse()
S
64 2 9
B2P\Common\ConfigManager::getInstance()
S
70 2 7
B2P\Models\Parameters\ApprovalCode::__construct()
S
67 2 8
B2P\Common\ConfigManager::getUrl()
S
80 2 3
B2P\Models\Parameters\Date::__construct()
S
68 2 7
B2P\Models\Parameters\Description::__construct()
S
69 2 7
B2P\Models\Parameters\Email::__construct()
S
69 2 7
B2P\Models\Parameters\FiscalPositions::__construct()
S
68 2 7
B2P\Models\Parameters\Message::__construct()
S
69 2 7
B2P\Client::getPaymentLink()
S
68 2 6
B2P\Models\Parameters\Name::__construct()
S
69 2 7
B2P\Models\Parameters\ShopCart::__construct()
S
69 2 7
B2P\Models\Parameters\Reference::__construct()
S
67 2 8
B2P\Models\Parameters\Mode::__construct()
S
67 2 8
B2P\Models\Parameters\Nonspecific::__construct()
S
69 2 7
B2P\Common\Exceptions\AbstractTestException::__construct()
S
65 2 8
B2P\Models\Parameters\Pan::__construct()
S
69 2 7
B2P\Models\Orders\InstallmentsOrder::canHandle()
S
78 2 3
B2P\Models\Parameters\Phone::__construct()
S
67 2 8
B2P\Models\Orders\LoanFBOrder::complete()
S
67 1 8
B2P\Common\ConfigManager::setSHA256()
S
77 1 4
B2P\Requests\AbstractRequest::getHeaders()
S
82 1 3
B2P\Models\Orders\LoanFBOrder::reverse()
S
80 1 3
B2P\Models\Orders\Order::setNext()
S
80 1 3
B2P\Client::podeliPWI()
S
79 1 3
B2P\Models\Orders\LoanVDAOrder::complete()
S
67 1 8
B2P\Client::purchaseSBP()
S
79 1 3
B2P\Requests\Purchase::getSignature()
S
78 1 3
B2P\Common\ConfigManager::setSector()
S
76 1 4
B2P\Requests\PurchaseWithInstallment::getSignature()
S
78 1 3
B2P\Requests\Authorize::getSignature()
S
78 1 3
B2P\Requests\PodeliPWI::getSignature()
S
78 1 3
B2P\Client::reverse()
S
72 1 5
B2P\Client::ping()
S
75 1 4
woocommerce_paygine::admin_options()
S
69 1 7
B2P\Client::centifyAmount()
S
80 1 3
B2P\Responses\Authorize::getSignature()
S
78 1 3
B2P\Responses\AbstractResponse::setParam()
S
77 1 4
B2P\Client::operation()
S
72 1 5
B2P\Requests\AuthorizeWithInstallment::__construct()
S
75 1 4
B2P\Models\Orders\Order::complete()
S
67 1 8
B2P\Requests\Register::getHeaders()
S
82 1 3
B2P\Requests\AbstractRequest::getSignature()
S
100 1 0
B2P\Requests\AbstractClientRequest::getSignature()
S
100 1 0
B2P\Models\Orders\InstallmentsOrder::__construct()
S
76 1 4
B2P\Models\Parameters\Currency::__toString()
S
81 1 3
B2P\Responses\AbstractResponse::getParams()
S
80 1 3
B2P\Models\Parameters\Date::__toString()
S
80 1 3
B2P\Common\ConfigManager::getPass()
S
82 1 3
B2P\Client::authorizeWithInstallment()
S
79 1 3
B2P\Common\ConfigManager::getSector()
S
82 1 3
B2P\Models\Parameters\OrderState::__toString()
S
82 1 3
B2P\Attributes\RequestParam::__construct()
S
98 1 1
B2P\Responses\AbstractResponse::__toString()
S
65 1 9
B2P\Models\Parameters\AbstractParameter::__toString()
S
81 1 3
B2P\Common\ConfigManager::isTestMode()
S
82 1 3
B2P\Client::register()
S
72 1 5
B2P\Models\Parameters\AbstractParameter::getValue()
S
82 1 3
B2P\Models\Orders\LoanFBOrder::__construct()
S
76 1 4
B2P\Client::complete()
S
69 1 6
B2P\Attributes\ResponseParam::__construct()
S
98 1 1
B2P\Requests\Ping::getSignature()
S
79 1 3
B2P\Requests\Loan::getSignature()
S
72 1 5
B2P\Requests\Reverse::getHeaders()
S
82 1 3
B2P\Client::sendRequest()
S
73 1 5
B2P\Models\Parameters\OperationState::__toString()
S
82 1 3
B2P\Responses\AbstractResponse::getParam()
S
82 1 3
B2P\Models\Parameters\Type::__toString()
S
82 1 3
B2P\Requests\Complete::getSignature()
S
77 1 3
B2P\Common\ConfigManager::isSHAseted()
S
80 1 3
B2P\Models\Orders\InstallmentsOrder::complete()
S
67 1 8
B2P\Requests\Register::getSignature()
S
78 1 3
B2P\Requests\Operation::getSignature()
S
78 1 3
B2P\Models\Orders\LoanVDAOrder::__construct()
S
76 1 4
B2P\Attributes\PaymentMethodName::__construct()
S
98 1 1
B2P\Client::purchaseWithInstallment()
S
79 1 3
B2P\Models\Orders\InstallmentsOrder::getActualAmount()
S
80 1 3
B2P\Models\Parameters\Language::__toString()
S
81 1 3
B2P\Client::purchase()
S
79 1 3
B2P\Client::order()
S
72 1 5
B2P\Requests\Order::getSignature()
S
78 1 3
B2P\Models\Parameters\ReasonCode::__toString()
S
81 1 3
B2P\Client\HttpClient::request()
S
80 1 3
B2P\Client::loan()
S
79 1 3
B2P\Common\ConfigManager::setTestMode()
S
77 1 4
B2P\Models\Orders\LoanVDAOrder::reverse()
S
80 1 3
B2P\Models\Orders\Order::getOperation()
S
79 1 3
B2P\Models\Orders\Order::reverse()
S
67 1 8
B2P\Requests\PurchaseWithInstallment::__construct()
S
75 1 4
B2P\Requests\PurchaseSBP::getSignature()
S
78 1 3
B2P\Models\Orders\Order::getState()
S
82 1 3
B2P\Responses\AbstractResponse::__construct()
S
81 1 3
B2P\Models\Orders\Order::getOperations()
S
80 1 3
B2P\Client::authorize()
S
79 1 3
B2P\Client::getConfigManager()
S
80 1 3
B2P\Common\ConfigManager::__construct()
S
91 1 2
B2P\Models\Orders\Order::getActualAmount()
S
82 1 3
B2P\Models\Orders\Order::canHandle()
S
82 1 3
B2P\Models\Enums\CurrencyCode::cases()
S
75 1 4
B2P\Requests\AuthorizeWithInstallment::getSignature()
S
78 1 3
B2P\Client\HttpClient::__construct()
S
91 1 2
B2P\Common\ConfigManager::setPass()
S
77 1 4
B2P\Requests\Reverse::getSignature()
S
77 1 3
add_paygine_gateway()
S
77 1 4
woocommerce_paygine::skvb_widget()
S
77 1 4