Code Analysis: Product Advisor for Ecwid 0.8 beta9

Function Rating Maintainability Complexity Lines of code
ecwid_random_products_do_options_page()
A
33 11 108
EcwidRandomProducts_Display::showProduct()
A
39 10 75
EcwidRandomProducts_BestsellersApi::check_products()
A
54 9 19
EcwidRandomProducts_Display::show_products_table()
A
48 8 31
EcwidRandomProductsPaidCachedEcwidStore::getCategoriesInternal()
A
50 8 30
EcwidRandomProductsProductDisplay::showProductsTable()
A
51 8 24
EcwidRandomProducts_EcwidStore::get_all_categories()
S
51 7 29
EcwidRandomProductsFreeEcwidStore::getProductsInternal()
S
53 7 25
EcwidRandomProductsProductGroup::__construct()
S
54 7 21
EcwidRandomProducts_Widget_RandomProducts::update()
S
56 7 18
EcwidRandomProducts_Widget_OnSaleProducts::update()
S
56 7 17
EcwidRandomProducts_ProductFactory::get_products()
S
49 6 31
ecwid_random_products_admin_init()
S
47 5 40
EcwidRandomProducts_Bestsellers::prepare_params()
S
54 6 23
EcwidRandomProducts_EcwidShoppingCartSettings::__construct()
S
52 6 23
EcwidRandomProducts_BestsellersApi::throw_exception_request_error()
S
47 5 36
EcwidRandomProductsPaidEcwidStore::randomizeProducts()
S
56 6 18
EcwidRandomProducts_Widget_Bestsellers::update()
S
58 6 15
EcwidRandomProducts_ShortcodeSettings::__construct()
S
61 6 12
EcwidBestsellersApi::internal_fetch_url_libcurl()
S
52 5 22
EcwidRandomProducts_EcwidStore::randomize_products()
S
55 5 20
EcwidRandomProducts_Bestsellers::__construct()
S
56 5 19
EcwidRandomProducts_EcwidStore::get_products_by_category_id()
S
57 5 17
EcwidRandomProductsCoreSettings::getCurrency()
S
57 5 17
EcwidRandomProducts_RandomProducts::__construct()
S
58 5 16
EcwidRandomProducts_EcwidStore::get_products_detailed_info()
S
58 5 15
WPSwiftLib::requireScriptsFromDirectory()
S
63 6 10
EcwidRandomProducts_Widget_LatestProducts::update()
S
60 5 13
EcwidRandomProducts_OnSaleProducts::__construct()
S
60 5 13
EcwidRandomProducts_RandomProducts::create_products()
S
57 4 17
EcwidRandomProductsCoreSettings::__construct()
S
55 4 17
EcwidRandomProducts_FreeEcwidStoreDecorator::get_all_products()
S
59 4 16
EcwidBestsellersApi::get_bestsellers()
S
58 4 15
EcwidRandomProductsPaidCachedEcwidStore::getProfile()
S
59 4 15
EcwidRandomProductsPaidCachedEcwidStore::getProductsByCategoryId()
S
63 5 10
EcwidRandomProductsPaidCachedEcwidStore::getProductsInternal()
S
59 4 15
EcwidRandomProductsWidget::update()
S
64 5 8
EcwidRandomProducts_RandomProducts::prepare_params()
S
60 4 14
EcwidRandomProductsEcwidStoreCreator::getInstance()
S
60 4 14
EcwidRandomProductsCoreSettings::getEcwidPageUrl()
S
61 4 12
EcwidRandomProducts_Widget_OnSaleProducts::widget()
S
53 3 22
EcwidRandomProducts_Widget_Bestsellers::widget()
S
54 3 21
EcwidRandomProducts_Widget_RandomProducts::widget()
S
54 3 21
EcwidRandomProducts_Widget_LatestProducts::widget()
S
55 3 20
EcwidRandomProductsWidget::widget()
S
55 3 19
EcwidRandomProducts_Display::show_products_internal()
S
56 3 19
EcwidRandomProductsProductDisplay::showProduct()
S
56 3 18
EcwidRandomProducts_Widget_OnSaleProducts::form()
S
55 3 16
EcwidRandomProducts_LatestProducts::create_products()
S
59 3 15
EcwidRandomProducts_OnSaleProducts::create_products()
S
59 3 15
EcwidRandomProducts_Bestsellers::create_products()
S
59 3 14
WPSwiftLib::showWidgetSelectBoxSetting()
S
58 3 13
EcwidRandomProducts_EcwidStore::get_all_products()
S
62 3 12
EcwidRandomProducts_OnSaleProducts::prepare_params()
S
62 3 12
WPSwiftLib::showCheckboxSetting()
S
61 3 11
EcwidRandomProductsPaidCachedEcwidStore::getRandomProductsByCategoryId()
S
63 3 11
EcwidRandomProductsPaidEcwidStore::getRandomProductsByCategoryId()
S
63 3 11
EcwidRandomProductsPaidEcwidStore::getProductsByCategoryId()
S
64 3 11
EcwidRandomProductsProductDisplay::showProductsInternal()
S
56 2 17
EcwidRandomProducts_EcwidStore::get_profile()
S
66 3 9
EcwidRandomProducts_EcwidStoreFactory::create_instance()
S
65 3 9
EcwidRandomProductsFreeEcwidStore::getProduct()
S
67 3 8
EcwidRandomProducts_LatestProducts::__construct()
S
65 3 9
EcwidRandomProductsPaidCachedEcwidStore::getProduct()
S
67 3 8
ecwid_random_products_admin_message()
S
69 3 7
EcwidRandomProductsPaidCachedEcwidStore::getCategory()
S
67 3 8
EcwidRandomProducts_Product::__construct()
S
57 2 15
EcwidRandomProductsCoreSettings::canShowProducts()
S
65 3 10
EcwidRandomProductsProductSettings::__construct()
S
64 3 10
EcwidRandomProducts_Account::get_account_status()
S
62 2 13
EcwidBestsellersApi::process_request()
S
61 2 13
EcwidRandomProducts_Widget_RandomProducts::form()
S
58 2 13
EcwidRandomProductsWidget::form()
S
59 2 12
EcwidBestsellersApi::get_on_sale_products()
S
62 2 12
ecwid_on_sale_products_shortcode()
S
58 1 16
EcwidRandomProducts_EcwidStore::__construct()
S
70 2 6
ecwid_bestsellers_shortcode()
S
59 1 15
EcwidRandomProducts_EcwidStore::get_product()
S
66 2 8
EcwidRandomProducts_EcwidStore::get_random_products_by_category_id()
S
64 2 10
EcwidRandomProducts_Config::get_instance()
S
74 2 5
EcwidRandomProducts_EcwidStore::get_random_products_no_cache()
S
68 2 7
WPSwiftLib::showInfoSetting()
S
63 2 10
EcwidRandomProducts_BestsellersApi::__construct()
S
68 2 7
EcwidRandomProductsFreeEcwidStore::getRandomProducts()
S
68 2 8
WPSwiftLib::showWidgetCheckboxSetting()
S
64 2 8
EcwidBestsellersApi::EcwidBestsellersApi()
S
73 2 5
EcwidRandomProducts_Account::__construct()
S
70 2 6
EcwidBestsellersApi::delete_cache()
S
64 2 9
EcwidBestsellersApi::get_latest_products()
S
64 2 10
ecwid_random_products_shortcode()
S
59 1 15
WPSwiftLib::showStringSetting()
S
62 2 10
EcwidRandomProducts_Config::get_currency()
S
69 2 7
EcwidRandomProducts_FreeEcwidStoreDecorator::get_product()
S
66 2 9
EcwidRandomProductsPaidCachedEcwidStore::getRandomProducts()
S
67 2 8
EcwidBestsellersApi::internal_parse_json()
S
66 2 8
EcwidRandomProductsCoreSettings::getInstance()
S
69 2 7
EcwidRandomProducts_EcwidShoppingCartSettings::is_page_available()
S
79 2 3
EcwidRandomProducts_EcwidStoreFactory::get_instance()
S
64 2 10
ecwid_latest_products_shortcode()
S
60 1 14
ecwid_random_products_uninstall()
S
63 1 12
ecwid_random_products_activate()
S
62 1 12
EcwidRandomProducts_Widget_OnSaleProducts::get_default_instance()
S
63 1 12
EcwidRandomProducts_Widget_Bestsellers::form()
S
61 1 11
EcwidRandomProducts_Widget_RandomProducts::get_default_instance()
S
64 1 11
EcwidRandomProducts_Widget_Bestsellers::get_default_instance()
S
64 1 11
EcwidRandomProducts_Widget_RandomProducts::EcwidRandomProducts_Widget_RandomProducts()
S
74 1 4
EcwidRandomProducts_BestsellersApiFactory::get_instance()
S
79 1 3
EcwidRandomProducts_Bestsellers::get_products()
S
82 1 3
EcwidRandomProducts_Config::is_page_available()
S
80 1 3
EcwidRandomProducts_EcwidShoppingCartSettings::get_currency()
S
82 1 3
EcwidRandomProducts_ShortcodeSettings::how_many_per_row()
S
82 1 3
EcwidRandomProductsFreeEcwidStore::getRandomProductsByCategoryId()
S
80 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::get_account_trial_days()
S
82 1 3
WPSwiftLib::showWidgetStringSetting()
S
66 1 7
EcwidRandomProducts_EcwidRandomProductsSettings::get_account_block_date()
S
82 1 3
EcwidRandomProducts_Product::getPrice()
S
82 1 3
EcwidRandomProducts_Widget_OnSaleProducts::EcwidRandomProducts_Widget_OnSaleProducts()
S
74 1 4
EcwidRandomProducts_EcwidRandomProductsSettings::get_currency_suffix()
S
80 1 3
EcwidRandomProductsCoreSettings::isLocalCurrency()
S
81 1 3
EcwidRandomProductsPaidEcwidStore::getProfile()
S
81 1 3
EcwidRandomProductsCoreSettings::isSeoCatalogEnabled()
S
81 1 3
EcwidRandomProducts_ShortcodeSettings::is_show_sku()
S
82 1 3
EcwidRandomProducts_EcwidShoppingCartSettings::get_currency_prefix()
S
80 1 3
EcwidRandomProductsProductSettings::getProductWidth()
S
82 1 3
EcwidRandomProducts_EcwidStore::get_random_products()
S
73 1 5
EcwidRandomProducts_Widget_LatestProducts::form()
S
62 1 10
EcwidRandomProducts_Product::getProductUrl()
S
82 1 3
EcwidRandomProducts_Config::is_cached()
S
80 1 3
EcwidRandomProductsPaidEcwidStore::getRandomProducts()
S
80 1 3
EcwidRandomProducts_ShortcodeSettings::product_width()
S
82 1 3
EcwidRandomProductsPaidEcwidStore::getProduct()
S
80 1 3
EcwidRandomProductsFreeEcwidStore::__construct()
S
80 1 3
EcwidRandomProducts_Product::getCategoryId()
S
82 1 3
EcwidBestsellersApi::__construct()
S
80 1 3
EcwidRandomProducts_Display::show_products()
S
69 1 6
EcwidRandomProductsPaidEcwidStore::__construct()
S
80 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::is_local_currency_used()
S
82 1 3
EcwidRandomProducts_Product::getThumbnailUrl()
S
82 1 3
EcwidRandomProducts_Config::__construct()
S
76 1 4
EcwidRandomProducts_FreeEcwidStoreDecorator::get_random_products_by_category_id()
S
80 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::get_secure_auth_key()
S
82 1 3
EcwidRandomProducts_Account::prepare_params()
S
81 1 3
EcwidRandomProductsCoreSettings::getCacheDirectory()
S
80 1 3
EcwidRandomProducts_ShortcodeSettings::is_show_title()
S
82 1 3
EcwidRandomProducts_Product::getSKU()
S
82 1 3
EcwidRandomProducts_ShortcodeSettings::is_show_price()
S
82 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::__construct()
S
63 1 10
EcwidRandomProducts_Widget_LatestProducts::EcwidRandomProducts_Widget_LatestProducts()
S
74 1 4
EcwidRandomProducts_EcwidShoppingCartSettings::is_free_account()
S
82 1 3
EcwidRandomProducts_RandomProducts::get_products()
S
82 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::get_account_days_left()
S
82 1 3
EcwidRandomProducts_Config::is_core_plugin_active()
S
80 1 3
EcwidRandomProducts_FreeEcwidStoreDecorator::get_random_products()
S
73 1 5
EcwidRandomProducts_LatestProducts::prepare_params()
S
81 1 3
EcwidRandomProductsWidget::EcwidRandomProductsWidget()
S
74 1 4
EcwidRandomProducts_Product::getName()
S
82 1 3
EcwidRandomProducts_Config::get_secure_auth_key()
S
80 1 3
EcwidRandomProductsCoreSettings::isFreeAccount()
S
81 1 3
EcwidRandomProducts_Widget_Bestsellers::EcwidRandomProducts_Widget_Bestsellers()
S
74 1 4
EcwidRandomProducts_EcwidShoppingCartSettings::is_seo_enabled()
S
82 1 3
EcwidRandomProducts_BestsellersApi::get_on_sale_products()
S
66 1 8
EcwidRandomProductsProductSettings::howManyPerRow()
S
82 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::get_currency_prefix()
S
80 1 3
EcwidRandomProductsProductSettings::showPrice()
S
82 1 3
EcwidRandomProductsProductSettings::showTitle()
S
82 1 3
EcwidRandomProductsProductDisplay::showProducts()
S
69 1 6
EcwidRandomProducts_Widget_LatestProducts::get_default_instance()
S
65 1 10
EcwidRandomProducts_Product::getPriceOrig()
S
82 1 3
EcwidRandomProducts_Widget_OnSaleProducts::get_discount_types()
S
69 1 7
EcwidRandomProducts_FreeEcwidStoreDecorator::__call()
S
79 1 3
EcwidRandomProducts_BestsellersApi::get_latest_products()
S
70 1 6
EcwidBestsellersApi::get_account_status()
S
72 1 5
EcwidRandomProducts_OnSaleProducts::get_products()
S
82 1 3
EcwidRandomProducts_Config::get_ecwid_page_url()
S
80 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::is_cached()
S
82 1 3
EcwidRandomProducts_FreeEcwidStoreDecorator::get_profile()
S
80 1 3
EcwidRandomProducts_BestsellersApi::get_bestsellers()
S
68 1 7
EcwidRandomProducts_FreeEcwidStoreDecorator::get_products_by_category_id()
S
80 1 3
ecwid_random_products_widgets_init()
S
72 1 6
EcwidRandomProducts_FreeEcwidStoreDecorator::get_all_categories()
S
80 1 3
ecwid_random_products_add_menu_page()
S
67 1 10
EcwidRandomProductsFreeEcwidStore::getProfile()
S
80 1 3
EcwidRandomProducts_EcwidShoppingCartSettings::get_currency_suffix()
S
80 1 3
EcwidRandomProducts_BestsellersApi::get_account_status()
S
77 1 4
EcwidRandomProducts_FreeEcwidStoreDecorator::__construct()
S
81 1 3
EcwidRandomProducts_EcwidShoppingCartSettings::is_plugin_active()
S
82 1 3
EcwidRandomProductsCoreSettings::useCache()
S
81 1 3
EcwidRandomProducts_Config::is_local_currency_used()
S
80 1 3
EcwidRandomProductsFreeEcwidStore::getProductsByCategoryId()
S
80 1 3
EcwidRandomProductsCoreSettings::isCorePluginActive()
S
81 1 3
EcwidRandomProductsProductGroup::getProducts()
S
82 1 3
EcwidRandomProducts_Account::check_account_status()
S
71 1 6
EcwidRandomProducts_EcwidRandomProductsSettings::get_currency()
S
82 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::get_account_add_date()
S
82 1 3
EcwidRandomProducts_EcwidRandomProductsSettings::get_account_plan()
S
82 1 3
EcwidRandomProducts_EcwidShoppingCartSettings::get_ecwid_page_url()
S
82 1 3
EcwidRandomProducts_Config::is_free_account()
S
80 1 3
EcwidRandomProducts_Config::is_seo_enabled()
S
80 1 3
EcwidRandomProducts_LatestProducts::get_products()
S
82 1 3