Code Analysis: Midtrans-WooCommerce 2.19.0

Function Rating Maintainability Complexity Lines of code
WC_Gateway_Midtrans_Notif_Handler::handleMidtransNotificationRequest()
D
32 36 88
WC_Gateway_Midtrans_Abstract::getPaymentRequestData()
C
29 23 124
WC_Gateway_Midtrans_Notif_Handler::handleMidtransValidNotificationRequest()
B
40 18 51
Midtrans\ApiRequestor::remoteCall()
A
40 12 58
Midtrans\SnapApiRequestor::remoteCall()
A
41 10 55
WC_Gateway_Midtrans_InstallmentOff::process_payment()
A
42 10 48
WC_Gateway_Midtrans_Promo::process_payment()
A
43 9 47
WC_Gateway_Midtrans_Abstract::midtrans_refund()
A
44 9 41
WC_Gateway_Midtrans_Installment::process_payment()
A
45 9 40
WC_Gateway_Midtrans_Subscription::process_payment()
A
46 8 37
WC_Gateway_Midtrans_Paymentrequest::process_payment()
A
47 8 34
WC_Gateway_Midtrans_Notif_Handler::handlePendingPaymentPdfUrlUpdate()
A
49 8 28
WC_Gateway_Midtrans_Notif_Handler::checkAndHandleWCSubscriptionTxnNotif()
A
53 8 20
WC_Gateway_Midtrans::process_payment()
S
49 7 29
WC_Midtrans_Logger::log()
S
51 7 23
Midtrans\Sanitizer::fieldCustomerDetails()
S
51 6 26
Midtrans\Sanitizer::fieldBillingAddress()
S
51 5 27
WC_Gateway_Midtrans_Abstract::__construct()
S
45 4 38
WC_Gateway_Midtrans_Subscription::scheduled_subscription_payment()
S
48 4 33
Midtrans\Snap::createTransaction()
S
53 4 24
Midtrans\CoreApi::charge()
S
54 4 22
WC_Gateway_Midtrans_Abstract::refund()
S
54 4 19
WC_Gateway_Midtrans_Notif_Handler::validateRefundNotif()
S
57 4 16
midtrans_gateway_init()
S
53 3 21
WC_Midtrans_API::get_server_key()
S
64 4 9
Midtrans\Sanitizer::fieldPhone()
S
60 3 13
WC_Gateway_Midtrans_Notif_Handler::doEarlyAckResponse()
S
56 2 18
WC_Gateway_Midtrans_InstallmentOff::init_form_fields()
S
51 1 31
WC_Midtrans_API::get_environment()
S
65 3 9
WC_Midtrans_Utils::convert_country_code()
S
53 3 9
Midtrans\Sanitizer::jsonRequest()
S
64 3 9
Midtrans\Sanitizer::fieldItemDetails()
S
62 2 12
WC_Gateway_Midtrans_Abstract::init_form_fields()
S
62 2 11
WC_Gateway_Midtrans_Subscription::__construct()
S
52 1 24
WC_Gateway_Midtrans_Installment::init_form_fields()
S
54 1 24
WC_Gateway_Midtrans_Promo::init_form_fields()
S
54 1 24
WC_Gateway_Midtrans_Subscription::init_form_fields()
S
55 1 21
WC_Gateway_Midtrans_Paymentrequest::init_form_fields()
S
57 1 19
midtrans_handle_finish_url_page()
S
71 2 6
midtrans_handle_custom_query_var()
S
65 2 9
WC_Gateway_Midtrans_Abstract::process_refund()
S
64 2 9
WC_Midtrans_API::fetchAndSetMidtransApiConfig()
S
69 2 6
WC_Gateway_Midtrans_Abstract::getResponseTemplate()
S
64 2 10
WC_Midtrans_Utils::getOrderProperty()
S
66 2 8
WC_Midtrans_Utils::array_insert()
S
64 2 9
add_midtrans_payment_gateway()
S
65 2 9
Midtrans\Config::getBaseUrl()
S
76 2 4
Midtrans\Config::getSnapBaseUrl()
S
76 2 4
Midtrans\Notification::__get()
S
75 2 5
Midtrans\Sanitizer::apply()
S
71 2 6
WC_Gateway_Midtrans::init_form_fields()
S
60 1 13
Midtrans\CoreApi::capture()
S
64 1 11
WC_Gateway_Midtrans_Paymentrequest::receipt_page()
S
68 1 7
Midtrans\Sanitizer::__construct()
S
81 1 3
WC_Gateway_Midtrans_Paymentrequest::admin_options()
S
67 1 10
WC_Gateway_Midtrans_Installment::__construct()
S
65 1 8
Midtrans\SnapApiRequestor::processStubed()
S
64 1 10
Midtrans\SnapApiRequestor::post()
S
78 1 3
WC_Gateway_Midtrans_Paymentrequest::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Installment::admin_options()
S
67 1 10
WC_Midtrans_API::set_environment()
S
80 1 3
WC_Gateway_Midtrans_Paymentrequest::getDefaultDescription()
S
79 1 3
Midtrans\Transaction::expire()
S
69 1 7
WC_Gateway_Midtrans_Promo::admin_options()
S
67 1 10
WC_Gateway_Midtrans_Installment::receipt_page()
S
73 1 5
WC_Midtrans_API::fetchAndSetCurrentPluginOptions()
S
78 1 3
WC_Gateway_Midtrans_Promo::receipt_page()
S
73 1 5
WC_Gateway_Midtrans_Promo::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Promo::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Promo::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Installment::getDefaultDescription()
S
78 1 3
WC_Gateway_Midtrans_Subscription::admin_options()
S
67 1 10
WC_Gateway_Midtrans_InstallmentOff::__construct()
S
65 1 8
Midtrans\SnapApiRequestor::get()
S
78 1 3
WC_Gateway_Midtrans_Subscription::receipt_page()
S
73 1 5
WC_Gateway_Midtrans_InstallmentOff::admin_options()
S
67 1 10
WC_Gateway_Midtrans_Subscription::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Subscription::getDefaultTitle()
S
79 1 3
WC_Midtrans_API::getMidtransStatus()
S
75 1 4
Midtrans\Transaction::refundDirect()
S
69 1 7
WC_Gateway_Midtrans_InstallmentOff::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Subscription::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Notif_Handler::__construct()
S
75 1 4
WC_Gateway_Midtrans_Installment::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans::getSettingsDescription()
S
79 1 3
Midtrans\Notification::getResponse()
S
82 1 3
Midtrans\Sanitizer::whitelist()
S
70 1 6
WC_Gateway_Midtrans_Abstract::getDefaultDescription()
S
100 1 0
WC_Midtrans_API::createSnapTransaction()
S
71 1 5
Midtrans\Transaction::cancel()
S
69 1 7
WC_Gateway_Midtrans_Paymentrequest::__construct()
S
63 1 9
WC_Midtrans_API::set_server_key()
S
80 1 3
WC_Gateway_Midtrans::receipt_page()
S
73 1 5
WC_Gateway_Midtrans_Abstract::midtrans_admin_scripts()
S
78 1 3
Midtrans\Notification::__construct()
S
72 1 5
Midtrans\ApiRequestor::processStubed()
S
64 1 10
Midtrans\Transaction::status()
S
69 1 7
WC_Midtrans_API::setLogRequest()
S
78 1 3
WC_Gateway_Midtrans_Paymentrequest::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans::__construct()
S
62 1 10
Midtrans\Snap::getSnapToken()
S
80 1 3
WC_Gateway_Midtrans_Subscription::getSettingsDescription()
S
79 1 3
Midtrans\ApiRequestor::post()
S
78 1 3
WC_Gateway_Midtrans_Promo::__construct()
S
65 1 8
WC_Gateway_Midtrans_InstallmentOff::getDefaultDescription()
S
78 1 3
WC_Gateway_Midtrans::admin_options()
S
67 1 10
WC_Gateway_Midtrans_InstallmentOff::receipt_page()
S
72 1 5
Midtrans\Transaction::deny()
S
69 1 7
midtrans_plugin_action_links()
S
66 1 8
WC_Gateway_Midtrans::getDefaultTitle()
S
79 1 3
WC_Midtrans_API::getMidtransNotif()
S
75 1 4
Midtrans\Transaction::refund()
S
69 1 7
WC_Midtrans_API::CancelTransaction()
S
71 1 5
WC_Gateway_Midtrans::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Abstract::setLogError()
S
78 1 3
Midtrans\Sanitizer::upperCamelize()
S
77 1 3
Midtrans\Transaction::approve()
S
69 1 7
WC_Gateway_Midtrans_InstallmentOff::getDefaultTitle()
S
79 1 3
Midtrans\ApiRequestor::get()
S
78 1 3
Midtrans\Sanitizer::fieldShippingAddress()
S
80 1 3
WC_Gateway_Midtrans_Paymentrequest::getSettingsDescription()
S
79 1 3
WC_Gateway_Midtrans_Installment::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Abstract::view_order_and_thankyou_page()
S
79 1 3
WC_Midtrans_API::createRecurringTransaction()
S
71 1 5
Midtrans\Sanitizer::maxLength()
S
70 1 6
WC_Gateway_Midtrans_Abstract::getDefaultTitle()
S
100 1 0
WC_Midtrans_API::createRefund()
S
71 1 5
WC_Midtrans_Utils::json_print_exception()
S
63 1 10