MailChimp_Service D

Total Complexity 255
Dependencies 19
Dependents 8
Total lines 1,305
Lines of code 704
Logical lines of code 455
Comment lines 333
Methods 58
Properties 9

Methods 58

Method Rating Maintainability Complexity Lines of code
handleCartUpdated()
C
40 25 51
onOrderSave()
A
49 14 26
handleCampaignTracking()
A
48 11 31
set_user_by_email()
A
47 10 36
trackCart()
A
46 7 39
handlePostTrashed()
A
52 8 23
setLandingSiteCookie()
S
57 8 14
mailchimp_process_single_job()
S
51 7 24
handleUserRegistration()
S
57 7 15
onNewOrder()
S
53 6 24
handleUserUpdated()
S
56 6 18
handlePostRestored()
S
57 6 16
handleProcessProductMeta()
S
50 5 30
handleProductUpdated()
S
60 6 13
is_rest()
S
60 6 11
user_update_subscribe_status()
S
53 5 20
set_user_from_block_checkout()
S
55 5 19
getWooSession()
S
63 6 10
getCartItems()
S
59 5 13
handleOrderStatusChanged()
S
60 5 11
setCampaignTrackingID()
S
59 4 15
getCurrentUserEmail()
S
65 5 8
getCampaignTrackingID()
S
61 4 13
handleProductMetaUpdated()
S
60 4 12
getCart()
S
61 4 11
getReferer()
S
63 4 11
cookie()
S
69 4 6
handleProductCreated()
S
66 4 8
removeWooSession()
S
66 4 8
get_user_by_hash()
S
65 4 8
setWooSession()
S
66 4 8
handleCouponSaved()
S
70 3 6
expireLandingSiteCookie()
S
64 3 10
getPreviousEmailFromSession()
S
68 3 7
campaignIdMatchesFormat()
S
73 3 4
handleAPICouponTrashed()
S
63 3 9
get()
S
70 3 6
syncProducts()
S
68 3 7
getCookieDuration()
S
64 2 9
onPartiallyRefunded()
S
69 2 6
deleteCart()
S
65 2 8
handleOrderUpdate()
S
71 2 5
instance()
S
66 2 9
clearCartData()
S
73 2 5
handleOrderCreate()
S
74 2 4
getLandingSiteCookie()
S
69 2 7
syncOrders()
S
70 2 6
handleUserMetaUpdated()
S
72 2 5
handleOrderSaved()
S
68 2 7
handleNewCoupon()
S
79 1 3
onNewPayPalOrder()
S
81 1 3
handleCouponRestored()
S
79 1 3
wooIsRunning()
S
75 1 4
respondJSON()
S
74 1 5
addHttpRequestArgs()
S
82 1 3
mailchimp_process_sync_manager()
S
77 1 4
user_subscribed_profile()
S
76 1 4
getEmailFromSession()
S
79 1 3