MM_WPFS_Admin D

Total Complexity 457
Dependencies 43
Dependents 7
Total lines 3,535
Lines of code 2,678
Logical lines of code 1,318
Comment lines 456
Methods 104
Properties 5

Methods 104

Method Rating Maintainability Complexity Lines of code
getPaymentMethodStyleForPayment()
B
35 17 101
gatherSubscriptionDetails()
B
36 18 72
gatherDonationDetails()
B
36 18 71
gatherPaymentDetails()
B
37 17 67
gatherSavedCardDetails()
B
40 17 56
voidOrRefundPayment()
A
44 13 45
createStripeConnectAccount()
A
40 10 67
captureChargeAndPaymentIntent()
A
43 11 50
getSubscriptionIntervalLabel()
A
43 10 56
formatIntervalLabelAdmin()
A
46 9 42
voidOrRefundDonation()
A
48 9 36
previewForm()
A
48 8 37
toggleLicense()
A
47 8 34
getPaymentStatusLabel()
A
51 8 28
cancelSubscription()
A
44 6 46
cancelDonation()
S
45 6 44
cloneForm()
S
45 6 41
addStripeAccount()
S
55 7 17
clearStripeSettings()
S
48 6 31
refundPayment()
S
46 5 40
capturePayment()
S
46 5 40
deleteSavedCard()
S
46 5 40
deleteDonation()
S
46 5 40
deletePayment()
S
46 5 40
deleteSubscription()
S
46 5 40
refundDonation()
S
46 5 40
saveFormsOptions()
S
47 5 38
saveFormsAppearance()
S
47 5 38
saveEmailTemplates()
S
47 5 38
saveEmailOptions()
S
47 5 38
saveCheckoutPaymentForm()
S
48 5 34
saveInlineSaveCardForm()
S
48 5 34
saveInlinePaymentForm()
S
48 5 34
saveCheckoutSubscriptionForm()
S
48 5 34
saveCheckoutDonationForm()
S
48 5 34
saveInlineSubscriptionForm()
S
48 5 34
saveCheckoutSaveCardForm()
S
48 5 34
saveInlineDonationForm()
S
48 5 34
saveLogs()
S
48 5 33
saveWordpressDashboard()
S
48 5 33
saveMyAccount()
S
48 5 33
saveSecurity()
S
48 5 33
saveStripeAccount()
S
48 5 33
createForm()
S
48 5 33
maybeRedirect()
S
59 6 14
getSubscriberStatusLabel()
S
56 5 19
deleteForm()
S
49 4 29
triggerWebhook()
S
51 4 27
enqueue_inline_script()
S
47 1 72
sendTestEmail()
S
50 4 27
emptyLogs()
S
51 4 27
wpfp_config_notice()
S
46 2 51
getSubscriptionAmountLabel()
S
57 4 18
hooks()
S
40 1 62
getDonationStatusLabel()
S
58 4 16
saveEmailOptionsSettings()
S
58 4 16
getDonationDetails()
S
53 3 24
getPaymentDetails()
S
53 3 24
getSubscriptionDetails()
S
53 3 24
getSavedCardDetails()
S
53 3 24
getRecurringProductsForSelector()
S
54 3 21
adminBarNoticeCSS()
S
61 3 18
wpfp_coupon_notice()
S
58 3 17
adminBarNotice()
S
58 3 16
decodeCustomFieldsJSON()
S
64 4 10
getRecurringProducts()
S
57 2 18
getOnetimeProducts()
S
57 2 18
getTaxRatesForSelector()
S
56 2 18
getTaxRates()
S
57 2 18
wpfp_dismiss_notice()
S
65 3 8
isSupportedRecurringPrice()
S
66 3 9
updateFormEmailTemplates()
S
64 3 9
getOnetimeProductsForSelector()
S
60 2 13
getApiModeIntegerFromString()
S
78 2 3
getApiModeLabelFromInteger()
S
72 2 5
getApiModeLabelFromString()
S
72 2 5
getLocalizedApiMode()
S
72 2 5
buildStripeBaseUrlStatic()
S
69 2 7
getSubscriberStatusLabelByForm()
S
68 2 7
activate()
S
73 2 5
__construct()
S
60 1 14
saveMyAccountSettings()
S
63 1 11
fullstripe_handle_wpfs_event()
S
83 1 3
translateLabelAdmin()
S
79 1 3
saveStripeSettings()
S
65 1 9
updateInlineSaveCardFormEmailTemplates()
S
75 1 4
updateInlineDonationFormEmailTemplates()
S
75 1 4
buildStripePaymentUrl()
S
72 1 5
buildStripeSubscriptionUrl()
S
72 1 5
buildStripeBaseUrl()
S
80 1 3
buildStripeProductsUrlStatic()
S
73 1 5
saveWordpressDashboardSettings()
S
67 1 8
saveLogSettings()
S
69 1 7
updateCheckoutDonationFormEmailTemplates()
S
75 1 4
saveSecuritySettings()
S
65 1 9
buildStripeCustomerUrl()
S
72 1 5
updateCheckoutSubscriptionFormEmailTemplates()
S
75 1 4
updateInlineSubscriptionFormEmailTemplates()
S
75 1 4
updateCheckoutPaymentFormEmailTemplates()
S
75 1 4
saveEmailTemplatesSettings()
S
79 1 3
updateInlinePaymentFormEmailTemplates()
S
75 1 4
saveFormsOptionsSettings()
S
71 1 6
updateCheckoutSaveCardFormEmailTemplates()
S
75 1 4
saveFormsAppearanceSettings()
S
80 1 3