YaMetrikaWoocommerce C

Total Complexity 114
Dependencies 7
Dependents 0
Total lines 592
Lines of code 431
Logical lines of code 258
Comment lines 11
Methods 30
Properties 3

Methods 30

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