MM_WPFS_Database D

Total Complexity 287
Dependencies 10
Dependents 38
Total lines 3,858
Lines of code 2,526
Logical lines of code 876
Comment lines 736
Methods 172
Properties 0

Methods 172

Method Rating Maintainability Complexity Lines of code
fullstripe_setup_db()
D
19
1 648
insertCheckoutDonation()
C
33 23 86
insertInlineDonation()
C
33 23 85
insertOrUpdatePayment()
A
33 12 98
insertSubscriber()
A
35 12 80
getPeriod()
A
46 8 42
getNumberOfPaymentsByMethod()
S
51 7 26
getRevenueAndSalesData()
S
47 4 34
find_existing_stripe_customer_by_email()
S
57 5 15
getExistingStripeCustomersByEmail()
S
62 5 9
getRefundsData()
S
49 3 29
getPaymentStatus()
S
66 4 9
getTotalActiveSubscriptions()
S
60 3 12
insertSavedCard()
S
46 1 37
find_popup_form_submits()
S
57 2 19
insertCheckoutFormSubmit()
S
55 2 19
getTotalRevenueAmount()
S
56 2 18
getAverageTransactionAmount()
S
56 2 18
getTotalNumberOfPayments()
S
57 2 17
getTotalDonationAmount()
S
57 2 16
insertCustomerPortalSession()
S
57 2 16
getAverageDonationAmount()
S
57 2 16
getTotalNumberOfDonations()
S
58 2 15
get_customer_id_from_payments()
S
64 3 9
getTruncatedDescriptionFromPaymentIntent()
S
73 3 4
insert_security_code()
S
59 2 14
getInlineSaveCardFormsForList()
S
56 1 22
getInlinePaymentFormsForList()
S
56 1 22
getCheckoutSaveCardFormsForList()
S
56 1 22
getCheckoutPaymentFormsForList()
S
56 1 22
getInlineSubscriptionFormsForList()
S
57 1 20
getCheckoutSubscriptionFormsForList()
S
57 1 20
getInlineDonationFormsForList()
S
57 1 20
getCheckoutDonationFormsForList()
S
57 1 20
getPayments()
S
56 1 18
getTopCustomers()
S
56 1 18
insertLog()
S
57 1 17
getDonations()
S
58 1 16
getTopDoners()
S
58 1 16
updateCheckoutPaymentFormTaxDefaultSettings()
S
59 1 15
handleDbError()
S
66 2 8
getTotalDonationsByFormId()
S
68 2 6
getMostUsedCurrency()
S
68 2 7
updateInlinePaymentFormTaxDefaultSettings()
S
59 1 15
getFormNameByReport()
S
64 2 9
getFormIdsByName()
S
58 1 14
updateInlineSubscriptionFormSelectorListStyle()
S
60 1 14
updateCheckoutSubscriptionFormSelectorListStyle()
S
60 1 14
updateInlineDonationFormDefaultProduct()
S
60 1 14
getAllForms()
S
61 1 14
updateSubscriptionBySetupIntentToRunning()
S
62 1 12
updateSubscriptionToRunning()
S
62 1 12
getNumberOfOneTimePaymentForms()
S
62 1 12
getNumberOfSubscriptionForms()
S
62 1 12
getNumberOfDonationForms()
S
62 1 12
updateInlineSubscriptionFormTaxDefaultSettings()
S
61 1 12
updateCheckoutSubscriptionFormTaxDefaultSettings()
S
61 1 12
updateSubscriptionByPaymentIntentToRunning()
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
getCheckoutPaymentFormsAsArray()
S
69 1 6
updateSubscriptionPlanByStripeSubscriptionId()
S
69 1 6
deleteSubscriptionById()
S
69 1 6
getDatabasePrefix()
S
77 1 4
getDonationFormNames()
S
67 1 7
getSubscriptionFormNames()
S
67 1 7
getSaveCardFormNames()
S
67 1 7
getOneTimePaymentFormNames()
S
67 1 7
runQuery()
S
70 1 6
getResults()
S
70 1 6
cancelSubscriptionByStripeSubscriptionId()
S
69 1 6
cancelDonationByStripeSubscriptionId()
S
69 1 6
getNumberOfSavedCards()
S
69 1 6
updateSubscriptionPlanAndQuantityByStripeSubscriptionId()
S
68 1 6
cancelSubscription()
S
69 1 6
getNumberOfDonations()
S
69 1 6
endSubscription()
S
69 1 6
getNumberOfSubscriptions()
S
69 1 6
updateSubscriptionWithInvoice()
S
69 1 6
getNumberOfOneTimePayments()
S
69 1 6
updateSubscriberWithInvoiceAndEvent()
S
69 1 6
findLogs()
S
91 1 2
updateSubscriberWithPaymentAndEvent()
S
69 1 6
updateSubscriberWithEvent()
S
69 1 6
updatePopupFormSubmitWithEvent()
S
69 1 6
updateSubscriptionPlanAndCounters()
S
68 1 6
cancelDonationByDonationId()
S
69 1 6
deleteCheckoutSubscriptionForm()
S
69 1 6
deleteDonation()
S
69 1 6
updateInlinePaymentForm()
S
69 1 6
updateSubscriber()
S
69 1 6
insertInlineSubscriptionForm()
S
69 1 6
updateInlineSubscriptionForm()
S
69 1 6
insertCheckoutSubscriptionForm()
S
69 1 6
updateCheckoutSubscriptionForm()
S
65 1 8
insertInlinePaymentForm()
S
70 1 6
insertCheckoutPaymentForm()
S
70 1 6
insertInlineDonationForm()
S
70 1 6
insertCheckoutDonationForm()
S
70 1 6
updateInlineDonationForm()
S
69 1 6
updateCheckoutDonationForm()
S
65 1 8
insert_checkout_form()
S
70 1 6
deleteCheckoutPaymentForm()
S
69 1 6
updateCheckoutPaymentForm()
S
62 1 10
deleteInlinePaymentForm()
S
69 1 6
deleteInlineDonationForm()
S
69 1 6
getReportByPaymentIntentID()
S
69 1 6
updateReport()
S
69 1 6
addReport()
S
69 1 6
deleteLogs()
S
72 1 5
getLogEntries()
S
68 1 6
getNumberOfLogEntries()
S
69 1 6
deleteCheckoutDonationForm()
S
69 1 6
deleteInlineSubscriptionForm()
S
69 1 6
deletePayment()
S
69 1 6
deleteSavedCard()
S
69 1 6
getCheckoutSaveCardFormsAsArray()
S
69 1 6
getCheckoutPaymentFormByName()
S
74 1 4
getInlineSubscriptionFormAsArrayById()
S
74 1 4
delete_popup_form_submits_by_id()
S
66 1 7
getInlineSubscriptionFormByName()
S
74 1 4
findPopupFormSubmitByHash()
S
71 1 5
getInlineSubscriptionFormsAsArray()
S
69 1 6
getCheckoutSubscriptionFormById()
S
74 1 4
getCheckoutSubscriptionFormAsArrayById()
S
74 1 4
getSubscriptionByStripeSubscriptionId()
S
71 1 5
findSubscriberBySetupIntentId()
S
65 1 10
findSubscriberByPaymentIntentId()
S
65 1 10
findSubscriberById()
S
71 1 5
getCheckoutPaymentFormAsArrayById()
S
74 1 4
updateCustomerPortalSession()
S
69 1 6
getCheckoutPaymentFormById()
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
update_popup_form_submit_by_hash()
S
69 1 6
get_site_ids()
S
74 1 4
getInlineSaveCardFormsAsArray()
S
69 1 6
deleteInvalidatedCustomerPortalSessions()
S
66 1 7
getInlinePaymentFormAsArrayById()
S
74 1 4
getInlinePaymentFormById()
S
74 1 4
getInlinePaymentFormByName()
S
74 1 4
updateDonationByPaymentIntentId()
S
69 1 6
getDonationByPaymentIntentId()
S
74 1 4
getDonationByStripeSubscriptionId()
S
74 1 4
getDonation()
S
74 1 4
updatePaymentByEventId()
S
69 1 6
getPaymentByEventId()
S
74 1 4
getSavedCard()
S
74 1 4
getPayment()
S
74 1 4
deleteSecurityCodesBySessions()
S
66 1 7
getInlineSubscriptionFormById()
S
74 1 4
findInvalidatedCustomerPortalSessionIds()
S
71 1 5
invalidateCustomerPortalSessionsBySecurityCodeInputLimit()
S
69 1 6
invalidateCustomerPortalSessionsBySecurityCodeRequestLimit()
S
69 1 6
invalidateExpiredCustomerPortalSessions()
S
69 1 6
increment_security_code_request()
S
69 1 6
incrementSecurityCodeInput()
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
getInlinePaymentFormsAsArray()
S
69 1 6
findCustomerPortalSessionsById()
S
71 1 5
findCustomerPortalSessionByHash()
S
71 1 5