MailChimp_WooCommerce_MailChimpApi D

Total Complexity 282
Dependencies 17
Dependents 9
Total lines 1,894
Lines of code 986
Logical lines of code 630
Comment lines 596
Methods 87
Properties 5

Methods 87

Method Rating Maintainability Complexity Lines of code
processCurlResponse()
B
43 17 42
subscribe()
A
47 8 36
update()
A
48 8 34
updateStoreOrder()
A
49 8 28
updateOrCreate()
A
48 7 35
getStore()
A
55 8 19
getCampaign()
S
52 7 22
getLists()
S
55 7 20
addCart()
S
54 7 19
updateCart()
S
54 7 19
stores()
S
55 7 18
checkForErrors()
S
56 7 16
addStoreOrder()
S
53 6 21
getGDPRFields()
S
62 5 11
getPromoRules()
S
56 4 17
getPromoCodesForRule()
S
56 4 17
updateMemberTags()
S
57 4 15
addStoreProduct()
S
57 4 15
updateStoreProduct()
S
57 4 15
getStoreProduct()
S
60 4 13
getStoreOrder()
S
60 4 13
updateCustomer()
S
60 4 13
getCustomer()
S
60 4 13
addPromoRule()
S
61 4 12
addPromoCodeForRule()
S
60 4 12
applyCurlOptions()
S
51 3 26
ping()
S
63 4 11
createEmptyLineItemProductPlaceholder()
S
52 3 25
url()
S
63 4 10
validateStoreCustomer()
S
68 4 7
getPromoRuleIds()
S
58 3 14
flagStoreSync()
S
60 3 12
getCachedGDPRFields()
S
61 3 12
updateStore()
S
62 3 11
deleteStore()
S
62 3 11
addStore()
S
62 3 11
getCart()
S
62 3 11
addCustomer()
S
62 3 11
connectSite()
S
65 3 9
deleteCartByID()
S
65 3 9
handleProductsMissingFromAPI()
S
63 3 10
checkConnectedSite()
S
66 3 9
updatePromoRule()
S
64 3 9
deletePromoRule()
S
65 3 8
updatePromoCodeForRule()
S
64 3 9
deletePromoCodeForRule()
S
65 3 9
validateStoreSubmission()
S
67 3 8
getInterestGroupOptions()
S
68 3 7
getTransactionalCount()
S
70 2 6
getPromoCodeForRule()
S
66 2 8
validateStoreOrder()
S
71 2 6
setApiKey()
S
66 2 8
getSubscribedCount()
S
70 2 6
__construct()
S
74 2 5
getUnsubscribedCount()
S
70 2 6
deleteStoreProduct()
S
68 2 7
mergeFields()
S
67 2 7
deleteStoreOrderLine()
S
68 2 7
deleteStoreOrder()
S
68 2 7
getOrderCount()
S
68 2 7
hasList()
S
69 2 7
getList()
S
68 2 7
orders()
S
63 2 10
deleteCustomer()
S
68 2 7
getInterestGroups()
S
69 2 7
getListsWithMergeFields()
S
68 2 7
put()
S
62 1 11
post()
S
62 1 11
patch()
S
62 1 11
delete()
S
70 1 6
setDataCenter()
S
77 1 4
get()
S
70 1 6
getProfile()
S
80 1 3
setVersion()
S
77 1 4
createList()
S
79 1 3
getAuthorizedApps()
S
80 1 3
constructInstance()
S
79 1 3
carts()
S
66 1 8
products()
S
66 1 8
getAuthorizedAppDetails()
S
79 1 3
linkAuthorizedApp()
S
77 1 3
member()
S
73 1 4
members()
S
79 1 3
deleteList()
S
79 1 3
deleteMember()
S
73 1 4
updateList()
S
78 1 3
getInstance()
S
81 1 3