FlycartWooDiscountRulesPricingRules D

Total Complexity 1,491
Dependencies 14
Dependents 2
Total lines 4,990
Lines of code 3,919
Logical lines of code 2,829
Comment lines 635
Methods 105
Properties 31

Methods 105

Method Rating Maintainability Complexity Lines of code
matchRules()
D
10
117 247
generateDiscountTableData()
D
19
77 174
generateRuleSets()
D
23
64 137
getAdjustmentAmount()
D
24
55 135
checkProductBasedRuleMatches()
D
27
53 111
save()
D
22
47 187
getDiscountTableContentInHTML()
D
28
48 103
getAmount()
D
32 39 98
checkWithUsersPurchaseHistory()
D
29 38 111
checkForHighestVariantIfExists()
D
33 33 87
applyDiscount()
D
31 31 101
getCheapestProductFromCart()
C
34 31 83
getTextForProductDiscountCondition()
C
33 30 84
hasAttributeInParentProduct()
C
38 30 70
getVariantMinAndMaxRegularPrice()
C
35 25 81
handleBOGODiscountOnUpdateQuantity()
C
36 25 73
getAdjustmentDiscountedPrice()
C
37 25 73
replaceVisiblePricesCart()
C
35 24 78
getBiggestDiscount()
C
40 25 55
getProductQuantityInThisCategory()
B
40 24 57
displayProductIsOnSaleTag()
B
38 23 69
replaceVisiblePricesOptimized()
B
39 22 58
isProductApplicableForSetDiscount()
B
43 22 45
handleBOGODiscount()
B
38 20 67
applyAdjustment()
B
39 20 62
checkProductMatchedForSpecificAttributes()
B
40 19 60
getProductQuantityInThisAttribute()
B
43 19 44
getRules()
B
45 19 33
displayProductIsOnSaleTagOptimized()
B
43 18 45
getProductQuantityForCumulativeProducts()
B
46 17 36
getSetDiscountValueForTheProduct()
B
40 15 63
replaceVisiblePrices()
A
41 15 55
getDiscountPriceOfProduct()
A
42 14 51
filterRules()
A
47 15 32
getMoreThanOneCheapestProductFromCart()
A
44 14 42
getBOGORules()
A
50 14 28
resetTheDiscountIfProductDiscountAdjustmentExists()
A
52 12 24
has_bogo_auto_add()
A
54 12 20
getDiscountPriceForTheProduct()
A
45 10 41
getWooDiscountStrikeoutPriceOfProduct()
A
46 10 38
checkWithCouponApplied()
A
55 11 19
displayTotalSavingsThroughDiscountInOrder()
A
49 10 29
getProductQuantityForCumulativeSpecificProducts()
A
52 10 24
replaceVisiblePricesForSalePriceAdjustment()
A
51 10 23
initAdjustment()
A
52 10 22
getOriginalStrikeoutPriceOfProduct()
A
48 9 34
getAllProductsFromCartAndSelectedCategory()
A
55 9 19
loadPriceTable()
A
53 8 23
validatePriceCouponAppliedAllSelected()
A
54 8 22
replaceVisiblePricesForVariant()
A
52 8 21
validatePriceCouponAppliedAnyOne()
A
55 8 20
applyRules()
A
55 8 20
isItemInCategoryList()
A
56 8 18
isItemInAttributeList()
S
58 8 14
displayTotalSavingsThroughDiscountInCart()
S
53 7 24
checkSubtotalMatches()
S
56 7 19
getVariantsOfProducts()
S
57 7 17
displayProductIsOnSaleTagNew()
S
59 7 14
getWooDiscountedPriceTableForVariant()
S
51 6 27
getAllProductsFromCart()
S
61 6 13
getWooDiscountedPriceForVariant()
S
59 6 13
hasToSplitTheStrikeOutInCart()
S
60 6 13
sortCartByPrice_asc()
S
62 6 11
addVariantProducts()
S
56 5 17
generateTableHtml()
S
65 6 8
getPurchasedProductsFromRule()
S
59 5 15
getExcludeProductsFromRule()
S
59 5 15
hasBOGOInAdjustmentSet()
S
60 5 13
manageUserAccess()
S
60 5 13
makeLog()
S
60 5 13
getQuantityOfProductInCart()
S
60 5 13
orderRules()
S
60 5 13
handleBOGODiscountAfterApplyCoupon()
S
59 5 13
isItemInProductList()
S
61 5 11
array_first()
S
64 5 10
getTotalQuantitiesAndItems()
S
61 4 12
checkWithUserRoles()
S
63 4 11
formatRulesToApply()
S
61 4 11
view()
S
63 4 11
loadPriceTableFromCookie()
S
65 4 9
sortCartByPrice_desc()
S
66 4 8
addAdditionalContentInAfterOrderItemMeta()
S
60 3 13
replaceSaleTagText()
S
61 3 12
addAdditionalContentInOrderItemSubTotal()
S
61 3 11
addAdditionalContentInCartItemSubTotal()
S
62 3 11
priceTable()
S
62 3 11
hasDiscountForProductId()
S
68 3 7
getBaseConfig()
S
67 3 8
updateBaseConfig()
S
67 3 7
getTemplateOverride()
S
60 2 14
onCreateWoocommerceOrderLineItem()
S
68 2 7
isBOGODiscount()
S
69 2 6
getDiscountRangeList()
S
70 2 7
getAttributeFromRule()
S
69 2 7
checkWithCategory()
S
69 2 7
checkWithProducts()
S
67 2 8
sortCartPrice()
S
66 2 8
isItemInSaleItems()
S
75 2 4
checkPoint()
S
80 2 3
analyse()
S
73 2 5
updateLastUpdateTimeOfRule()
S
65 2 9
checkWithUsers()
S
80 1 3
getYouSavedContent()
S
63 1 10
organizeRules()
S
78 1 4
__construct()
S
76 1 4