Code Analysis: Newebpay Payment 1.0.8

Function Rating Maintainability Complexity Lines of code
WC_newebpay::order_received_text()
D
28
37 119
WC_newebpay::thankyou_page()
D
31 34 102
nwpElectronicInvoice::electronic_invoice()
C
25
20 186
WC_newebpay::receive_response()
B
36 15 80
nwpOthersAPI::credit_close_refund()
A
40 9 59
nwpElectronicInvoice::electronic_invoice_fields_update_order_meta()
A
45 9 40
WC_newebpay::get_newebpay_args()
S
43 6 45
nwpOthersAPI::check_order_status()
S
47 6 34
WC_newebpay::get_show_data()
S
52 6 25
WC_newebpay::__construct()
S
42 4 48
nwpElectronicInvoice::electronic_invoice_fields()
S
40 2 75
nwpOthersAPI::create_invoice_manual()
S
52 5 25
WC_newebpay::genetateItemDescByOrderItem()
S
57 5 17
nwpOthersAPI::__construct()
S
50 4 27
WC_newebpay::chkShaIsVaildByReturnData()
S
58 4 17
nwpOthersAPI::get_payment_type_str()
S
58 3 15
WC_newebpay::get_payment_type_str()
S
58 3 15
WC_newebpay::get_selected_payment()
S
64 4 9
WC_newebpay::admin_other_field()
S
59 3 15
nwpElectronicInvoice::getProductPriceByCategory()
S
61 3 13
WC_newebpay::validate_fields()
S
60 3 13
nwpElectronicInvoice::getShippingPriceByCategory()
S
62 3 13
nwpElectronicInvoice::chkOrderInvCategoryisValid()
S
67 3 9
nwpElectronicInvoice::chkProductInvCategoryisValid()
S
67 3 9
WC_newebpay::process_payment()
S
59 2 15
WC_newebpay::init_array_data()
S
63 3 10
nwpOthersAPI::query_trade_info()
S
51 1 28
WC_newebpay::generate_newebpay_form()
S
60 2 12
WC_newebpay::convert_payment()
S
53 1 23
nwpOthersAPI::curl_()
S
53 1 23
encProcess::decrypt_str_data()
S
66 2 8
encProcess::create_aes_decrypt()
S
64 2 9
WC_Newebpay_Payment::get_instance()
S
71 2 6
nwpElectronicInvoice::get_instance()
S
71 2 6
encProcess::strippadding()
S
63 2 10
encProcess::create_mpg_aes_encrypt()
S
65 2 8
encProcess::get_instance()
S
71 2 6
WC_Newebpay_Payment::init_gateways()
S
69 2 7
nwpElectronicInvoice::__construct()
S
59 1 14
WC_newebpay::admin_options()
S
60 1 13
WC_Newebpay_Payment::add_newebpay_gateway()
S
77 1 4
WC_Newebpay_Payment::init_modules()
S
71 1 6
WC_Newebpay_Payment::init()
S
82 1 3
encProcess::addpadding()
S
69 1 6
baseNwpMPG::base_action_init()
S
67 1 7
WC_newebpay::init_form_fields()
S
80 1 3
WC_newebpay::wcBlocksRegistry()
S
69 1 8
WC_Newebpay_Payment::__construct()
S
79 1 3
nwpElectronicInvoice::invoice_checkout()
S
69 1 7
encProcess::decrypt_json_data()
S
70 1 6
encProcess::aes_sha256_str()
S
77 1 3
WC_newebpay::receipt_page()
S
74 1 4
WC_newebpay::payment_fields()
S
81 1 3