StoreLinkrWooCommerceService D

Total Complexity 266
Dependencies 21
Dependents 4
Total lines 1,631
Lines of code 1,203
Logical lines of code 629
Comment lines 105
Methods 32
Properties 1

Methods 32

Method Rating Maintainability Complexity Lines of code
buildProductVariantOptions()
D
24
40 162
createOrder()
D
28
31 128
linkProductsAsVariant()
C
34 26 90
mapProductFromDataArray()
B
39 21 61
saveProduct()
B
35 19 85
getOrders()
B
32 13 110
linkProductGalleryImages()
A
45 16 42
mergeDuplicateAttributes()
A
38 13 72
upsertAttributeAndTerm()
A
44 11 50
saveProductImage()
A
42 8 51
cleanupUnusedVariantAttributes()
S
47 6 37
createCategory()
S
48 6 33
removeUnusedTerms()
S
49 6 31
findEmptyVariableProductByName()
S
49 5 32
findExistingAttribute()
S
54 5 22
getCorrespondingCategoryIdsByPath()
S
55 4 20
getCategories()
S
56 4 19
removeDuplicateByEan()
S
63 5 10
findProductByEan()
S
56 3 20
findProductBySku()
S
56 3 18
upsertBrandName()
S
61 3 13
getCorrespondingCategoryIds()
S
65 3 9
onlyValidProductIds()
S
65 3 9
createAttribute()
S
60 2 14
findProduct()
S
63 2 12
formatName()
S
54 1 25
buildAttributeSlug()
S
65 2 8
updateCategory()
S
71 1 6
findCategory()
S
80 1 3
rebuildLookupTableForProduct()
S
75 1 4
getWarnings()
S
82 1 3
logWarning()
S
76 1 4