Code Analysis: Sharkdropship & affiliate for AliExpress 2.0.8

Function Rating Maintainability Complexity Lines of code
WoosharkAliexpressImporter_OptionsManager::settingsPage()
D
14
2 1,150
insertProductInWoocommerce()
D
19
64 177
saveOptionsDB()
C
40 27 55
updateProductVariations()
A
47 12 33
getNewProductDetails()
A
48 11 30
WoosharkAliexpressImporter_OptionsManager::getOptionValueI18nString()
A
55 9 21
insertReviewsIntoProduct()
A
55 9 15
save_product_images()
A
49 8 30
insertReviewsIntoProductRM_PREMUIM_PLUGIN()
A
55 9 15
WoosharkAliexpressImporter_OptionsManager::roleToCapability()
A
57 8 19
searchProductByIdReviews()
S
49 7 26
searchProductBySku()
S
49 7 26
getProductsDraft()
S
52 6 21
getProduct_FROMWP()
S
52 6 21
getAlreadyImportedProducts()
S
53 6 19
WoosharkAliexpressImporter_OptionsManager::createFormControl()
S
55 5 21
getSKuAbdUrlByCategory()
S
53 5 19
removeProductFromShop()
S
59 5 13
WoosharkAliexpressImporter_Plugin::initOptions()
S
65 5 9
save_single_variation_image()
S
59 4 14
sync_all_products()
S
52 3 22
WoosharkAliexpressImporter_init()
S
59 3 15
our_plugin_action_links()
S
63 3 11
get_categories_FROMWP()
S
58 2 16
setProductToDraft()
S
63 3 9
WoosharkAliexpressImporter_OptionsManager::getOption()
S
67 3 8
WoosharkAliexpressImporter_OptionsManager::getRoleOption()
S
68 3 7
WoosharkAliexpressImporter_OptionsManager::deleteSavedOptions()
S
65 3 9
WoosharkAliexpressImporter_ShortCodeLoader::registerShortcodeToFunction()
S
65 3 10
getProductsCount_FROM_WP()
S
58 1 17
getCountOfProducts()
S
58 1 17
upload_image()
S
56 1 16
WoosharkAliexpressImporter_OptionsManager::canUserDoRoleOption()
S
69 2 7
WoosharkAliexpressImporter_OptionsManager::getMySqlVersion()
S
67 2 8
WoosharkAliexpressImporter_OptionsManager::getEmailDomain()
S
68 2 7
WoosharkAliexpressImporter_PhpVersionCheck()
S
67 2 8
WoosharkAliexpressImporter_ShortCodeScriptLoader::addScriptWrapper()
S
75 2 5
WoosharkAliexpressImporter_OptionsManager::prefix()
S
68 2 7
my_awesome_func()
S
68 2 7
WoosharkAliexpressImporter_OptionsManager::unPrefix()
S
68 2 7
WoosharkAliexpressImporter_InstallIndicator::getPluginHeaderValue()
S
64 2 9
searchCategoryByName()
S
71 2 5
WoosharkAliexpressImporter_OptionsManager::registerSettings()
S
68 2 7
WoosharkAliexpressImporter_OptionsManager::isUserRoleEqualOrBetterThan()
S
69 2 7
getOldProductDetails()
S
69 2 6
WoosharkAliexpressImporter_LifeCycle::addSettingsSubMenuPageToPluginsMenu()
S
63 1 11
WoosharkAliexpressImporter_OptionsManager::createSettingsMenu()
S
63 1 11
WoosharkAliexpressImporter_Plugin::getOptionMetaData()
S
65 1 8
WoosharkAliexpressImporter_InstallIndicator::getPluginDir()
S
80 1 3
WoosharkAliexpressImporter_LifeCycle::activate()
S
91 1 2
WoosharkAliexpressImporter_OptionsManager::initOptions()
S
98 1 1
WoosharkAliexpressImporter_Plugin::unInstallDatabaseTables()
S
91 1 2
WoosharkAliexpressImporter_OptionsManager::getOptionNamePrefix()
S
79 1 3
WoosharkAliexpressImporter_LifeCycle::prefixTableName()
S
75 1 4
WoosharkAliexpressImporter_LifeCycle::addSettingsSubMenuPageToSettingsMenu()
S
66 1 9
WoosharkAliexpressImporter_ShortCodeLoader::register()
S
80 1 3
WoosharkAliexpressImporter_LifeCycle::addActionsAndFilters()
S
91 1 2
WoosharkAliexpressImporter_LifeCycle::getAjaxUrl()
S
79 1 3
WoosharkAliexpressImporter_InstallIndicator::getMainPluginFileName()
S
79 1 3
WoosharkAliexpressImporter_LifeCycle::getSettingsSlug()
S
79 1 3
WoosharkAliexpressImporter_InstallIndicator::isVersionLessThanEqual()
S
78 1 3
WoosharkAliexpressImporter_LifeCycle::otherInstall()
S
91 1 2
WoosharkAliexpressImporter_Plugin::getMainPluginFileName()
S
82 1 3
WoosharkAliexpressImporter_LifeCycle::unInstallDatabaseTables()
S
91 1 2
WoosharkAliexpressImporter_Plugin::upgrade()
S
91 1 2
WoosharkAliexpressImporter_LifeCycle::upgrade()
S
91 1 2
WoosharkAliexpressImporter_LifeCycle::installDatabaseTables()
S
91 1 2
WoosharkAliexpressImporter_LifeCycle::otherUninstall()
S
91 1 2
WoosharkAliexpressImporter_OptionsManager::getOptionMetaData()
S
82 1 3
woo_add_custom_general_fields_originalProductUrl()
S
81 1 3
WoosharkAliexpressImporter_InstallIndicator::markAsInstalled()
S
79 1 3
WoosharkAliexpressImporter_ShortCodeLoader::handleShortcode()
S
100 1 0
WoosharkAliexpressImporter_LifeCycle::deactivate()
S
91 1 2
WoosharkAliexpressImporter_LifeCycle::initOptions()
S
91 1 2
WoosharkAliexpressImporter_Plugin::installDatabaseTables()
S
91 1 2
WoosharkAliexpressImporter_InstallIndicator::isInstalledCodeAnUpgrade()
S
80 1 3
WoosharkAliexpressImporter_OptionsManager::getPluginDisplayName()
S
80 1 3
WoosharkAliexpressImporter_i18n_init()
S
74 1 4
WoosharkAliexpressImporter_ShortCodeScriptLoader::handleShortcodeWrapper()
S
76 1 4
WoosharkAliexpressImporter_InstallIndicator::isVersionLessThan()
S
78 1 3
WoosharkAliexpressImporter_InstallIndicator::isInstalled()
S
79 1 3
WoosharkAliexpressImporter_Plugin::addActionsAndFilters()
S
79 1 3
WoosharkAliexpressImporter_OptionsManager::jquery_add_to_contact()
S
82 1 3
WoosharkAliexpressImporter_LifeCycle::uninstall()
S
73 1 6
WoosharkAliexpressImporter_ShortCodeScriptLoader::register()
S
75 1 4
WoosharkAliexpressImporter_LifeCycle::addSettingsSubMenuPage()
S
82 1 3
WoosharkAliexpressImporter_InstallIndicator::isSavedVersionLessThanEqual()
S
79 1 3
WoosharkAliexpressImporter_InstallIndicator::markAsUnInstalled()
S
80 1 3
WoosharkAliexpressImporter_OptionsManager::addOption()
S
75 1 4
WoosharkAliexpressImporter_InstallIndicator::getVersion()
S
80 1 3
wooshark_myprefix_cron_function()
S
80 1 3
my_admin_scripts_init()
S
100 1 1
WoosharkAliexpressImporter_LifeCycle::requireExtraPluginFiles()
S
76 1 4
restoreConfiguration()
S
75 1 4
WoosharkAliexpressImporter_InstallIndicator::saveInstalledVersion()
S
81 1 3
WoosharkAliexpressImporter_OptionsManager::getOptionNames()
S
80 1 3
WoosharkAliexpressImporter_ShortCodeScriptLoader::addScript()
S
100 1 0
WoosharkAliexpressImporter_InstallIndicator::isSavedVersionLessThan()
S
79 1 3
WoosharkAliexpressImporter_InstallIndicator::getVersionSaved()
S
80 1 3
WoosharkAliexpressImporter_InstallIndicator::setVersionSaved()
S
79 1 3
initOriginalProductUrl()
S
70 1 7
WoosharkAliexpressImporter_noticePhpVersionWrong()
S
66 1 8
WoosharkAliexpressImporter_LifeCycle::install()
S
70 1 7
WoosharkAliexpressImporter_OptionsManager::updateOption()
S
75 1 4
WoosharkAliexpressImporter_Plugin::getPluginDisplayName()
S
82 1 3
getOrders()
S
70 1 5
WoosharkAliexpressImporter_OptionsManager::deleteOption()
S
76 1 4