MailChimp_WooCommerce_MailChimpApi D

Total Complexity 395
Dependencies 18
Dependents 9
Total lines 2,701
Lines of code 1,473
Logical lines of code 861
Comment lines 938
Methods 119
Properties 7

Methods 119

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