MailChimp_Service D

Total Complexity 188
Dependencies 11
Dependents 3
Total lines 928
Lines of code 490
Logical lines of code 339
Comment lines 219
Methods 47
Properties 8

Methods 47

Method Rating Maintainability Complexity Lines of code
handleCartUpdated()
B
46 18 33
handleCampaignTracking()
A
49 10 28
onOrderSave()
A
55 10 16
handlePostTrashed()
A
52 8 23
handleUserRegistration()
S
59 8 13
set_user_by_email()
S
50 7 27
mailchimp_process_single_job()
S
51 6 24
onNewOrder()
S
55 6 21
handlePostRestored()
S
58 6 14
getWooSession()
S
63 6 10
setLandingSiteCookie()
S
57 5 14
getCartItems()
S
59 5 13
handlePostSaved()
S
61 5 11
handleOrderStatusChanged()
S
60 5 11
trackCart()
S
53 4 22
setCampaignTrackingID()
S
59 4 15
getCurrentUserEmail()
S
65 5 8
getCart()
S
61 4 11
setWooSession()
S
66 4 8
handleUserUpdated()
S
68 4 6
removeWooSession()
S
66 4 8
get_user_by_hash()
S
65 4 8
getReferer()
S
66 3 8
handleCouponSaved()
S
70 3 6
campaignIdMatchesFormat()
S
73 3 4
handleAPICouponTrashed()
S
63 3 9
getCampaignTrackingID()
S
64 3 10
getPreviousEmailFromSession()
S
68 3 7
get()
S
70 3 6
syncProducts()
S
68 3 7
cookie()
S
70 3 6
getCookieDuration()
S
64 2 9
deleteCart()
S
65 2 8
instance()
S
66 2 9
getLandingSiteCookie()
S
69 2 7
syncOrders()
S
70 2 6
clearCartData()
S
73 2 5
onPartiallyRefunded()
S
69 2 6
getEmailFromSession()
S
79 1 3
expireLandingSiteCookie()
S
72 1 5
wooIsRunning()
S
75 1 4
handleCouponRestored()
S
79 1 3
handleNewCoupon()
S
79 1 3
onNewPayPalOrder()
S
81 1 3
respondJSON()
S
74 1 5
addHttpRequestArgs()
S
82 1 3
mailchimp_process_sync_manager()
S
77 1 4