Code Analysis: StoreLinkr 2.1.0

Function Rating Maintainability Complexity Lines of code
StoreLinkrWooCommerceService::mapProductFromData()
A
40 14 56
StoreLinkrWooCommerceService::mapProductFromData()
A
40 14 56
StoreLinkrWooCommerceService::linkProductGalleryImages()
A
49 13 33
StoreLinkrWooCommerceService::linkProductGalleryImages()
A
49 13 33
StoreLinkrWooCommerceService::getOrders()
A
35 9 88
StoreLinkrWooCommerceService::getOrders()
A
35 9 88
storelinkrStockAjaxHandler()
A
45 8 42
storelinkrStockAjaxHandler()
A
45 8 42
StoreLinkrCategory::fromWooCommerce()
A
48 7 41
StoreLinkrCategory::fromWooCommerce()
A
48 7 41
StoreLinkr::fetchLiveStock()
A
43 6 53
StoreLinkr::fetchLiveStock()
A
43 6 53
StoreLinkrWooCommerceService::saveProduct()
S
47 6 36
StoreLinkrWooCommerceService::saveProduct()
S
47 6 36
StoreLinkrRestApi::init()
S
40 3 76
StoreLinkrRestApi::init()
S
40 3 76
storeLinkrGetProductStockInformation()
S
57 5 18
storeLinkrGetProductStockInformation()
S
57 5 18
StoreLinkrRestApi::authenticateRequest()
S
62 5 12
StoreLinkrRestApi::authenticateRequest()
S
62 5 12
StoreLinkrWooCommerceService::createCategory()
S
53 4 21
StoreLinkrWooCommerceService::createCategory()
S
53 4 21
StoreLinkrWooCommerceService::saveProductImage()
S
47 3 34
StoreLinkrWooCommerceService::getCategories()
S
56 4 19
StoreLinkrWooCommerceService::saveProductImage()
S
47 3 34
StoreLinkrRestApi::renderImageProduct()
S
48 3 34
StoreLinkrRestApi::renderImageProduct()
S
48 3 34
StoreLinkrWooCommerceService::getCategories()
S
56 4 19
StoreLinkrStock::fromStoreLinkrData()
S
56 4 18
StoreLinkrStock::fromStoreLinkrData()
S
56 4 18
StoreLinkrRestApi::renderCategoryUpdate()
S
54 3 23
StoreLinkrRestApi::renderCategoryUpdate()
S
54 3 23
StoreLinkrRestApi::renderUpdateProduct()
S
49 2 33
StoreLinkrRestApi::renderUpdateProduct()
S
49 2 33
StoreLinkrRestApi::renderCreateProduct()
S
50 2 31
StoreLinkrRestApi::renderCreateProduct()
S
50 2 31
StoreLinkrRestApi::renderCategoriesCreate()
S
52 2 28
StoreLinkrRestApi::renderCategoriesCreate()
S
52 2 28
StoreLinkrWooCommerceService::getCorrespondingCategoryIds()
S
62 3 12
StoreLinkrWooCommerceService::getCorrespondingCategoryIds()
S
62 3 12
StoreLinkrFrontend::storelinkrCustomProductCode()
S
53 1 33
StoreLinkrFrontend::storelinkrCustomProductCode()
S
53 1 33
StoreLinkrRestApi::renderError()
S
59 2 16
StoreLinkrRestApi::renderArchiveProduct()
S
58 2 16
StoreLinkrRestApi::renderArchiveProduct()
S
58 2 16
StoreLinkrRestApi::renderError()
S
59 2 16
StoreLinkrAdmin::adminInit()
S
65 3 8
StoreLinkrAdmin::adminInit()
S
65 3 8
StoreLinkrRestApi::validateRequiredFields()
S
68 3 7
StoreLinkrRestApi::validateRequiredFields()
S
68 3 7
StoreLinkrRestApi::renderTestConnection()
S
59 2 14
StoreLinkrRestApi::renderTestConnection()
S
59 2 14
StoreLinkrRestApi::renderCategories()
S
63 2 11
StoreLinkrRestApi::renderOrders()
S
63 2 11
StoreLinkrRestApi::renderCategories()
S
63 2 11
StoreLinkrRestApi::renderOrders()
S
63 2 11
StoreLinkrWooCommerceService::formatName()
S
54 1 25
StoreLinkrWooCommerceService::formatName()
S
54 1 25
storelinkrWooIsActive()
S
72 2 6
storelinkrWooIsActive()
S
72 2 6
StoreLinkrWooCommerceService::findProduct()
S
69 2 7
StoreLinkrWooCommerceService::findProduct()
S
69 2 7
StoreLinkrWooCommerceService::formatPrice()
S
70 2 6
StoreLinkrWooCommerceService::formatPrice()
S
70 2 6
StoreLinkrAdmin::getSvgIcon()
S
69 2 7
StoreLinkrAdmin::getSvgIcon()
S
69 2 7
StoreLinkr::getInstance()
S
69 2 7
StoreLinkr::getInstance()
S
69 2 7
StoreLinkrAdmin::adminPages()
S
62 1 13
StoreLinkrAdmin::adminPages()
S
62 1 13
StoreLinkrAdmin::settingsLink()
S
62 1 12
StoreLinkrFrontend::storelinkrEnqueueScripts()
S
62 1 12
StoreLinkrAdmin::settingsLink()
S
62 1 12
StoreLinkrFrontend::storelinkrEnqueueScripts()
S
62 1 12
StoreLinkrWooCommerceService::updateCategory()
S
71 1 6
StoreLinkrStock::getDeliveryDate()
S
82 1 3
StoreLinkrStock::getStockQuantitySupplier()
S
82 1 3
StoreLinkrAdmin::generateKey()
S
77 1 3
StoreLinkrStock::__construct()
S
64 1 10
StoreLinkrCategory::getCategoryMain()
S
82 1 3
StoreLinkrStockLocation::getStockQuantity()
S
82 1 3
StoreLinkrAdmin::init()
S
72 1 5
StoreLinkrCategory::jsonSerialize()
S
80 1 3
StoreLinkrFrontend::storelinkrProductAvailability()
S
82 1 3
StoreLinkrStockLocation::setStockQuantityDemo()
S
81 1 3
StoreLinkrStock::getStockLocations()
S
82 1 3
StoreLinkrStock::getStockQuantity()
S
82 1 3
StoreLinkrStockLocation::getLocationName()
S
82 1 3
StoreLinkrStockLocation::getStockQuantityExpected()
S
82 1 3
StoreLinkrStockLocation::getStockQuantityDemo()
S
82 1 3
StoreLinkrStockLocation::setLocationId()
S
81 1 3
StoreLinkrStockLocation::__construct()
S
69 1 7
StoreLinkrStockLocation::fromStoreLinkrData()
S
66 1 9
StoreLinkrStockLocation::__construct()
S
69 1 7
StoreLinkrStock::jsonSerialize()
S
80 1 3
StoreLinkrRestApi::__construct()
S
81 1 3
StoreLinkr::init()
S
89 1 2
StoreLinkrStock::isAllowBackorder()
S
82 1 3
StoreLinkrStock::__construct()
S
81 1 3
StoreLinkrStockLocation::getLocationName()
S
82 1 3
StoreLinkrStockLocation::setStockQuantityExpected()
S
81 1 3
StoreLinkrStockLocation::getStockQuantityExpected()
S
82 1 3
StoreLinkrStock::isAllowBackorder()
S
82 1 3
StoreLinkrAdmin::renderDashboardPage()
S
80 1 3
StoreLinkrStockLocation::jsonSerialize()
S
80 1 3
StoreLinkrAdmin::initApiKeys()
S
66 1 10
StoreLinkrStock::getDeliveryDate()
S
82 1 3
StoreLinkrStockLocation::getLocationId()
S
82 1 3
StoreLinkrStock::getStockQuantity()
S
82 1 3
StoreLinkrAdmin::addAdminStyles()
S
72 1 6
StoreLinkrStock::getErrorReason()
S
82 1 3
StoreLinkrStockLocation::setStockQuantity()
S
81 1 3
StoreLinkrWooCommerceService::findCategory()
S
80 1 3
StoreLinkrAdmin::renderDashboardPage()
S
80 1 3
StoreLinkrStockLocation::getLocationId()
S
82 1 3
StoreLinkrWooCommerceService::updateCategory()
S
71 1 6
StoreLinkrStock::isHasStock()
S
82 1 3
StoreLinkrRestApi::__construct()
S
81 1 3
StoreLinkrFrontend::storelinkrEnqueueStyles()
S
72 1 6
StoreLinkrFrontend::storelinkrEnqueueStyles()
S
72 1 6
StoreLinkrFrontend::init()
S
69 1 6
StoreLinkrStockLocation::getStockQuantity()
S
82 1 3
StoreLinkrCategory::getCategorySub()
S
82 1 3
StoreLinkrStock::jsonSerialize()
S
80 1 3
StoreLinkrStockLocation::setLocationName()
S
81 1 3
StoreLinkrStockLocation::setStockQuantityDemo()
S
81 1 3
StoreLinkr::init()
S
89 1 2
StoreLinkrAdmin::initApiKeys()
S
66 1 10
StoreLinkrStock::__construct()
S
64 1 10
StoreLinkrFrontend::init()
S
69 1 6
StoreLinkrCategory::getCategorySub()
S
82 1 3
StoreLinkrCategory::__construct()
S
65 1 9
StoreLinkrStockLocation::setLocationId()
S
81 1 3
StoreLinkrStockLocation::setLocationName()
S
81 1 3
StoreLinkrCategory::getCategorySubSub()
S
82 1 3
StoreLinkrWooCommerceService::findCategory()
S
80 1 3
StoreLinkrStockLocation::jsonSerialize()
S
80 1 3
StoreLinkrAdmin::generateKey()
S
77 1 3
StoreLinkrStockLocation::fromStoreLinkrData()
S
66 1 9
StoreLinkrStock::__construct()
S
81 1 3
StoreLinkrCategory::jsonSerialize()
S
80 1 3
StoreLinkrCategory::__construct()
S
65 1 9
StoreLinkrStock::getStockQuantityReserved()
S
82 1 3
StoreLinkrCategory::getCategoryMain()
S
82 1 3
StoreLinkrFrontend::storelinkrProductAvailability()
S
82 1 3
StoreLinkrStock::getStockLocations()
S
82 1 3
StoreLinkrStock::isHasStock()
S
82 1 3
StoreLinkrStock::getErrorReason()
S
82 1 3
StoreLinkrAdmin::addAdminStyles()
S
72 1 6
StoreLinkrStock::getStockQuantitySupplier()
S
82 1 3
StoreLinkrStockLocation::getStockQuantityDemo()
S
82 1 3
StoreLinkrStockLocation::setStockQuantity()
S
81 1 3
StoreLinkrAdmin::init()
S
72 1 5
StoreLinkrStock::getStockQuantityReserved()
S
82 1 3
StoreLinkrStockLocation::setStockQuantityExpected()
S
81 1 3
StoreLinkrCategory::getCategorySubSub()
S
82 1 3