MailChimp_WooCommerce_MailChimpApi D

Total Complexity 394
Dependencies 18
Dependents 9
Total lines 2,691
Lines of code 1,470
Logical lines of code 860
Comment lines 932
Methods 118
Properties 7

Methods 118

Method Rating Maintainability Complexity Lines of code
processCurlResponse()
B
39 23 57
update()
A
41 13 51
updateOrCreate()
A
45 9 41
subscribe()
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
updateCart()
S
52 7 24
getCampaign()
S
52 7 24
getLists()
S
55 7 20
stores()
S
55 7 18
addStoreOrder()
S
52 6 23
applyCurlOptions()
S
48 5 33
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
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
updateStoreProduct()
S
56 4 17
addStoreProduct()
S
56 4 17
getNaughtyList()
S
57 4 16
updateCustomer()
S
57 4 16
getStoreOrder()
S
58 4 15
validateStoreCustomer()
S
64 5 10
getCustomer()
S
58 4 15
validateNaughtyListEmail()
S
63 5 10
getStoreProduct()
S
58 4 15
getStoreProductVariant()
S
58 4 15
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
updatePromoCodeForRule()
S
62 3 11
updatePromoRule()
S
62 3 11
deleteStore()
S
63 3 11
getCart()
S
62 3 11
addCustomer()
S
62 3 11
allowedToSubmitSpam()
S
62 3 11
deletePromoRule()
S
65 3 8
deleteCartByID()
S
65 3 9
handleProductsMissingFromAPI()
S
63 3 10
getJourneys()
S
73 3 4
connectSite()
S
65 3 9
checkConnectedSite()
S
66 3 9
deletePromoCodeForRule()
S
65 3 9
validateStoreSubmission()
S
64 3 10
getInterestGroupOptions()
S
70 3 6
orders()
S
61 2 12
webHookSubscribe()
S
56 1 21
validateNaughtyListNames()
S
63 2 10
getPromoCodeForRule()
S
66 2 8
validateStoreOrder()
S
71 2 6
getWebHooks()
S
69 2 6
deleteStoreProduct()
S
68 2 7
deleteStoreProductVariation()
S
62 2 10
deleteStoreOrder()
S
68 2 7
setApiKey()
S
66 2 8
getTransactionalCount()
S
70 2 6
hasList()
S
69 2 7
getList()
S
68 2 7
__construct()
S
74 2 5
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
getPendingCount()
S
70 2 6
getUnsubscribedCount()
S
70 2 6
getSubscribedCount()
S
70 2 6
applyPutRequestOnSubscriber()
S
64 2 9
deleteCustomer()
S
68 2 7
getHeadersForPostOrPut()
S
65 2 10
deleteStoreOrderLine()
S
68 2 7
put()
S
61 1 13
post()
S
61 1 13
patch()
S
61 1 13
delete()
S
70 1 6
allowingCustomerPuts()
S
76 1 4
useAutoDoi()
S
76 1 4
get()
S
70 1 6
getJourney()
S
79 1 3
updateList()
S
78 1 3
validateNaughtyList()
S
73 1 5
activity()
S
73 1 4
deleteList()
S
79 1 3
carts()
S
64 1 10
constructInstance()
S
79 1 3
deleteMember()
S
73 1 4
members()
S
79 1 3
products()
S
64 1 10
member()
S
73 1 4
setDataCenter()
S
77 1 4
linkAuthorizedApp()
S
67 1 9
getAuthorizedAppDetails()
S
79 1 3
createList()
S
79 1 3
getAuthorizedApps()
S
80 1 3
getProfile()
S
80 1 3
setVersion()
S
77 1 4
deleteWebhookByID()
S
74 1 4
getInstance()
S
81 1 3