YaMetrikaWoocommerce C

Total Complexity 103
Dependencies 7
Dependents 0
Total lines 533
Lines of code 385
Logical lines of code 228
Comment lines 12
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
onProduct()
S
56 6 21
registerJSProduct()
S
58 6 16
ecommerceCartItemChanged()
S
53 5 24
getProductBrand()
S
55 5 19
__construct()
S
49 4 28
getProductData()
S
53 4 23
onThePost()
S
62 4 13
ajaxGetPurchase()
S
58 3 15
hasJSProduct()
S
65 4 9
registerCartItem()
S
59 3 15
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
onGetTemplatePart()
S
70 3 6
registerCommonData()
S
64 3 10
checkHooks()
S
67 3 6
onBlockGridProduct()
S
71 2 6
getInstance()
S
71 2 6
onRemoveFromCart()
S
80 1 3
registerAssets()
S
77 1 3
registerInlineScripts()
S
72 1 4