Code Analysis: Midtrans-WooCommerce 2.32.0

Function Rating Maintainability Complexity Lines of code
WC_Gateway_Midtrans_Notif_Handler::handleMidtransNotificationRequest()
D
30 38 103
WC_Gateway_Midtrans_Abstract::getPaymentRequestData()
C
28
24 133
WC_Gateway_Midtrans_Notif_Handler::handleMidtransValidNotificationRequest()
B
38 22 62
Midtrans\ApiRequestor::remoteCall()
A
40 12 58
Midtrans\SnapApiRequestor::remoteCall()
A
41 10 55
WC_Gateway_Midtrans_InstallmentOff::process_payment()
A
42 10 49
WC_Gateway_Midtrans_Promo::process_payment()
A
42 9 48
WC_Gateway_Midtrans_Abstract::midtrans_refund()
A
44 9 42
WC_Gateway_Midtrans_Installment::process_payment()
A
44 9 41
WC_Gateway_Midtrans::process_payment_helper()
A
47 9 34
WC_Gateway_Midtrans_Subscription::process_payment()
A
46 8 37
WC_Gateway_Midtrans_Paymentrequest::process_payment()
A
46 8 35
WC_Gateway_Midtrans_Abstract::get_icon()
A
51 8 26
WC_Gateway_Midtrans_Notif_Handler::checkAndHandleWCSubscriptionTxnNotif()
A
52 8 22
WC_Midtrans_Logger::log()
S
51 7 23
Midtrans\Sanitizer::fieldCustomerDetails()
S
51 6 26
WC_Gateway_Midtrans_Abstract::refund()
S
51 6 25
midtrans_gateway_init()
S
45 4 43
Midtrans\Sanitizer::fieldBillingAddress()
S
51 5 27
WC_Gateway_Midtrans_Abstract::__construct()
S
45 4 39
wp_get_script_tag()
S
56 5 18
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_Notif_Handler::validateRefundNotif()
S
55 4 18
WC_Midtrans_API::fetchAndSetMidtransApiConfig()
S
58 4 14
WC_Midtrans_API::createSnapTransactionHandleDuplicate()
S
57 3 16
WC_Midtrans_API::get_server_key()
S
64 4 9
Midtrans\Sanitizer::fieldPhone()
S
60 3 13
midtrans_add_payment_gateway()
S
52 2 28
WC_Midtrans_Utils::polyfill_wp_get_script_tag()
S
54 2 22
WC_Gateway_Midtrans_Abstract_Sub::init_form_fields()
S
50 1 33
WC_Gateway_Midtrans_Notif_Handler::doEarlyAckResponse()
S
56 2 18
WC_Gateway_Midtrans_InstallmentOff::init_form_fields()
S
51 1 31
WC_Gateway_Midtrans_Abstract_Sub::getMainGatewayObject()
S
69 3 7
Midtrans\Sanitizer::jsonRequest()
S
64 3 9
WC_Midtrans_Utils::convert_country_code()
S
53 3 9
WC_Midtrans_API::get_environment()
S
65 3 9
Midtrans\Sanitizer::fieldItemDetails()
S
62 2 12
WC_Gateway_Midtrans_Abstract::init_form_fields()
S
62 2 11
WC_Gateway_Midtrans_Promo::init_form_fields()
S
54 1 24
WC_Gateway_Midtrans_Installment::init_form_fields()
S
54 1 24
WC_Gateway_Midtrans_Subscription::__construct()
S
53 1 23
WC_Gateway_Midtrans_Subscription::init_form_fields()
S
55 1 21
WC_Gateway_Midtrans_Paymentrequest::init_form_fields()
S
57 1 19
midtrans_handle_custom_query_var()
S
65 2 9
midtrans_handle_finish_url_page()
S
71 2 6
WC_Gateway_Midtrans_Abstract::getResponseTemplate()
S
64 2 10
WC_Gateway_Midtrans::init_form_fields()
S
58 1 15
Midtrans\Config::getBaseUrl()
S
76 2 4
Midtrans\Config::getSnapBaseUrl()
S
76 2 4
Midtrans\Notification::__get()
S
75 2 5
WC_Midtrans_Utils::array_insert()
S
64 2 9
WC_Midtrans_Utils::polyfill_wp_get_inline_script_tag()
S
64 2 10
Midtrans\Sanitizer::apply()
S
71 2 6
WC_Midtrans_Utils::check_and_restore_original_order_id()
S
65 2 9
WC_Midtrans_Utils::getOrderProperty()
S
66 2 8
WC_Gateway_Midtrans_Notif_Handler::checkAndRedirectUserToFinishUrl()
S
69 2 7
WC_Gateway_Midtrans_Notif_Handler::getPluginOptions()
S
65 2 9
WC_Gateway_Midtrans_Abstract::process_refund()
S
64 2 9
Midtrans\CoreApi::capture()
S
64 1 11
WC_Gateway_Midtrans_Installment::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Indomaret::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Abstract_Sub::getSettingsDescription()
S
100 1 0
WC_Gateway_Midtrans_InstallmentOff::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans::pluginTitle()
S
82 1 3
Midtrans\Sanitizer::maxLength()
S
70 1 6
Midtrans\Transaction::expire()
S
69 1 7
WC_Midtrans_API::createSnapTransaction()
S
71 1 5
Midtrans\Transaction::deny()
S
69 1 7
WC_Gateway_Midtrans_Paymentrequest::__construct()
S
66 1 8
WC_Gateway_Midtrans_Paymentrequest::admin_options()
S
67 1 10
WC_Midtrans_API::createRefund()
S
71 1 5
WC_Gateway_Midtrans_Abstract_Sub::process_payment()
S
69 1 7
WC_Gateway_Midtrans_Paymentrequest::receipt_page()
S
68 1 7
WC_Gateway_Midtrans_Paymentrequest::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Paymentrequest::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Paymentrequest::getSettingsDescription()
S
79 1 3
WC_Gateway_Midtrans_Paymentrequest::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Promo::__construct()
S
66 1 8
WC_Gateway_Midtrans_Promo::admin_options()
S
67 1 10
WC_Midtrans_API::setLogRequest()
S
78 1 3
WC_Gateway_Midtrans_Installment::__construct()
S
66 1 8
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::getSettingsDescription()
S
79 1 3
WC_Gateway_Midtrans_Promo::getDefaultDescription()
S
79 1 3
Midtrans\SnapApiRequestor::get()
S
78 1 3
WC_Gateway_Midtrans_Subscription::admin_options()
S
67 1 10
WC_Gateway_Midtrans_Installment::receipt_page()
S
73 1 5
WC_Gateway_Midtrans_Abstract::getDefaultTitle()
S
100 1 0
WC_Gateway_Midtrans_Subscription::receipt_page()
S
73 1 5
WC_Gateway_Midtrans_Installment::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Subscription::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Subscription::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Subscription::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Subscription::getSettingsDescription()
S
79 1 3
WC_Gateway_Midtrans::__construct()
S
64 1 9
WC_Gateway_Midtrans::admin_options()
S
67 1 10
WC_Gateway_Midtrans_InstallmentOff::__construct()
S
66 1 8
WC_Gateway_Midtrans::process_payment()
S
81 1 3
WC_Gateway_Midtrans_InstallmentOff::admin_options()
S
67 1 10
WC_Gateway_Midtrans::receipt_page()
S
73 1 5
WC_Gateway_Midtrans::set_sub_payment_method_id()
S
81 1 3
WC_Midtrans_API::set_server_key()
S
80 1 3
WC_Midtrans_API::set_environment()
S
80 1 3
WC_Midtrans_Utils::json_print_exception()
S
63 1 10
Midtrans\ApiRequestor::post()
S
78 1 3
Midtrans\Sanitizer::upperCamelize()
S
77 1 3
WC_Gateway_Midtrans_Abstract_Sub::__construct()
S
65 1 8
Midtrans\Sanitizer::__construct()
S
81 1 3
Midtrans\Sanitizer::whitelist()
S
70 1 6
Midtrans\Snap::getSnapToken()
S
80 1 3
Midtrans\Transaction::cancel()
S
69 1 7
WC_Gateway_Midtrans_Abstract_Sub::pluginTitle()
S
100 1 0
WC_Gateway_Midtrans_InstallmentOff::getSettingsDescription()
S
79 1 3
Midtrans\Transaction::refundDirect()
S
69 1 7
WC_Gateway_Midtrans_Sub_Akulaku::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_Akulaku::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_Akulaku::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_Akulaku::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Akulaku::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_Alfamart::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_Alfamart::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_Alfamart::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_Alfamart::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Alfamart::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_BCA_Klikpay::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_BCA_Klikpay::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_BCA_Klikpay::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_BCA_Klikpay::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_BCA_Klikpay::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_BCA_VA::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_BCA_VA::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_BCA_VA::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_BCA_VA::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_BCA_VA::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_BNI_VA::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_BNI_VA::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_BNI_VA::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_BNI_VA::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_BNI_VA::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_BRI_Epay::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_BRI_Epay::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_BRI_Epay::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_BRI_Epay::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_BRI_Epay::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_BRI_VA::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_BRI_VA::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_BRI_VA::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_BRI_VA::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_BRI_VA::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_Card::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_Card::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_Card::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_Card::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Card::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_CIMB_Clicks::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_CIMB_Clicks::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_CIMB_Clicks::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_CIMB_Clicks::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_CIMB_Clicks::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_Danamon_Online::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_Danamon_Online::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_Danamon_Online::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_Danamon_Online::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Danamon_Online::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_Echannel::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_Echannel::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_Echannel::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_Echannel::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Echannel::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_Gopay::__construct()
S
71 1 6
WC_Gateway_Midtrans_Sub_Gopay::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_Gopay::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_Gopay::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Gopay::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_InstallmentOff::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_InstallmentOff::getDefaultDescription()
S
78 1 3
WC_Gateway_Midtrans_Sub_Other_VA::getDefaultTitle()
S
79 1 3
Midtrans\ApiRequestor::get()
S
78 1 3
WC_Gateway_Midtrans_Sub_Permata_VA::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_Other_VA::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_Permata_VA::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_InstallmentOff::receipt_page()
S
72 1 5
WC_Gateway_Midtrans::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_Indomaret::pluginTitle()
S
82 1 3
WC_Gateway_Midtrans_Sub_Indomaret::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Shopeepay::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Indomaret::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_Indomaret::__construct()
S
71 1 6
WC_Gateway_Midtrans_Abstract_Sub::receipt_page()
S
73 1 5
WC_Gateway_Midtrans_Sub_Shopeepay::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_QRIS::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_Shopeepay::pluginTitle()
S
82 1 3
Midtrans\Notification::__construct()
S
72 1 5
WC_Gateway_Midtrans_Sub_Shopeepay::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Sub_QRIS::getSettingsDescription()
S
82 1 3
WC_Gateway_Midtrans_Installment::admin_options()
S
67 1 10
WC_Gateway_Midtrans_Abstract::midtrans_admin_scripts()
S
79 1 3
WC_Gateway_Midtrans_Sub_Permata_VA::getDefaultTitle()
S
79 1 3
Midtrans\Notification::getResponse()
S
82 1 3
WC_Gateway_Midtrans::getDefaultTitle()
S
79 1 3
WC_Gateway_Midtrans_Sub_QRIS::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_Shopeepay::__construct()
S
71 1 6
Midtrans\Transaction::approve()
S
69 1 7
Midtrans\Transaction::status()
S
69 1 7
WC_Gateway_Midtrans_Abstract::view_order_and_thankyou_page()
S
79 1 3
WC_Gateway_Midtrans_Sub_Permata_VA::getDefaultDescription()
S
79 1 3
midtrans_plugin_action_links()
S
66 1 8
WC_Gateway_Midtrans_Sub_Other_VA::pluginTitle()
S
82 1 3
WC_Midtrans_API::CancelTransaction()
S
71 1 5
WC_Gateway_Midtrans_Installment::getDefaultDescription()
S
78 1 3
wp_get_inline_script_tag()
S
70 1 6
WC_Gateway_Midtrans_Sub_Other_VA::__construct()
S
71 1 6
WC_Gateway_Midtrans_Abstract::get_main_notification_url()
S
78 1 3
WC_Gateway_Midtrans_Notif_Handler::__construct()
S
75 1 4
WC_Gateway_Midtrans_Sub_Permata_VA::__construct()
S
71 1 6
Midtrans\Sanitizer::fieldShippingAddress()
S
80 1 3
WC_Midtrans_Utils::generate_non_duplicate_order_id()
S
68 1 7
WC_Gateway_Midtrans_Abstract::setLogError()
S
78 1 3
WC_Midtrans_API::getStatusFromMidtransNotif()
S
75 1 4
WC_Gateway_Midtrans_Sub_Other_VA::getDefaultDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_QRIS::pluginTitle()
S
82 1 3
Midtrans\SnapApiRequestor::processStubed()
S
64 1 10
WC_Gateway_Midtrans_Abstract::getDefaultDescription()
S
100 1 0
Midtrans\SnapApiRequestor::post()
S
78 1 3
WC_Midtrans_API::fetchAndSetCurrentPluginOptions()
S
78 1 3
Midtrans\Transaction::refund()
S
69 1 7
WC_Gateway_Midtrans_Abstract_Sub::admin_options()
S
67 1 10
WC_Gateway_Midtrans_Installment::getSettingsDescription()
S
79 1 3
WC_Gateway_Midtrans_Sub_QRIS::__construct()
S
71 1 6
WC_Midtrans_API::createRecurringTransaction()
S
71 1 5
WC_Gateway_Midtrans::getSettingsDescription()
S
79 1 3
WC_Gateway_Midtrans_Abstract::set_finish_url_user_cookies()
S
73 1 5
Midtrans\ApiRequestor::processStubed()
S
64 1 10
WC_Midtrans_API::getMidtransStatus()
S
75 1 4