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
addCart()
S
52 7 24
getCampaign()
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
hasWebhook()
S
62 6 10
cleanListSubmission()
S
60 5 15
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
getNaughtyList()
S
57 4 16
updateCustomer()
S
57 4 16
getCustomer()
S
58 4 15
getStoreProduct()
S
58 4 15
getStoreProductVariant()
S
58 4 15
validateNaughtyListEmail()
S
63 5 10
getStoreOrder()
S
58 4 15
validateStoreCustomer()
S
64 5 10
addPromoCodeForRule()
S
59 4 14
reportSpamToTower()
S
50 3 29
addPromoRule()
S
59 4 14
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
addCustomer()
S
62 3 11
deleteStore()
S
63 3 11
updatePromoCodeForRule()
S
62 3 11
allowedToSubmitSpam()
S
62 3 11
updatePromoRule()
S
62 3 11
getCart()
S
62 3 11
handleProductsMissingFromAPI()
S
63 3 10
deletePromoRule()
S
65 3 8
validateStoreSubmission()
S
64 3 10
getJourneys()
S
73 3 4
deletePromoCodeForRule()
S
65 3 9
deleteCartByID()
S
65 3 9
connectSite()
S
65 3 9
checkConnectedSite()
S
66 3 9
getInterestGroupOptions()
S
70 3 6
orders()
S
61 2 12
webHookSubscribe()
S
56 1 21
applyPutRequestOnSubscriber()
S
64 2 9
getUnsubscribedCount()
S
70 2 6
getPromoCodeForRule()
S
66 2 8
getPendingCount()
S
70 2 6
getTransactionalCount()
S
70 2 6
deleteCustomer()
S
68 2 7
getSubscribedCount()
S
70 2 6
getList()
S
68 2 7
validateStoreOrder()
S
71 2 6
getWebHooks()
S
69 2 6
setApiKey()
S
66 2 8
validateNaughtyListNames()
S
63 2 10
getHeadersForPostOrPut()
S
65 2 10
hasList()
S
69 2 7
getCustomerCount()
S
68 2 7
deleteStoreProductVariation()
S
62 2 10
deleteStoreOrder()
S
68 2 7
getListsWithMergeFields()
S
68 2 7
getProductCount()
S
68 2 7
deleteStoreOrderLine()
S
68 2 7
getOrderCount()
S
68 2 7
getInterestGroups()
S
71 2 6
mergeFields()
S
67 2 7
deleteStoreProduct()
S
68 2 7
__construct()
S
74 2 5
getStoreIfAvailable()
S
69 2 7
put()
S
61 1 13
post()
S
61 1 13
patch()
S
61 1 13
setDataCenter()
S
77 1 4
getJourney()
S
79 1 3
useAutoDoi()
S
76 1 4
delete()
S
70 1 6
get()
S
70 1 6
allowingCustomerPuts()
S
76 1 4
getProfile()
S
80 1 3
setVersion()
S
77 1 4
constructInstance()
S
79 1 3
getAccountInfo()
S
80 1 3
getAuthorizedApps()
S
80 1 3
validateNaughtyList()
S
73 1 5
getAuthorizedAppDetails()
S
79 1 3
deleteWebhookByID()
S
74 1 4
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
products()
S
64 1 10
carts()
S
64 1 10
getInstance()
S
81 1 3