MailChimp_WooCommerce_MailChimpApi D

Total Complexity 350
Dependencies 18
Dependents 10
Total lines 2,271
Lines of code 1,216
Logical lines of code 766
Comment lines 693
Methods 103
Properties 5

Methods 103

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