YaMetrikaWoocommerce B

Total Complexity 100
Dependencies 7
Dependents 0
Total lines 538
Lines of code 374
Logical lines of code 222
Comment lines 32
Methods 27
Properties 3

Methods 27

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