MM_WPFS_Utils D

Total Complexity 231
Dependencies 17
Dependents 72
Total lines 1,151
Lines of code 730
Logical lines of code 358
Comment lines 246
Methods 88
Properties 0

Methods 88

Method Rating Maintainability Complexity Lines of code
getFormEditUrl()
A
49 17 29
getDonationPaymentStatus()
A
52 13 24
getPaymentStatus()
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
getPaymentObjectType()
S
61 6 12
determineCustomerName()
S
61 5 13
getFeeRecoveryData()
S
53 4 23
calculateGrossFromNet()
S
53 4 22
parse_amount()
S
59 4 15
getSortedFormPlans()
S
59 4 14
escape()
S
62 4 12
isConnectedToApiTest()
S
68 4 6
decodeFormNonce()
S
67 4 7
hasFeeRecovery()
S
63 3 11
getMaximumPlanQuantityOfSubscription()
S
68 3 7
getMinimumPlanQuantityOfSubscription()
S
68 3 7
prepareStripeCardSavedDescription()
S
64 3 9
decodeJsonArray()
S
64 3 10
calculateBillingCycleAnchorFromTimestamp()
S
58 2 15
prepareStripeDonationDescription()
S
64 3 9
getEncryptionKey()
S
63 3 10
hasToCapturePaymentIntentByFormModel()
S
64 3 10
prepareStripeChargeDescription()
S
64 3 9
logException()
S
63 3 10
generateFormElementId()
S
64 3 10
prepare_stripe_shipping_hash()
S
62 3 10
decodeCustomFieldLabels()
S
68 3 7
isConnected()
S
78 3 3
generateReturnValueFromBindings()
S
59 1 17
isCheckoutSubscriptionFormType()
S
78 2 3
isCheckoutDonationFormType()
S
78 2 3
isCheckoutSaveCardFormType()
S
78 2 3
getMode()
S
78 2 3
boolToString()
S
79 2 3
isCheckoutPaymentFormType()
S
78 2 3
getStripePlanLookup()
S
69 2 7
prepareStripeShippingHashFromArray()
S
62 1 12
getPaymentStatuses()
S
65 1 11
createFormEditUrl()
S
63 1 11
encrypt()
S
63 1 11
generateFormNonce()
S
66 1 8
isConnectedToTest()
S
72 1 5
isLiveMode()
S
72 1 5
decrypt()
S
66 1 7
calculateTrialEndFromNow()
S
72 1 5
calculateBillingCycleAnchorFromNow()
S
78 1 3
isConnectedToLive()
S
72 1 5
formatTimeStamp()
S
70 1 6
formatTimestampWithWordpressDateFormat()
S
71 1 6
formatTimestampWithWordpressDateTimeFormat()
S
70 1 6
truncateString()
S
78 1 3
isTestMode()
S
72 1 5
extractFirstTierPricingFromPlan()
S
79 1 3
getDefaultSubscriptionButtonTitle()
S
76 1 4
getSubscriptionStatuses()
S
69 1 8
getDefaultTermsOfUseLabel()
S
72 1 5
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
getDefaultDonationDescription()
S
76 1 4
getDefaultTermsOfUseNotCheckedErrorMessage()
S
76 1 4
getDefaultFeeRecoveryMessage()
S
81 1 3
getDefaultCouponInvalidErrorMessage()
S
76 1 4
getDefaultCouponDoesNotApplyToErrorMessage()
S
76 1 4
getDefaultInvalidCouponCurrencyErrorMessage()
S
76 1 4
getDefaultPaymentButtonTitle()
S
76 1 4
getDefaultSaveCardButtonTitle()
S
76 1 4
getDefaultPaymentOpenButtonTitle()
S
76 1 4
generateCSSFormID()
S
80 1 3
getDefaultSubscriptionOpenButtonTitle()
S
76 1 4
getDefaultDonationButtonTitle()
S
76 1 4
getDefaultDonationOpenButtonTitle()
S
76 1 4
getDefaultProductDescription()
S
79 1 3
getDefaultDonationProductDescription()
S
79 1 3
getFeeRecoveryMessagePlaceholder()
S
76 1 4
calculateRecoveryFee()
S
73 1 4