MailChimp_WooCommerce_MailChimpApi D

Total Complexity 356
Dependencies 17
Dependents 8
Total lines 2,462
Lines of code 1,331
Logical lines of code 764
Comment lines 874
Methods 109
Properties 5

Methods 109

Method Rating Maintainability Complexity Lines of code
processCurlResponse()
B
40 22 54
update()
A
46 8 37
subscribe()
A
47 8 35
checkForErrors()
A
55 9 17
updateStoreOrder()
A
48 8 30
webHookDelete()
A
57 9 13
getStore()
A
53 8 23
updateOrCreate()
A
47 7 36
updateCart()
S
52 7 24
addCart()
S
52 7 24
getCampaign()
S
52 7 24
getLists()
S
55 7 20
stores()
S
55 7 18
addStoreOrder()
S
52 6 23
getCachedSubscriberStatusForAdminProfileView()
S
55 5 19
hasWebhook()
S
62 6 10
cleanListSubmission()
S
60 5 15
applyCurlOptions()
S
49 4 29
getAutomations()
S
60 5 13
getGDPRFields()
S
62 5 11
getPromoCodesForRule()
S
55 4 20
getPromoRules()
S
55 4 20
updateMemberTags()
S
55 4 19
updateStoreProduct()
S
56 4 17
addStoreProduct()
S
56 4 17
getNaughtyList()
S
57 4 16
getStoreProduct()
S
58 4 15
getStoreOrder()
S
58 4 15
updateCustomer()
S
58 4 15
getCustomer()
S
58 4 15
reportSpamToTower()
S
50 3 29
addPromoRule()
S
59 4 14
addPromoCodeForRule()
S
59 4 14
ping()
S
63 4 11
createEmptyLineItemProductPlaceholder()
S
52 3 25
getPromoRuleWithCodes()
S
55 3 20
getPromoRuleIds()
S
57 3 17
validateStoreCustomer()
S
68 4 7
url()
S
63 4 10
getCachedGDPRFields()
S
60 3 14
updateStore()
S
60 3 13
addStore()
S
61 3 13
flagStoreSync()
S
60 3 12
updatePromoRule()
S
62 3 11
updatePromoCodeForRule()
S
62 3 11
deleteStore()
S
63 3 11
allowedToSubmitSpam()
S
62 3 11
addCustomer()
S
62 3 11
getCart()
S
62 3 11
validateStoreSubmission()
S
64 3 10
deletePromoCodeForRule()
S
65 3 9
getJourneys()
S
73 3 4
handleProductsMissingFromAPI()
S
63 3 10
validateNaughtyListEmail()
S
67 3 7
deletePromoRule()
S
65 3 8
deleteCartByID()
S
65 3 9
checkConnectedSite()
S
66 3 9
connectSite()
S
65 3 9
getInterestGroupOptions()
S
70 3 6
orders()
S
61 2 12
webHookSubscribe()
S
56 1 21
put()
S
59 1 16
post()
S
59 1 16
patch()
S
59 1 16
deleteCustomer()
S
68 2 7
getTransactionalCount()
S
70 2 6
validateStoreOrder()
S
71 2 6
getSubscribedCount()
S
70 2 6
validateNaughtyListNames()
S
63 2 10
applyPutRequestOnSubscriber()
S
64 2 9
getWebHooks()
S
69 2 6
getList()
S
68 2 7
setApiKey()
S
66 2 8
__construct()
S
74 2 5
hasList()
S
69 2 7
getUnsubscribedCount()
S
70 2 6
getPromoCodeForRule()
S
66 2 8
deleteStoreProduct()
S
68 2 7
getStoreIfAvailable()
S
69 2 7
getProductCount()
S
68 2 7
getOrderCount()
S
68 2 7
getCustomerCount()
S
68 2 7
deleteStoreOrderLine()
S
68 2 7
getInterestGroups()
S
71 2 6
mergeFields()
S
67 2 7
getListsWithMergeFields()
S
68 2 7
deleteStoreOrder()
S
68 2 7
setDataCenter()
S
77 1 4
products()
S
64 1 10
carts()
S
64 1 10
get()
S
70 1 6
delete()
S
70 1 6
getJourney()
S
79 1 3
setVersion()
S
77 1 4
getProfile()
S
80 1 3
member()
S
73 1 4
getAuthorizedApps()
S
80 1 3
getAuthorizedAppDetails()
S
79 1 3
linkAuthorizedApp()
S
67 1 9
deleteList()
S
79 1 3
validateNaughtyList()
S
73 1 5
activity()
S
73 1 4
deleteWebhookByID()
S
74 1 4
members()
S
79 1 3
deleteMember()
S
73 1 4
constructInstance()
S
79 1 3
createList()
S
79 1 3
updateList()
S
78 1 3
getInstance()
S
81 1 3