MM_WPFS_CustomerPortalService D

Total Complexity 397
Dependencies 28
Dependents 4
Total lines 2,423
Lines of code 1,573
Logical lines of code 933
Comment lines 329
Methods 94
Properties 4

Methods 94

Method Rating Maintainability Complexity Lines of code
renderShortCode()
D
27
39 134
handleSubscriptionUpdateRequest()
C
37 29 66
enqueueCardUpdateScript()
C
28
20 139
handleSessionRequest()
B
37 19 74
fetchDataIntoCustomerPortalModel()
B
40 19 58
handleCardUpdateRequest()
B
36 16 84
handleSelectAccountRequest()
A
43 11 48
handleSecurityCodeValidationRequest()
A
44 11 44
handleSubscriptionCancellationRequest()
A
46 11 35
updateModelWithCard()
A
48 10 33
createAndSendSecurityCodeAsEmail()
A
50 8 28
filterOutIncompleteSubscriptions()
A
56 8 19
handleResetSessionRequest()
S
52 7 23
addCacheControlHeader()
S
57 7 15
handleShowAccountSelectorRequest()
S
50 6 28
getSubscriptionFormPlans()
S
55 6 20
hooks()
S
40 1 91
toggleInvoiceView()
S
49 5 30
isDonationPlan()
S
58 6 15
validateSecurityCode()
S
58 6 15
handleSubscriptionsFetchRequest()
S
51 5 26
getTemplateToShowBySession()
S
61 5 13
isWordpressAuthenticationNeeded()
S
62 5 12
findValidSessionById()
S
62 5 12
validateSaaSSession()
S
62 5 12
findValidSessionByEmailAndCustomer()
S
61 5 12
checkSessionsAndCodes()
S
54 4 21
getNumberOfStripeCustomersByEmail()
S
63 5 10
getActiveStripeCustomersByEmail()
S
63 5 10
findAvailablePlansByForm()
S
59 4 14
buildManagedSubscriptionsArray()
S
60 4 12
validateWordpressSession()
S
63 4 11
prepareInvoiceProducts()
S
59 3 16
getOrderedPlansFromIds()
S
62 3 12
prepareSubscriptionsWithProducts()
S
63 3 11
fetchAccountDataIntoCustomerPortalModel()
S
54 2 21
securityCodeInputExhausted()
S
70 3 6
isWaitingForAccountSelection()
S
68 3 7
securityCodeRequestExhausted()
S
70 3 6
getCurrentCard()
S
66 3 9
isWaitingForConfirmation()
S
68 3 7
isInvalidatedSession()
S
68 3 7
isConfirmed()
S
68 3 7
prepareSubscriptions()
S
60 2 14
cancelSubscriptionInDatabase()
S
62 2 13
prepareInvoices()
S
61 2 13
getPriceAndIntervalLabelForPlans()
S
62 2 11
registerRESTAPIRoutes()
S
57 1 20
getSummaryLabelsForPlan()
S
59 1 20
createSessionCookie()
S
72 2 5
findSessionHashByRequest()
S
78 2 3
findSecurityCodeByRequest()
S
78 2 3
getDonationAmount()
S
67 2 8
getSessionByCookie()
S
67 2 8
determineCookieAction()
S
69 2 7
createSession()
S
62 2 10
scheduleSessionRemovalTask()
S
66 2 8
findSessionCookieValue()
S
78 2 3
getPriceAndIntervalLabelForPlan()
S
62 1 13
createCardUpdateSessionForWPUser()
S
72 1 5
invalidateSession()
S
75 1 4
activateSubscriptionInDatabase()
S
81 1 3
findCustomerPortalSessionByHash()
S
80 1 3
isAccountSelectionNeeded()
S
80 1 3
renderCardsAndSubscriptionsTable()
S
70 1 6
confirmSession()
S
74 1 4
getRESTAPINamespace()
S
79 1 3
getBaseRoute()
S
80 1 3
getItemRoute()
S
79 1 3
clearSessionRemovalTask()
S
75 1 4
onDeactivation()
S
80 1 3
onActivation()
S
80 1 3
deleteCardUpdateSessionCookie()
S
74 1 4
makeSessionWaitingForAccountSelection()
S
74 1 4
shouldDisplayInvoice()
S
80 1 3
renderSelectAccountForm()
S
70 1 6
setup()
S
64 1 9
incrementSecurityCodeInput()
S
81 1 3
isUnknownCard()
S
79 1 3
confirmCustomerPortalSessionWithSecurityCode()
S
67 1 8
isVisa()
S
79 1 3
renderEmailForm()
S
70 1 6
renderSecurityCodeForm()
S
70 1 6
renderInvalidSession()
S
70 1 6
isAmericanExpress()
S
79 1 3
isUnionPay()
S
79 1 3
isMasterCard()
S
79 1 3
isJCB()
S
79 1 3
generateSecurityCode()
S
79 1 3
isDiscover()
S
79 1 3
isDinersClub()
S
79 1 3
incrementSecurityCodeRequest()
S
81 1 3
isBrandOf()
S
71 1 5
__construct()
S
77 1 4