YaMetrikaWoocommerce C

Total Complexity 121
Dependencies 7
Dependents 0
Total lines 636
Lines of code 465
Logical lines of code 278
Comment lines 12
Methods 30
Properties 3

Methods 30

Method Rating Maintainability Complexity Lines of code
onSingleProduct()
A
47 11 35
ecommerceCartItemChanged()
A
43 10 50
getPurchaseData()
A
46 8 40
onItemsRestored()
S
50 6 27
getOrderItemsDiscounts()
S
52 6 25
onProduct()
S
56 6 21
__construct()
S
47 5 33
registerJSProduct()
S
58 6 16
getProductBrand()
S
55 5 19
getProductData()
S
53 4 23
onThePost()
S
62 4 13
registerInlineScripts()
S
59 4 12
hasJSProduct()
S
65 4 9
registerCartItem()
S
59 3 15
ajaxGetPurchase()
S
58 3 15
onQuantityUpdate()
S
61 3 12
checkHooks()
S
67 3 6
registerCommonData()
S
64 3 10
onGetTemplatePart()
S
70 3 6
onCartContents()
S
65 3 9
getProductId()
S
64 3 10
getActiveProduct()
S
66 3 10
onAddToCart()
S
65 3 9
ajaxGetCartItems()
S
66 3 8
onPurchase()
S
62 2 11
onBlockGridProduct()
S
71 2 6
getInstance()
S
71 2 6
registerAssets()
S
77 1 3
my_setcookie()
S
77 1 3
onRemoveFromCart()
S
80 1 3