Code Analysis: WP Performance 1.1.8.3

Function Rating Maintainability Complexity Lines of code
HtmlDOM::read_tag()
D
22
57 168
Parser::buildTemplate()
D
24
42 160
simple_html_dom_node::seek()
D
32 44 86
Parser::parseCSS()
D
28
39 119
Parser::parseJS()
D
32 34 95
Parser::parseImages()
D
33 32 88
wpp_update_htaccess()
C
34 25 89
WPP\Addons\Cloudflare\Cloudflare::saveCloudflareSettings()
C
35 23 80
wpp_ajax_image_actions()
B
33 19 96
HtmlDOM::parse_charset()
B
39 20 63
simple_html_dom_node::parse_selector()
B
39 18 63
simple_html_dom_node::outertext()
B
44 17 40
wpp_is_resource_disabled()
B
44 16 48
wpp_save_settings()
A
30 10 128
simple_html_dom_node::get_display_size()
A
45 14 42
simple_html_dom_node::find()
A
48 14 31
Cache::clear()
A
45 13 41
simple_html_dom_node::is_utf8()
A
50 13 26
wpp_compatibility_check()
A
38 10 69
simple_html_dom_node::convert_text()
A
48 12 33
wpp_in_array()
A
52 12 28
simple_html_dom_node::dump_node()
A
44 10 47
wpp_load_settings()
A
48 11 31
wpp_cron_prepare_preload()
A
45 10 43
Parser::parseTemplate()
A
49 10 30
wpp_get_nginx_rewrite_rules()
A
45 9 41
simple_html_dom_node::text()
A
52 10 23
Image::sizes()
A
48 9 35
API::request()
A
44 8 44
HtmlDOM::parse_attr()
A
49 9 28
wpp_ajax_database_actions()
A
47 8 42
wpp_define_wp_cache()
A
51 9 27
CLI::cleanup()
A
46 8 40
Image::getAllVariations()
A
46 8 38
Parser::parseHTML()
A
49 8 34
wpp_maybe_show_exclude_option()
A
57 9 17
_wpp_is_mobile()
A
57 9 16
wpp_cron_preload_cache()
A
49 8 30
wpp_cron_db_cleanup()
A
51 8 28
simple_html_dom_node::makeup()
A
50 8 26
wpp_import_settings()
A
51 8 25
_wpp_get_cache_file()
A
51 8 24
simple_html_dom_node::match()
A
53 8 22
Cache::save()
A
53 8 19
wpp_add_top_menu_item()
A
36 2 106
wpp_active()
S
61 8 13
wpp_activate()
S
54 7 21
DB::clearCronTasks()
S
55 7 19
Input::getMethod()
S
57 7 18
wpp_exclude_edd_pages()
S
61 7 14
WPP\Addons\Varnish\Varnish::httpPurge()
S
50 6 27
wpp_deactivate()
S
52 6 26
HtmlDOM::restore_noise()
S
52 6 24
UI::register()
S
46 5 38
wpp_cache_files_size()
S
53 6 22
simple_html_dom_node::__set()
S
54 6 22
HtmlDOM::copy_until_char_escape()
S
54 6 21
HtmlDOM::remove_noise()
S
53 6 20
HtmlDOM::clear()
S
56 6 20
wpp_get_server_software()
S
58 6 17
simple_html_dom_node::__get()
S
58 6 17
DB::getCronTasksCount()
S
58 6 16
simple_html_dom_node::dump()
S
57 6 15
HtmlDOM::__get()
S
61 6 14
wpp_delete_files_list()
S
55 5 20
Minify::resource()
S
55 5 19
Minify::replacePaths()
S
55 5 19
simple_html_dom_node::find_ancestor_tag()
S
57 5 17
WPP\Addons\Prefetch\Prefetch::parseLinks()
S
59 5 14
simple_html_dom_node::next_sibling()
S
60 5 14
wpp_key_exists()
S
61 5 13
wpp_exclude_woocommerce_pages()
S
63 5 12
simple_html_dom_node::__isset()
S
63 5 11
wpp_save_post_options()
S
55 4 21
Image::getAllDefinedSizesJson()
S
58 4 16
simple_html_dom_node::prev_sibling()
S
65 5 8
Parser::__construct()
S
58 4 15
Parser::is_amp()
S
64 5 10
API::__call()
S
62 5 10
wpp_is_ajax()
S
64 5 10
wpp_deactivate_incompatible_plugin()
S
58 4 15
HtmlDOM::copy_until_char()
S
59 4 14
Parser::parseIframes()
S
61 4 13
wpp_is_url_excluded()
S
60 4 13
Cache::getFileName()
S
60 4 12
Collection::get()
S
63 4 12
HtmlDOM::search_noise()
S
63 4 11
HtmlDOM::prepare()
S
52 3 24
WPP\Addons\Cloudflare\Cloudflare_API::setMinify()
S
54 3 21
wpp_is_optimization_disabled_for()
S
65 4 9
wpp_get_critical_css_path()
S
50 2 30
simple_html_dom_node::innertext()
S
67 4 7
Collection::remove()
S
65 4 10
API::getUrl()
S
66 4 7
Cache::clearEverything()
S
60 3 14
Parser::saveCache()
S
58 3 14
wpp_get_defined_image_sizes()
S
61 3 12
WPP\Addons\Prefetch\Prefetch::__construct()
S
61 3 12
wpp_enqueue_backend_assets()
S
47 1 35
wpp_ajax_remove_post_options()
S
56 2 18
WPP\Addons\Cloudflare\Cloudflare::__construct()
S
55 2 18
HtmlDOM::load()
S
57 2 17
wpp_is_multisite_on()
S
65 3 9
File::prepend()
S
67 3 7
HtmlDOM::copy_skip()
S
65 3 8
WPP\Addons\Cloudflare\Cloudflare_API::setBrowserCacheExpiration()
S
56 2 15
_wpp_get_current_url()
S
72 3 4
simple_html_dom_node::children()
S
66 3 9
Input::filter()
S
62 3 10
Url::getClean()
S
63 3 9
WP_Performance::run()
S
69 3 7
wpp_is_log_file_too_large()
S
65 3 9
HtmlDOM::__construct()
S
65 3 9
API::checkStatusCode()
S
76 3 3
File::getJson()
S
65 3 9
wpp_file_get_html()
S
63 3 9
wpp_disable_embeds_rewrites()
S
68 3 7
wpp_str_get_html()
S
64 3 9
wpp_is_localhost()
S
67 3 7
wpp_is_minified()
S
70 3 6
WPP\Addons\Cloudflare\Cloudflare::ajaxPurgeCacheCustomUrl()
S
59 2 14
_wpp_get_site_settings()
S
61 2 14
WPP\Addons\Cloudflare\Cloudflare_API::setBrotliMode()
S
60 2 13
WPP\Addons\Cloudflare\Cloudflare_API::setRocketLoaderMode()
S
60 2 13
WPP\Addons\Cloudflare\Cloudflare_API::setDevelopmentMode()
S
60 2 13
WPP\Addons\Cloudflare\Cloudflare_API::setCacheLevel()
S
60 2 13
WPP\Addons\Varnish\Varnish::__construct()
S
61 2 13
Option::getAll()
S
61 2 13
WPP\Addons\Cloudflare\Cloudflare::ajaxPurgeCache()
S
60 2 13
wpp_get_options()
S
62 2 12
wpp_export_settings_file()
S
61 2 12
wpp_add_disable_link()
S
61 2 11
wpp_get_cron_schedules()
S
54 1 23
UI::removeLink()
S
73 2 5
WPP\Addons\Prefetch\Prefetch::loadScript()
S
72 2 5
API::getCache()
S
69 2 7
wpp_get_basedir()
S
66 2 8
wpp_get_search_engines()
S
61 1 15
wpp_log()
S
67 2 8
wpp_uninstall()
S
67 2 8
wpp_ajax_get_log_content()
S
69 2 7
wpp_add_plugin_extra_links()
S
70 2 6
simple_html_dom_node::__unset()
S
79 2 3
WP_Performance::instance()
S
72 2 6
DB::getTrashCount()
S
66 2 8
Option::get()
S
74 2 4
simple_html_dom_node::last_child()
S
70 2 6
HtmlDOM::as_text_node()
S
65 2 8
simple_html_dom_node::parent()
S
68 2 8
HtmlDOM::copy_until()
S
67 2 7
HtmlDOM::parse()
S
63 2 10
HtmlDOM::skip()
S
73 2 4
HtmlDOM::link_nodes()
S
69 2 7
WPP\Addons\Cloudflare\Cloudflare_API::instance()
S
72 2 6
WP_Performance::backend()
S
62 1 15
simple_html_dom_node::first_child()
S
72 2 6
Image::getNonRegenerated()
S
59 1 15
DB::getSpamCount()
S
65 2 9
Collection::add()
S
70 2 6
Minify::code()
S
69 2 6
Parser::init()
S
71 2 6
Input::getFilter()
S
71 2 6
DB::getRevisionsCount()
S
66 2 8
UI::removePage()
S
73 2 5
HtmlDOM::save()
S
72 2 5
DB::getAutoDraftsCount()
S
66 2 8
WP_Performance::frontend()
S
73 2 5
API::clearCache()
S
66 2 8
File::get()
S
71 2 6
wpp_get_log_file()
S
73 2 5
File::saveJson()
S
70 2 6
File::append()
S
70 2 6
wpp_is_plugin_page()
S
71 2 6
wpp_get_list_options()
S
60 1 15
wpp_preload_homepage()
S
67 2 8
wpp_checked()
S
74 2 5
wpp_disable_emojis_remove_dns_prefetch()
S
68 2 7
wpp_get_constant()
S
74 2 5
wpp_notify()
S
64 2 9
wpp_delete_list_options()
S
69 2 7
wpp_load_template()
S
65 2 9
wpp_clear_log()
S
71 2 6
wpp_get_file_hostname()
S
71 2 6
wpp_selected()
S
73 2 5
wpp_disable_emojis_tinymce()
S
73 2 5
File::save()
S
70 2 6
DB::getTransientsCount()
S
63 2 10
HtmlDOM::load_file()
S
66 2 8
Url::current()
S
77 2 3
File::saveSiteSettings()
S
60 1 13
wpp_disable_emoji()
S
62 1 11
UI::addLink()
S
63 1 11
simple_html_dom_node::nodeName()
S
83 1 3
HtmlDOM::__toString()
S
82 1 3
DB::clearRevisions()
S
70 1 6
API::setCache()
S
78 1 3
simple_html_dom_node::getAttribute()
S
81 1 3
WP_Performance::__wakeup()
S
71 1 7
wpp_disable_embeds()
S
63 1 10
UI::getPages()
S
81 1 3
Image::getAllImages()
S
64 1 9
HtmlDOM::find()
S
79 1 3
DB::clearTrash()
S
70 1 6
wpp_is_htaccess_writable()
S
79 1 3
DB::clear()
S
67 1 9
simple_html_dom_node::clear()
S
72 1 6
simple_html_dom_node::getElementsById()
S
79 1 3
simple_html_dom_node::firstChild()
S
82 1 3
HtmlDOM::childNodes()
S
81 1 3
wpp_cleanup_header()
S
67 1 8
HtmlDOM::getElementsById()
S
79 1 3
simple_html_dom_node::childNodes()
S
81 1 3
WPP\Addons\Cloudflare\Cloudflare::saveSettings()
S
79 1 3
DB::clearSpam()
S
70 1 6
simple_html_dom_node::nextSibling()
S
82 1 3
wpp_disable_embeds_tinymce_plugin()
S
79 1 3
simple_html_dom_node::__toString()
S
82 1 3
Option::boolval()
S
78 1 3
Image::getAllDefinedSizes()
S
78 1 3
simple_html_dom_node::getAllAttributes()
S
83 1 3
Cache::exists()
S
79 1 3
UI::addPage()
S
71 1 6
simple_html_dom_node::parentNode()
S
82 1 3
File::isLocal()
S
79 1 3
Option::add()
S
77 1 3
simple_html_dom_node::xmltext()
S
70 1 6
simple_html_dom_node::removeAttribute()
S
80 1 3
WP_Performance::__clone()
S
71 1 7
Option::remove()
S
79 1 3
simple_html_dom_node::__destruct()
S
83 1 3
WPP\Addons\Cloudflare\Cloudflare_API::__construct()
S
64 1 9
HtmlDOM::dump()
S
82 1 3
Url::path()
S
77 1 3
Input::__callStatic()
S
77 1 3
simple_html_dom_node::lastChild()
S
82 1 3
wpp_get_file_clean_name()
S
80 1 3
WPP\Addons\Cloudflare\Cloudflare_API::getZoneDetails()
S
80 1 3
simple_html_dom_node::getElementByTagName()
S
80 1 3
Option::removeAll()
S
67 1 9
CLI::enable()
S
69 1 6
wpp_add_metabox()
S
65 1 10
DB::clearTransients()
S
70 1 6
simple_html_dom_node::appendChild()
S
77 1 4
simple_html_dom_node::hasAttribute()
S
81 1 3
HtmlDOM::set_callback()
S
82 1 3
simple_html_dom_node::getElementsByTagName()
S
80 1 3
Parser::__toString()
S
80 1 3
WPP\Addons\Prefetch\Prefetch::updateOptions()
S
79 1 3
HtmlDOM::getElementById()
S
79 1 3
dump_html_tree()
S
82 1 3
HtmlDOM::getElementByTagName()
S
80 1 3
simple_html_dom_node::getElementById()
S
79 1 3
CLI::disable()
S
69 1 6
HtmlDOM::firstChild()
S
82 1 3
simple_html_dom_node::hasChildNodes()
S
82 1 3
wpp_url_replace_wildcards()
S
63 1 10
HtmlDOM::createElement()
S
78 1 3
CLI::flush()
S
73 1 5
WPP\Addons\Cloudflare\Cloudflare_API::purgeCacheCustomUrl()
S
69 1 7
wpp_filesize()
S
69 1 5
HtmlDOM::createTextNode()
S
80 1 3
File::path()
S
77 1 3
HtmlDOM::remove_callback()
S
82 1 3
WPP\Addons\Varnish\Varnish::clearDomain()
S
79 1 3
HtmlDOM::loadFile()
S
77 1 4
wpp_display_cache_metabox()
S
81 1 3
WPP\Addons\Varnish\Varnish::updateOptions()
S
75 1 4
UI::getLinks()
S
81 1 3
simple_html_dom_node::has_child()
S
80 1 3
HtmlDOM::getElementsByTagName()
S
80 1 3
WP_Performance::__construct()
S
76 1 4
HtmlDOM::lastChild()
S
82 1 3
simple_html_dom_node::previousSibling()
S
82 1 3
wpp_add_menu_item()
S
72 1 5
Option::update()
S
78 1 3
wpp_get_prefix()
S
79 1 3
simple_html_dom_node::setAttribute()
S
80 1 3
HtmlDOM::__destruct()
S
83 1 3
WPP\Addons\Cloudflare\Cloudflare_API::purgeCache()
S
70 1 7
simple_html_dom_node::__construct()
S
77 1 4
DB::clearAutoDrafts()
S
70 1 6