WC_Razorpay D

Total Complexity 277
Dependencies 16
Dependents 13
Total lines 2,360
Lines of code 1,635
Logical lines of code 831
Comment lines 224
Methods 52
Properties 11

Methods 52

Method Rating Maintainability Complexity Lines of code
update1ccOrderWC()
C
30 22 126
autoEnableWebhook()
B
30 19 131
updateOrder()
B
36 21 76
check_razorpay_response()
B
33 19 105
pluginInstrumentation()
B
34 18 93
init_form_fields()
B
33 14 106
updateGiftAndCoupon()
B
37 16 71
orderArg1CC()
A
45 12 36
__construct()
A
44 10 49
createOrGetRazorpayOrderId()
A
45 9 44
getOrderCreationData()
A
47 9 33
updateRecoverCartInfo()
A
44 6 51
newUserAccount()
S
42 5 49
debitGiftCards()
S
49 6 30
verifyOrderAmount()
S
48 5 35
getRazorpayPaymentParams()
S
50 5 30
getErrorMessage()
S
52 5 25
createRazorpayOrderId()
S
47 4 37
processGiftCardRefund()
S
47 4 37
updateOrderAddress()
S
43 3 51
process_refund()
S
49 4 31
receipt_page()
S
61 5 11
hostCheckoutScripts()
S
52 4 22
add_notice()
S
56 4 20
process_payment()
S
50 3 31
generateOrderForm()
S
50 3 31
addAdminCheckoutSettingsAlert()
S
57 3 22
enqueueCheckoutScripts()
S
56 3 20
getVersionMetaInfo()
S
55 3 19
verifySignature()
S
54 2 22
initHooks()
S
55 2 20
getCustomerInfo()
S
56 2 19
webhookAPI()
S
58 2 17
generate_razorpay_form()
S
59 2 15
getDefaultCheckoutArguments()
S
54 1 22
getCustomOrdercreationMessage()
S
67 2 8
getOrderCurrency()
S
69 2 7
updateUserAddressInfo()
S
65 2 9
getOrderKey()
S
67 2 8
getOrderSessionKey()
S
67 2 8
handleErrorCase()
S
70 1 6
getWebhookUrl()
S
79 1 3
getShippingZone()
S
75 1 4
generateSecret()
S
72 1 5
getRedirectUrl()
S
66 1 8
admin_options()
S
65 1 9
get_description()
S
80 1 3
rzpThankYouMessage()
S
81 1 3
redirectUser()
S
74 1 5
getRazorpayApiInstance()
S
78 1 3
getCheckoutArguments()
S
70 1 6
getSetting()
S
80 1 3