Code Analysis: Integración de Webpay Plus de Transbank para WooCommerce 20.12.28

Function Rating Maintainability Complexity Lines of code
XMLSecurityKey::__construct()
C
34 30 95
Transbank\WooCommerce\Webpay\Controllers\ThanksPageController::show()
C
33 28 79
XMLSecEnc::staticLocateKeyInfo()
B
36 22 72
canonical()
B
38 20 71
XMLSecurityDSig::addRefInternal()
B
38 20 66
XMLSecurityDSig::processTransforms()
B
39 18 63
WSSESoap::signSoapDoc()
B
38 18 61
WSSESoap::addEncryptedKey()
A
38 14 66
Transbank\WooCommerce\Webpay\Controllers\ResponseController::completeWooCommerceOrder()
A
31 7 144
XMLSecEnc::encryptNode()
A
40 12 58
woocommerce_transbank_init()
A
26
2 204
WSSESoap::decryptSoapDoc()
A
41 12 52
XMLSecurityDSig::processRefNode()
A
44 12 42
XMLSecurityKey::loadKey()
A
46 11 38
Transbank\WooCommerce\Webpay\Controllers\ResponseController::getTransactionDetails()
A
51 11 24
XMLSecEnc::decryptNode()
A
43 9 50
WSSESoap::locateSecurityHeader()
A
47 9 35
XMLSecurityDSig::canonicalizeData()
A
50 9 28
XMLSecurityKey::generateSessionKey()
A
52 9 23
XMLSecurityDSig::staticAdd509Cert()
A
47 8 36
XMLSecEnc::encryptKey()
A
47 8 31
XMLSecurityDSig::calculateDigest()
A
50 8 28
XMLSecurityDSig::setCanonicalMethod()
A
51 8 25
WSSESoap::EncryptBody()
A
52 8 24
SoapValidation::locateSecurityHeader()
A
53 8 23
XMLSecurityKey::makeAsnSegment()
S
53 7 22
ConfigProvider::getConfig()
S
55 7 20
WSSecuritySoapClient::__doRequest()
S
48 6 32
C14NGeneral()
S
57 7 15
SoapValidation::processSignature()
S
50 6 28
XMLSecurityDSig::staticGet509XCerts()
S
52 6 26
WebPayNormal::getTransactionResult()
S
52 6 25
XMLSecEnc::locateKey()
S
52 6 24
XMLSecurityDSig::locateKey()
S
53 6 23
SoapValidation::process()
S
54 6 23
XMLSecurityKey::getRawThumbprint()
S
53 6 22
WSSESoap::addUserToken()
S
50 5 28
XMLSecurityDSig::sign()
S
52 5 25
TransbankSdkWebpay::initTransaction()
S
53 5 22
WC_Gateway_Transbank::wc_transbank_message()
S
54 5 21
XMLSecurityDSig::validateReference()
S
55 5 20
WSSESoap::AddReference()
S
55 5 19
WSSESoap::attachTokentoSig()
S
51 4 25
XMLSecurityDSig::canonicalizeBody()
S
54 4 22
WebPayNormal::initTransaction()
S
47 3 37
WSSESoap::encryptSoapDoc()
S
53 4 22
XMLSecurityDSig::canonicalizeSignedInfo()
S
55 4 20
WC_Gateway_Transbank::__construct()
S
42 2 49
Transbank\WooCommerce\Webpay\Controllers\ResponseController::response()
S
55 4 18
XMLSecurityDSig::addObject()
S
57 4 17
XMLSecurityKey::encryptOpenSSL()
S
60 4 14
XMLSecurityKey::decryptOpenSSL()
S
60 4 14
TransbankSdkWebpay::__construct()
S
59 4 14
WSSESoap::addIssuerSerial()
S
50 3 27
XMLSecurityDSig::getRefNodeID()
S
63 4 11
XMLSecurityDSig::addReferenceList()
S
62 4 11
XMLSecEnc::encryptReferences()
S
56 3 19
WC_Gateway_Transbank::init_form_fields()
S
44 1 49
XMLSecurityDSig::locateSignature()
S
58 3 16
Transbank\WooCommerce\Webpay\Controllers\ResponseController::validateTransactionDetails()
S
69 4 6
XMLSecurityKey::encryptMcrypt()
S
57 3 15
TransbankSdkWebpay::commitTransaction()
S
59 3 15
XMLSecurityDSig::getRefIDs()
S
59 3 14
XMLSecEnc::locateEncryptedData()
S
60 3 14
WC_Gateway_Transbank::receipt_page()
S
49 2 29
XMLSecurityKey::verifyOpenSSL()
S
61 3 12
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::getByToken()
S
61 3 11
XMLSecurityKey::signOpenSSL()
S
62 3 11
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::getBySessionIdAndOrderId()
S
61 3 11
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::createTable()
S
54 2 25
SoapValidation::__construct()
S
57 2 17
transbank_rest_first_warning__warning()
S
61 2 16
XMLSecurityKey::decryptMcrypt()
S
57 2 16
XMLSecurityKey::convertRSA()
S
57 2 16
XMLSecurityDSig::addReference()
S
64 3 9
XMLSecurityKey::decryptData()
S
65 3 10
sortAndAddAttrs()
S
64 3 10
WebPayConfig::getModo()
S
68 3 7
XMLSecurityKey::encryptData()
S
65 3 10
XMLSecEnc::decryptKey()
S
65 3 9
XMLSecurityDSig::getXPathObj()
S
66 3 8
Transbank\WooCommerce\Webpay\Controllers\ResponseController::getTokenWs()
S
68 3 7
XMLSecEnc::addReference()
S
59 2 13
WSSESoap::addTimestamp()
S
60 2 12
XMLSecurityDSig::getSigValue()
S
62 2 11
Transbank\WooCommerce\Webpay\Controllers\ResponseController::setWooCommerceOrderAsFailed()
S
61 2 11
XMLSecurityDSig::verify()
S
62 2 11
WSSecuritySoapClient::__construct()
S
67 2 7
XMLSecurityDSig::get509XCert()
S
68 2 7
Transbank\WooCommerce\Webpay\Helpers\RedirectorHelper::getRedirectForm()
S
65 2 8
XMLSecurityDSig::add509Cert()
S
72 2 5
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::isUpgraded()
S
68 2 7
WC_Gateway_Transbank::is_valid_for_use()
S
68 2 7
WC_Gateway_Transbank::check_ipn_response()
S
66 2 9
XMLSecEnc::locateKeyInfo()
S
71 2 6
Transbank\WooCommerce\Webpay\Controllers\ResponseController::transactionIsApproved()
S
71 2 6
XMLSecurityKey::signData()
S
69 2 7
XMLSecurityKey::verifySignature()
S
68 2 7
WebPaySOAP::redirect()
S
63 2 10
XMLSecurityDSig::appendSignature()
S
75 2 4
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::createTableIfNeeded()
S
72 2 6
XMLSecurityDSig::insertSignature()
S
65 2 9
XMLSecurityDSig::createNewSignNode()
S
65 2 9
WebPayNormal::__construct()
S
61 1 12
XMLSecurityKey::getAlgorith()
S
80 1 3
WC_Gateway_Transbank::process_payment()
S
69 1 7
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::createTransaction()
S
76 1 4
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::getWebpayTransactionsTableName()
S
76 1 4
on_webpay_plugin_activation()
S
83 1 3
XMLSecurityDSig::appendKey()
S
81 1 3
Transbank\WooCommerce\Webpay\Controllers\ResponseController::throwError()
S
72 1 5
ConfigProvider::__construct()
S
81 1 3
XMLSecurityDSig::appendCert()
S
91 1 2
XMLSecurityDSig::compareDigest()
S
72 1 5
XMLSecurityDSig::getValidatedNodes()
S
82 1 3
woocommerce_add_transbank_gateway()
S
77 1 4
add_action_links()
S
70 1 6
XMLSecurityDSig::resetXPathObj()
S
81 1 3
getIssuerName()
S
66 1 8
XMLSecurityDSig::__construct()
S
73 1 5
getSerialNumber()
S
71 1 6
XMLSecurityKey::getX509Thumbprint()
S
82 1 3
WebPayNormal::_initTransaction()
S
77 1 4
XMLSecurityKey::getX509Certificate()
S
82 1 3
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::deleteTable()
S
68 1 7
Transbank\WooCommerce\Webpay\Controllers\ResponseController::__construct()
S
81 1 3
WSSESoap::save()
S
80 1 3
WebPaySOAP::__construct()
S
76 1 4
SoapValidation::getValidationResult()
S
83 1 3
WebPayConfig::getParam()
S
80 1 3
TransbankSdkWebpay::getWebPayCertDefault()
S
80 1 3
XMLSecurityDSig::signData()
S
80 1 3
WSSESoap::__construct()
S
63 1 10
pay_transbank_webpay_content()
S
100 1 2
WebPayConfig::__construct()
S
82 1 3
XMLSecurityKey::serializeKey()
S
91 1 2
WebPayNormal::_acknowledgeTransaction()
S
77 1 4
WebPayConfig::getParams()
S
82 1 3
Transbank\WooCommerce\Webpay\Controllers\ThanksPageController::__construct()
S
81 1 3
Transbank\WooCommerce\Webpay\Helpers\RedirectorHelper::redirect()
S
75 1 4
WSSESoap::addBinaryToken()
S
62 1 10
WebPayNormal::_getReason()
S
81 1 3
transbank_remove_database()
S
83 1 3
on_transbank_webpay_plugins_loaded()
S
83 1 3
XMLSecEnc::__construct()
S
82 1 3
XMLSecEnc::setNode()
S
81 1 3
XMLSecurityDSig::validateDigest()
S
63 1 10
XMLSecEnc::_resetTemplate()
S
76 1 4
XMLSecurityDSig::addEnvelopeNamespace()
S
78 1 3
Transbank\WooCommerce\Webpay\TransbankWebpayOrders::update()
S
71 1 5
XMLSecurityDSig::generate_GUID()
S
64 1 9
Transbank\WooCommerce\Webpay\Controllers\ResponseController::getWooCommerceOrderById()
S
76 1 4
WebPayNormal::_getTransactionResult()
S
77 1 4
WSSESoap::saveXML()
S
81 1 3
WebPayNormal::acknowledgeTransaction()
S
64 1 9