MM_WPFS_Database D

Total Complexity 213
Dependencies 5
Dependents 36
Total lines 3,165
Lines of code 1,987
Logical lines of code 668
Comment lines 696
Methods 150
Properties 0

Methods 150

Method Rating Maintainability Complexity Lines of code
fullstripe_setup_db()
D
20
1 582
insertCheckoutDonation()
B
38 19 58
insertInlineDonation()
B
38 19 57
insertOrUpdatePayment()
A
37 7 71
insertSubscriber()
S
42 5 50
find_existing_stripe_customer_by_email()
S
57 5 15
getExistingStripeCustomersByEmail()
S
62 5 9
insertSavedCard()
S
46 1 37
insertCheckoutFormSubmit()
S
55 2 19
find_popup_form_submits()
S
57 2 19
insertCustomerPortalSession()
S
57 2 16
get_customer_id_from_payments()
S
64 3 9
getTruncatedDescriptionFromPaymentIntent()
S
73 3 4
insert_security_code()
S
59 2 14
getInlinePaymentFormsForList()
S
56 1 22
getCheckoutPaymentFormsForList()
S
56 1 22
getCheckoutSaveCardFormsForList()
S
56 1 22
getInlineSaveCardFormsForList()
S
56 1 22
getCheckoutDonationFormsForList()
S
57 1 20
getInlineDonationFormsForList()
S
57 1 20
getCheckoutSubscriptionFormsForList()
S
57 1 20
getInlineSubscriptionFormsForList()
S
57 1 20
insertLog()
S
57 1 17
updateCheckoutPaymentFormTaxDefaultSettings()
S
59 1 15
updateInlinePaymentFormTaxDefaultSettings()
S
59 1 15
handleDbError()
S
66 2 8
getFormIdsByName()
S
58 1 14
updateInlineDonationFormDefaultProduct()
S
60 1 14
getAllForms()
S
61 1 14
updateInlineSubscriptionFormSelectorListStyle()
S
60 1 14
updateCheckoutSubscriptionFormSelectorListStyle()
S
60 1 14
updateInlineSubscriptionFormTaxDefaultSettings()
S
61 1 12
updateSubscriptionByPaymentIntentToRunning()
S
62 1 12
updateSubscriptionBySetupIntentToRunning()
S
62 1 12
updateSubscriptionToRunning()
S
62 1 12
updateCheckoutSubscriptionFormTaxDefaultSettings()
S
61 1 12
getNumberOfOneTimePaymentForms()
S
62 1 12
getNumberOfSubscriptionForms()
S
62 1 12
getNumberOfDonationForms()
S
62 1 12
getNumberOfSaveCardForms()
S
62 1 12
findCustomerPortalSessionsByEmailAndCustomer()
S
64 1 11
update_popup_form_submits_with_status_by_id()
S
61 1 11
findLogs()
S
91 1 2
updateCustomerPortalSession()
S
69 1 6
updateSecurityCode()
S
69 1 6
find_security_code_by_session_and_code()
S
74 1 4
find_security_codes_by_session()
S
74 1 4
getSaveCardFormNames()
S
67 1 7
findCustomerPortalSessionsById()
S
71 1 5
findCustomerPortalSessionByHash()
S
71 1 5
getNumberOfLogEntries()
S
69 1 6
update_popup_form_submit_by_hash()
S
69 1 6
increment_security_code_request()
S
69 1 6
delete_popup_form_submits_by_id()
S
66 1 7
getSubscriptionFormNames()
S
67 1 7
getLogEntries()
S
68 1 6
findPopupFormSubmitByHash()
S
71 1 5
getDonationFormNames()
S
67 1 7
getDatabasePrefix()
S
77 1 4
incrementSecurityCodeInput()
S
69 1 6
invalidateCustomerPortalSessionsBySecurityCodeInputLimit()
S
69 1 6
invalidateExpiredCustomerPortalSessions()
S
69 1 6
getDonationByStripeSubscriptionId()
S
74 1 4
getNumberOfSubscriptions()
S
69 1 6
getNumberOfDonations()
S
69 1 6
getNumberOfSavedCards()
S
69 1 6
getResults()
S
70 1 6
runQuery()
S
70 1 6
getOneTimePaymentFormNames()
S
67 1 7
getDonationByPaymentIntentId()
S
74 1 4
getDonation()
S
74 1 4
invalidateCustomerPortalSessionsBySecurityCodeRequestLimit()
S
69 1 6
updatePaymentByEventId()
S
69 1 6
getPaymentByEventId()
S
74 1 4
getSavedCard()
S
74 1 4
getPayment()
S
74 1 4
deleteInvalidatedCustomerPortalSessions()
S
66 1 7
deleteSecurityCodesBySessions()
S
66 1 7
findInvalidatedCustomerPortalSessionIds()
S
71 1 5
getNumberOfOneTimePayments()
S
69 1 6
updateDonationByPaymentIntentId()
S
69 1 6
findSubscriberBySetupIntentId()
S
65 1 10
getSubscriptionByStripeSubscriptionId()
S
71 1 5
deleteInlineDonationForm()
S
69 1 6
updateSubscriberWithInvoiceAndEvent()
S
69 1 6
updateSubscriptionWithInvoice()
S
69 1 6
endSubscription()
S
69 1 6
updateSubscriptionPlanAndQuantityByStripeSubscriptionId()
S
68 1 6
updateSubscriptionPlanByStripeSubscriptionId()
S
69 1 6
cancelDonationByStripeSubscriptionId()
S
69 1 6
cancelSubscriptionByStripeSubscriptionId()
S
69 1 6
deleteSubscriptionById()
S
69 1 6
cancelDonationByDonationId()
S
69 1 6
cancelSubscription()
S
69 1 6
deleteCheckoutSubscriptionForm()
S
69 1 6
deleteCheckoutPaymentForm()
S
69 1 6
deleteInlineSubscriptionForm()
S
69 1 6
deleteCheckoutDonationForm()
S
69 1 6
deleteInlinePaymentForm()
S
69 1 6
updateSubscriberWithEvent()
S
69 1 6
updateCheckoutPaymentForm()
S
62 1 10
insert_checkout_form()
S
70 1 6
updateInlinePaymentForm()
S
69 1 6
updateCheckoutDonationForm()
S
65 1 8
updateInlineDonationForm()
S
69 1 6
insertCheckoutDonationForm()
S
70 1 6
insertInlineDonationForm()
S
70 1 6
insertCheckoutPaymentForm()
S
70 1 6
insertInlinePaymentForm()
S
70 1 6
updateCheckoutSubscriptionForm()
S
65 1 8
insertCheckoutSubscriptionForm()
S
69 1 6
updateInlineSubscriptionForm()
S
69 1 6
insertInlineSubscriptionForm()
S
69 1 6
updateSubscriber()
S
69 1 6
updateSubscriberWithPaymentAndEvent()
S
69 1 6
updatePopupFormSubmitWithEvent()
S
69 1 6
findSubscriberByPaymentIntentId()
S
65 1 10
getCheckoutPaymentFormById()
S
74 1 4
findSubscriberById()
S
71 1 5
get_site_ids()
S
74 1 4
getCheckoutDonationFormById()
S
74 1 4
getCheckoutDonationFormByName()
S
74 1 4
getCheckoutDonationFormAsArrayById()
S
74 1 4
getInlineDonationFormByName()
S
74 1 4
getInlineDonationFormById()
S
74 1 4
getCheckoutDonationFormsAsArray()
S
69 1 6
getInlineDonationFormsAsArray()
S
69 1 6
getInlineDonationFormAsArrayById()
S
74 1 4
getCheckoutSubscriptionFormsAsArray()
S
69 1 6
getCheckoutSubscriptionFormByName()
S
74 1 4
getCheckoutSaveCardFormsAsArray()
S
69 1 6
getCheckoutPaymentFormsAsArray()
S
69 1 6
getCheckoutPaymentFormAsArrayById()
S
74 1 4
updateSubscriptionPlanAndCounters()
S
68 1 6
getInlinePaymentFormByName()
S
74 1 4
deletePayment()
S
69 1 6
deleteDonation()
S
69 1 6
deleteSavedCard()
S
69 1 6
getInlineSaveCardFormsAsArray()
S
69 1 6
getInlinePaymentFormAsArrayById()
S
74 1 4
getInlinePaymentFormById()
S
74 1 4
getInlinePaymentFormsAsArray()
S
69 1 6
getCheckoutPaymentFormByName()
S
74 1 4
getInlineSubscriptionFormById()
S
74 1 4
getInlineSubscriptionFormAsArrayById()
S
74 1 4
getInlineSubscriptionFormByName()
S
74 1 4
getInlineSubscriptionFormsAsArray()
S
69 1 6
getCheckoutSubscriptionFormById()
S
74 1 4
getCheckoutSubscriptionFormAsArrayById()
S
74 1 4
deleteLogs()
S
72 1 5