MM_WPFS_Utils D

Total Complexity 214
Dependencies 17
Dependents 65
Total lines 1,060
Lines of code 669
Logical lines of code 332
Comment lines 231
Methods 78
Properties 0

Methods 78

Method Rating Maintainability Complexity Lines of code
getFormEditUrl()
A
49 17 29
getPaymentStatus()
A
52 13 24
getDonationPaymentStatus()
A
52 13 24
getFormType()
A
50 10 32
getDonationStatus()
A
54 9 22
getFormId()
A
55 8 24
prepareAddressData()
S
60 8 12
prepare_stripe_address_hash()
S
53 7 24
getWordpressTimezone()
S
58 6 15
getPaymentObjectType()
S
61 6 12
determineCustomerName()
S
61 5 13
calculateGrossFromNet()
S
53 4 22
parse_amount()
S
59 4 15
getSortedFormPlans()
S
59 4 14
escape()
S
62 4 12
decodeFormNonce()
S
67 4 7
getMinimumPlanQuantityOfSubscription()
S
68 3 7
logException()
S
63 3 10
getMaximumPlanQuantityOfSubscription()
S
68 3 7
decodeCustomFieldLabels()
S
68 3 7
prepareStripeCardSavedDescription()
S
64 3 9
getEncryptionKey()
S
63 3 10
generateFormElementId()
S
64 3 10
hasToCapturePaymentIntentByFormModel()
S
64 3 10
prepare_stripe_shipping_hash()
S
62 3 10
calculateBillingCycleAnchorFromTimestamp()
S
58 2 15
prepareStripeDonationDescription()
S
64 3 9
prepareStripeChargeDescription()
S
64 3 9
generateReturnValueFromBindings()
S
59 1 17
decodeJsonArray()
S
69 2 7
boolToString()
S
79 2 3
getStripePlanLookup()
S
69 2 7
isCheckoutPaymentFormType()
S
78 2 3
isCheckoutSaveCardFormType()
S
78 2 3
isCheckoutSubscriptionFormType()
S
78 2 3
isCheckoutDonationFormType()
S
78 2 3
prepareStripeShippingHashFromArray()
S
62 1 12
getPaymentStatuses()
S
65 1 11
encrypt()
S
63 1 11
createFormEditUrl()
S
63 1 11
decrypt()
S
66 1 7
formatTimestampWithWordpressDateFormat()
S
71 1 6
generateFormNonce()
S
66 1 8
formatTimestampWithWordpressDateTimeFormat()
S
70 1 6
calculateTrialEndFromNow()
S
72 1 5
isFreemiusLicensing()
S
76 1 4
calculateBillingCycleAnchorFromNow()
S
78 1 3
formatTimeStamp()
S
70 1 6
truncateString()
S
78 1 3
getSubscriptionStatuses()
S
69 1 8
extractFirstTierPricingFromPlan()
S
79 1 3
getDefaultDonationProductDescription()
S
79 1 3
getDefaultDonationDescription()
S
76 1 4
isDemoMode()
S
80 1 3
isInlinePaymentFormType()
S
80 1 3
isInlineSaveCardFormType()
S
80 1 3
isInlineSubscriptionFormType()
S
80 1 3
isInlineDonationFormType()
S
80 1 3
generateFormHash()
S
73 1 4
prepareStripeBillingAddressHashFromArray()
S
65 1 10
log()
S
79 1 3
getCancelSubscriptionsAtPeriodEnd()
S
79 1 3
getDefaultPaymentStripeDescription()
S
76 1 4
getDefaultSaveCardDescription()
S
76 1 4
getDefaultTermsOfUseLabel()
S
72 1 5
getDefaultProductDescription()
S
79 1 3
getDefaultTermsOfUseNotCheckedErrorMessage()
S
76 1 4
getDefaultCouponInvalidErrorMessage()
S
76 1 4
generateCSSFormID()
S
80 1 3
getDefaultInvalidCouponCurrencyErrorMessage()
S
76 1 4
getDefaultPaymentButtonTitle()
S
76 1 4
getDefaultSaveCardButtonTitle()
S
76 1 4
getDefaultPaymentOpenButtonTitle()
S
76 1 4
getDefaultSubscriptionButtonTitle()
S
76 1 4
getDefaultSubscriptionOpenButtonTitle()
S
76 1 4
getDefaultDonationButtonTitle()
S
76 1 4
getDefaultDonationOpenButtonTitle()
S
76 1 4
getDefaultCouponDoesNotApplyToErrorMessage()
S
76 1 4