Code Analysis: Sharkdropship & affiliate for AliExpress 2.2.5

Function Rating Maintainability Complexity Lines of code
theSharkAliExpress_insertProductInWoocommerce()
D
8
97 342
simple_html_dom_node::seek()
D
22
66 157
simple_html_dom::read_tag()
D
21
58 185
theSharkAliExpress_insertProductInWoocommerceAffiliate()
D
20
57 179
WoosharkAliexpressImporter_OptionsManager::settingsPage()
D
18
2 787
theSharkAliExpress_saveOptionsDB_alibay()
C
37 31 67
simple_html_dom::parse_charset()
C
34 27 93
theSharkAliExpress_insertVariations()
B
34 20 90
simple_html_dom_node::parse_selector()
B
40 22 58
theSharkAliExpress_update_variations_on_woocommerce_alibay()
B
37 17 74
simple_html_dom_node::outertext()
B
44 17 41
theSharkAliExpress_get_aliexpress_products_alibay()
A
37 13 75
theSharkAliExpress_updateProductVariations_for_ebay_alibay()
A
43 15 44
simple_html_dom_node::get_display_size()
A
44 14 47
simple_html_dom_node::find()
A
47 14 33
simple_html_dom_node::is_utf8()
A
50 13 25
simple_html_dom_node::convert_text()
A
47 12 38
theSharkAliExpress_updateProductSimple_for_ebay_alibay()
A
47 11 35
theSharkAliExpress_insertReviewsIntoProductRM_PREMUIM_PLUGIN_alibay()
A
46 11 34
theSharkAliExpress_insertReviewsIntoProduct_for_ebay_alibay()
A
46 11 34
theSharkAliExpress_insertReviewsIntoProductRM_for_ebay()
A
46 11 34
theSharkAliExpress_insertReviewsIntoProduct()
A
46 11 34
simple_html_dom_node::dump_node()
A
45 10 44
theSharkAliExpress_searchProductBySku_for_ebay_alibay()
A
41 9 57
simple_html_dom_node::text()
A
51 11 25
theSharkAliExpress_searchProductByIdReviews_alibay()
A
43 9 48
simple_html_dom::parse_attr()
A
48 10 32
simple_html_dom_node::match()
A
51 10 25
theSharkAliExpress_fetchemote_alibay()
A
45 9 37
theSharkAliExpress_get_products_by_type_alibay()
A
40 7 61
theSharkAliExpress_getAlreadyImportedProducts_for_ebay_alibay()
A
44 8 44
theSharkAliExpress_getAlreadyImportedProducts()
A
44 8 44
theSharkAliExpress_getProductsDraft()
A
44 8 44
theSharkAliExpress_searchProductBySku()
A
43 7 50
theSharkAliExpress_getSKuAbdUrlByCategory_for_ebay_alibay()
A
43 7 48
theSharkAliExpress_getSKuAbdUrlByCategory_alibay()
A
43 7 48
theSharkAliExpress_save_product_images_for_ebay_alibay()
A
49 8 32
simple_html_dom_node::makeup()
A
49 8 31
theSharkAliExpress_save_product_images_alibay()
A
49 8 31
theSharkAliExpress_search_product_by_store_alibay()
A
50 8 27
theSharkAliExpress_load_woocommerce_variations_alibay()
A
52 8 24
simple_html_dom_node::removeChild()
A
53 8 22
getProduct_FROMWP_alibay()
A
42 6 52
WoosharkAliexpressImporter_OptionsManager::roleToCapability()
A
57 8 19
theSharkAliExpress_removeProductFromShop_for_ebay_alibay()
S
51 7 27
theSharkAliExpress_removeProductFromShop()
S
51 7 27
theSharkAliExpress_removeProductFromShop_forEBAY_alibay()
S
51 7 27
simple_html_dom::clear()
S
54 7 24
simple_html_dom_node::addClass()
S
54 7 22
theSharkAliExpress_get_product_details_alibay()
S
48 6 34
simple_html_dom::restore_noise()
S
49 6 32
theSharkAliExpress_set_product_to_draft_callback_alibay()
S
52 6 25
simple_html_dom::remove_noise()
S
52 6 23
theSharkAliExpress_getOldProductDetails_for_ebay_alibay()
S
53 6 20
simple_html_dom_node::removeClass()
S
56 6 20
simple_html_dom_node::find_ancestor_tag()
S
56 6 18
theSharkAliExpress_delete_product_callback_alibay()
S
56 6 17
simple_html_dom_node::__set()
S
56 6 17
simple_html_dom_node::dump()
S
57 6 16
simple_html_dom::__get()
S
61 6 14
theSharkAliExpress_updateProductUrlAlibay()
S
59 6 13
simple_html_dom_node::__get()
S
61 6 12
WoosharkAliexpressImporter_LifeCycle::addSettingsSubMenuPageToPluginsMenu()
S
42 2 67
simple_html_dom::__construct()
S
56 5 20
file_get_html()
S
53 4 24
WoosharkAliexpressImporter_LifeCycle::submenuLicenseActivationCallback()
S
54 4 23
theSharkAliExpress_create_woocommerce_categories_and_get_ids_alibay()
S
55 4 22
theSharkAliExpress_get_categories_FROMWP()
S
53 4 22
WoosharkAliexpressImporter_LifeCycle::submenuPageCallback()
S
47 3 34
checkDailyImport_alibay()
S
58 4 15
checkDailyImportPremuim_alibay()
S
58 4 15
simple_html_dom::parse()
S
58 4 15
simple_html_dom_node::__isset()
S
66 5 8
WoosharkAliexpressImporter_Plugin::initOptions()
S
65 5 9
checkDailyUpdate_alibay()
S
59 4 14
theSharkAliExpress_save_single_variation_image_alibay()
S
59 4 14
checkDailyUpdatePemuim_alibay()
S
59 4 14
theSharkAliExpressmy_plugin_webp_is_displayable_alibay()
S
60 4 14
simple_html_dom::copy_until_char()
S
59 4 14
simple_html_dom_node::innertext()
S
61 4 13
theSharkAliExpress_getOldProductDetails()
S
60 4 12
simple_html_dom_node::hasClass()
S
61 4 12
theSharkAliExpress_searchCategoryByName()
S
61 4 11
WoosharkAliexpressImporter_LifeCycle::validateLicense()
S
53 3 25
theSharkAliExpress_getProductsCount_FROM_WP()
S
53 3 24
simple_html_dom::load()
S
52 3 24
theSharkAliExpress_getProductsCount_FROM_WP_for_ebay_alibay()
S
53 3 23
WoosharkAliexpressImporter_LifeCycle::chromeExtensionCallbackPage()
S
53 3 23
WoosharkAliexpressImporter_LifeCycle::my_plugin_go_pro_page_callback()
S
100 1 53
str_get_html()
S
59 3 16
wads_WoosharkAliexpressImporter_init()
S
59 3 15
simple_html_dom::search_noise()
S
65 4 9
simple_html_dom_node::next_sibling()
S
63 4 10
simple_html_dom_node::prev_sibling()
S
63 4 10
WoosharkAliexpressImporter_LifeCycle::submenuConfigurationPageCallback()
S
49 2 29
wads_my_admin_scripts_init_for_Aliexpreee_freeVersion()
S
60 3 13
wads_our_plugin_action_links()
S
63 3 11
simple_html_dom::prepare()
S
55 2 19
theSharkAliExpress_setProductToDraft_for_ebay_alibay()
S
64 3 9
theSharkAliExpress_restoreConfiguration_alibay()
S
63 3 10
theSharkAliExpress_stopAutomaticUpdates_alibay()
S
63 3 10
WoosharkAliexpressImporter_ShortCodeLoader::registerShortcodeToFunction()
S
65 3 10
simple_html_dom::copy_skip()
S
65 3 8
WoosharkAliexpressImporter_OptionsManager::deleteSavedOptions()
S
65 3 9
simple_html_dom_node::children()
S
66 3 9
WoosharkAliexpressImporter_OptionsManager::getOption()
S
67 3 8
WoosharkAliexpressImporter_OptionsManager::getRoleOption()
S
68 3 7
wads_initOriginalProductUrl()
S
61 1 20
wads_woo_add_custom_general_fields_originalProductUrl()
S
67 1 16
simple_html_dom::load_file()
S
67 2 8
simple_html_dom::save()
S
72 2 5
WoosharkAliexpressImporter_InstallIndicator::getPluginHeaderValue()
S
64 2 9
simple_html_dom::link_nodes()
S
69 2 7
simple_html_dom_node::__unset()
S
79 2 3
simple_html_dom_node::remove()
S
75 2 5
simple_html_dom::copy_until()
S
67 2 7
simple_html_dom_node::parent()
S
68 2 8
WoosharkAliexpressImporter_OptionsManager::canUserDoRoleOption()
S
69 2 7
simple_html_dom_node::save()
S
69 2 7
simple_html_dom_node::first_child()
S
72 2 6
simple_html_dom_node::last_child()
S
72 2 6
simple_html_dom::as_text_node()
S
65 2 8
WoosharkAliexpressImporter_OptionsManager::prefix()
S
68 2 7
WoosharkAliexpressImporter_OptionsManager::unPrefix()
S
68 2 7
WoosharkAliexpressImporter_ShortCodeScriptLoader::addScriptWrapper()
S
75 2 5
checkVersionActivation_alibay()
S
69 2 8
simple_html_dom::skip()
S
73 2 4
wads_WoosharkAliexpressImporter_PhpVersionCheck()
S
67 2 8
WoosharkAliexpressImporter_OptionsManager::isUserRoleEqualOrBetterThan()
S
69 2 7
WoosharkAliexpressImporter_OptionsManager::registerSettings()
S
68 2 7
WoosharkAliexpressImporter_OptionsManager::createSettingsMenu()
S
63 1 11
WoosharkAliexpressImporter_Plugin::upgrade()
S
91 1 2
WoosharkAliexpressImporter_LifeCycle::addActionsAndFilters()
S
91 1 2
WoosharkAliexpressImporter_OptionsManager::jquery_add_to_contact()
S
82 1 3
simple_html_dom_node::xmltext()
S
70 1 6
WoosharkAliexpressImporter_InstallIndicator::isSavedVersionLessThanEqual()
S
79 1 3
simple_html_dom::createElement()
S
78 1 3
WoosharkAliexpressImporter_InstallIndicator::markAsUnInstalled()
S
80 1 3
simple_html_dom_node::getElementById()
S
79 1 3
WoosharkAliexpressImporter_InstallIndicator::getMainPluginFileName()
S
79 1 3
WoosharkAliexpressImporter_LifeCycle::addSettingsSubMenuPage()
S
82 1 3
WoosharkAliexpressImporter_Plugin::unInstallDatabaseTables()
S
91 1 2
WoosharkAliexpressImporter_InstallIndicator::getVersion()
S
80 1 3
WoosharkAliexpressImporter_InstallIndicator::isVersionLessThanEqual()
S
78 1 3
simple_html_dom::getElementsByTagName()
S
80 1 3
simple_html_dom_node::setAttribute()
S
80 1 3
WoosharkAliexpressImporter_InstallIndicator::isSavedVersionLessThan()
S
79 1 3
simple_html_dom_node::hasAttribute()
S
81 1 3
WoosharkAliexpressImporter_ShortCodeScriptLoader::addScript()
S
100 1 0
WoosharkAliexpressImporter_LifeCycle::installDatabaseTables()
S
91 1 2
WoosharkAliexpressImporter_Plugin::installDatabaseTables()
S
91 1 2
WoosharkAliexpressImporter_InstallIndicator::isVersionLessThan()
S
78 1 3
WoosharkAliexpressImporter_ShortCodeLoader::register()
S
80 1 3
WoosharkAliexpressImporter_ShortCodeLoader::handleShortcode()
S
100 1 0
WoosharkAliexpressImporter_ShortCodeScriptLoader::register()
S
75 1 4
WoosharkAliexpressImporter_OptionsManager::deleteOption()
S
76 1 4
WoosharkAliexpressImporter_OptionsManager::updateOption()
S
75 1 4
simple_html_dom::createTextNode()
S
80 1 3
WoosharkAliexpressImporter_OptionsManager::getOptionNamePrefix()
S
79 1 3
simple_html_dom_node::previousSibling()
S
82 1 3
WoosharkAliexpressImporter_OptionsManager::initOptions()
S
98 1 1
simple_html_dom_node::getAttribute()
S
81 1 3
simple_html_dom_node::getElementsById()
S
79 1 3
simple_html_dom::__destruct()
S
83 1 3
simple_html_dom_node::lastChild()
S
82 1 3
WoosharkAliexpressImporter_LifeCycle::settingMenu()
S
91 1 2
simple_html_dom_node::childNodes()
S
81 1 3
simple_html_dom_node::has_child()
S
80 1 3
simple_html_dom_node::__toString()
S
82 1 3
WoosharkAliexpressImporter_LifeCycle::getAjaxUrl()
S
79 1 3
WoosharkAliexpressImporter_LifeCycle::activate()
S
91 1 2
simple_html_dom_node::getElementByTagName()
S
80 1 3
WoosharkAliexpressImporter_LifeCycle::initOptions()
S
91 1 2
simple_html_dom::set_callback()
S
82 1 3
wads_WoosharkAliexpressImporter_noticePhpVersionWrong()
S
66 1 8
WoosharkAliexpressImporter_ShortCodeScriptLoader::handleShortcodeWrapper()
S
76 1 4
WoosharkAliexpressImporter_InstallIndicator::isInstalled()
S
79 1 3
simple_html_dom::lastChild()
S
82 1 3
simple_html_dom_node::parentNode()
S
82 1 3
simple_html_dom::remove_callback()
S
82 1 3
WoosharkAliexpressImporter_Plugin::getOptionMetaData()
S
65 1 8
WoosharkAliexpressImporter_InstallIndicator::saveInstalledVersion()
S
81 1 3
WoosharkAliexpressImporter_OptionsManager::getOptionMetaData()
S
82 1 3
WoosharkAliexpressImporter_Plugin::getMainPluginFileName()
S
82 1 3
simple_html_dom_node::hasChildNodes()
S
82 1 3
simple_html_dom::getElementsById()
S
79 1 3
simple_html_dom::__toString()
S
82 1 3
simple_html_dom_node::firstChild()
S
82 1 3
simple_html_dom::firstChild()
S
82 1 3
WoosharkAliexpressImporter_InstallIndicator::getPluginDir()
S
80 1 3
WoosharkAliexpressImporter_LifeCycle::getSettingsSlug()
S
79 1 3
simple_html_dom_node::appendChild()
S
77 1 4
WoosharkAliexpressImporter_LifeCycle::install()
S
70 1 7
WoosharkAliexpressImporter_InstallIndicator::markAsInstalled()
S
79 1 3
simple_html_dom_node::getElementsByTagName()
S
80 1 3
my_plugin_add_webp_support_alibay()
S
77 1 4
WoosharkAliexpressImporter_InstallIndicator::getVersionSaved()
S
80 1 3
WoosharkAliexpressImporter_Plugin::addActionsAndFilters()
S
79 1 3
simple_html_dom_node::__construct()
S
77 1 4
WoosharkAliexpressImporter_OptionsManager::getOptionNames()
S
80 1 3
WoosharkAliexpressImporter_InstallIndicator::isInstalledCodeAnUpgrade()
S
80 1 3
simple_html_dom_node::clear()
S
72 1 6
WoosharkAliexpressImporter_LifeCycle::prefixTableName()
S
75 1 4
simple_html_dom_node::getAllAttributes()
S
83 1 3
dump_html_tree()
S
82 1 3
simple_html_dom::childNodes()
S
81 1 3
WoosharkAliexpressImporter_Plugin::getPluginDisplayName()
S
82 1 3
WoosharkAliexpressImporter_LifeCycle::otherInstall()
S
91 1 2
WoosharkAliexpressImporter_LifeCycle::requireExtraPluginFiles()
S
76 1 4
WoosharkAliexpressImporter_LifeCycle::unInstallDatabaseTables()
S
91 1 2
simple_html_dom::getElementById()
S
79 1 3
WoosharkAliexpressImporter_InstallIndicator::setVersionSaved()
S
79 1 3
simple_html_dom_node::removeAttribute()
S
80 1 3
WoosharkAliexpressImporter_LifeCycle::upgrade()
S
91 1 2
WoosharkAliexpressImporter_LifeCycle::submenuAliExpressCallback()
S
74 1 7
WoosharkAliexpressImporter_LifeCycle::otherUninstall()
S
91 1 2
simple_html_dom::getElementByTagName()
S
80 1 3
WoosharkAliexpressImporter_LifeCycle::uninstall()
S
73 1 6
WoosharkAliexpressImporter_OptionsManager::addOption()
S
75 1 4
simple_html_dom::loadFile()
S
77 1 4
simple_html_dom_node::nextSibling()
S
82 1 3
WoosharkAliexpressImporter_LifeCycle::deactivate()
S
91 1 2
simple_html_dom::dump()
S
82 1 3
wads_wooshark_myprefix_cron_function()
S
80 1 3
WoosharkAliexpressImporter_LifeCycle::addSettingsSubMenuPageToSettingsMenu()
S
91 1 2
simple_html_dom::find()
S
79 1 3
simple_html_dom_node::__destruct()
S
83 1 3
WoosharkAliexpressImporter_OptionsManager::getPluginDisplayName()
S
80 1 3
simple_html_dom_node::nodeName()
S
83 1 3