MailChimp_WooCommerce_MailChimpApi D

Total Complexity 378
Dependencies 18
Dependents 9
Total lines 2,600
Lines of code 1,423
Logical lines of code 824
Comment lines 910
Methods 114
Properties 5

Methods 114

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
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
updateStoreProductVariation()
S
53 5 22
addStoreProductVariation()
S
53 5 22
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
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
getStoreOrder()
S
58 4 15
getStoreProduct()
S
58 4 15
getCustomer()
S
58 4 15
validateStoreCustomer()
S
64 5 10
getStoreProductVariant()
S
58 4 15
validateNaughtyListEmail()
S
63 5 10
addPromoRule()
S
59 4 14
reportSpamToTower()
S
50 3 29
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
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
updatePromoRule()
S
62 3 11
getCart()
S
62 3 11
updatePromoCodeForRule()
S
62 3 11
addCustomer()
S
62 3 11
allowedToSubmitSpam()
S
62 3 11
deleteStore()
S
63 3 11
deletePromoCodeForRule()
S
65 3 9
getJourneys()
S
73 3 4
deletePromoRule()
S
65 3 8
validateStoreSubmission()
S
64 3 10
handleProductsMissingFromAPI()
S
63 3 10
getInterestGroupOptions()
S
70 3 6
deleteCartByID()
S
65 3 9
checkConnectedSite()
S
66 3 9
connectSite()
S
65 3 9
orders()
S
61 2 12
webHookSubscribe()
S
56 1 21
patch()
S
59 1 16
post()
S
59 1 16
put()
S
59 1 16
getPromoCodeForRule()
S
66 2 8
getWebHooks()
S
69 2 6
validateNaughtyListNames()
S
63 2 10
validateStoreOrder()
S
71 2 6
deleteCustomer()
S
68 2 7
deleteStoreProduct()
S
68 2 7
mergeFields()
S
67 2 7
__construct()
S
74 2 5
setApiKey()
S
66 2 8
applyPutRequestOnSubscriber()
S
64 2 9
getSubscribedCount()
S
70 2 6
deleteStoreProductVariation()
S
62 2 10
getTransactionalCount()
S
70 2 6
hasList()
S
69 2 7
getList()
S
68 2 7
getListsWithMergeFields()
S
68 2 7
getUnsubscribedCount()
S
70 2 6
getInterestGroups()
S
71 2 6
getProductCount()
S
68 2 7
getCustomerCount()
S
68 2 7
deleteStoreOrderLine()
S
68 2 7
getStoreIfAvailable()
S
69 2 7
deleteStoreOrder()
S
68 2 7
getOrderCount()
S
68 2 7
getAuthorizedAppDetails()
S
79 1 3
products()
S
64 1 10
setDataCenter()
S
77 1 4
setVersion()
S
77 1 4
getProfile()
S
80 1 3
getAuthorizedApps()
S
80 1 3
get()
S
70 1 6
delete()
S
70 1 6
getJourney()
S
79 1 3
members()
S
79 1 3
linkAuthorizedApp()
S
67 1 9
member()
S
73 1 4
activity()
S
73 1 4
deleteMember()
S
73 1 4
validateNaughtyList()
S
73 1 5
constructInstance()
S
79 1 3
deleteWebhookByID()
S
74 1 4
carts()
S
64 1 10
createList()
S
79 1 3
updateList()
S
78 1 3
deleteList()
S
79 1 3
getInstance()
S
81 1 3