RetainfulAddToCartAddon D

Total Complexity 138
Dependencies 2
Dependents 0
Total lines 1,214
Lines of code 1,077
Logical lines of code 434
Comment lines 79
Methods 25
Properties 0

Methods 25

Method Rating Maintainability Complexity Lines of code
premiumAddonTabContent()
D
11
31 690
setGuestEmailSession()
B
39 16 61
getPopupTemplate()
A
41 13 47
eligibleAddToCartPopup()
A
56 15 15
siteInit()
A
46 11 36
addSiteScripts()
A
47 7 32
addSiteInstantCouponScripts()
S
57 4 16
getMailCouponContent()
S
57 4 16
applyCouponAutomatically()
S
66 5 8
getPopupContent()
S
63 4 9
getMailContent()
S
63 4 9
getMailHeaders()
S
52 2 22
getAtcPopupUrl()
S
67 3 7
productAddedToCart()
S
68 3 7
addToCartPopup()
S
59 2 13
sendEmail()
S
60 2 12
init()
S
61 2 12
enqueue_script()
S
100 1 26
popupClosed()
S
71 2 5
setupAdminScripts()
S
70 2 6
getCouponPopupContent()
S
62 1 11
getATCDependencies()
S
79 1 3
getDefaultEmailTemplate()
S
80 1 3
getDefaultPopupTemplate()
S
80 1 3
__construct()
S
66 1 8