YaMetrikaWoocommerce A

Total Complexity 73
Dependencies 7
Dependents 0
Total lines 395
Lines of code 287
Logical lines of code 171
Comment lines 7
Methods 20
Properties 3

Methods 20

Method Rating Maintainability Complexity Lines of code
onPurchase()
A
45 8 41
onSingleProduct()
A
50 8 29
getOrderItemsDiscounts()
S
52 6 25
registerJSProduct()
S
56 6 20
getProductBrand()
S
55 5 19
checkHooks()
S
63 6 9
__construct()
S
50 4 26
getProductData()
S
53 4 23
ecommerceCartItemChanged()
S
54 4 21
registerCartItem()
S
59 3 15
onQuantityUpdate()
S
61 3 12
onProduct()
S
70 3 6
onCartContents()
S
71 2 6
onAddToCart()
S
70 2 6
registerCommonData()
S
68 2 7
ajaxGetCartItems()
S
70 2 6
getInstance()
S
71 2 6
registerAssets()
S
77 1 3
onRemoveFromCart()
S
80 1 3
registerInlineScripts()
S
72 1 4