MailChimp_Service D

Total Complexity 277
Dependencies 23
Dependents 10
Total lines 1,419
Lines of code 792
Logical lines of code 515
Comment lines 347
Methods 59
Properties 10

Methods 59

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