Code Analysis: LWS Optimize 2.0

Function Rating Maintainability Complexity Lines of code
JSMinPlus::parseTree()
D
0
155 353
JSParser::Expression()
D
5
135 298
JSParser::Statement()
D
15
74 263
JSTokenizer::get()
D
18
75 192
Minify::serve()
D
23
46 160
Minify_Controller_MinApp::setupSources()
D
26
38 153
MrClay\Cli::validate()
D
31 34 100
JSMin::action()
C
35 27 88
lws_optimize_manage_media_iframe_video_lazyload_content()
B
38 21 68
JSMin::min()
B
42 22 46
lws_optimize_manage_exclusions_media()
B
37 20 70
Minify::_combineMinify()
B
38 20 68
lws_optimize_fb_cache()
B
41 19 48
lws_optimize_manage_frontend_combine_js()
B
40 18 53
Minify_Controller_Version1::setupSources()
B
40 17 57
HTTP_ConditionalGet::__construct()
B
42 17 47
CSSmin::run()
A
40 15 60
lws_optimize_manage_frontend_minify_js()
A
44 16 41
CSSmin::minify()
A
34 13 85
lws_optimize_manage_media_image_lazyload_content()
A
43 15 47
lws_optimize_manage_media_image_lazyload()
A
44 15 42
lwsop_change_fb_timer()
A
45 15 36
lws_optimize_manage_frontend_combine_css()
A
44 14 41
Minify_Source::__construct()
A
44 13 41
DooDigestAuth::http_auth()
A
45 13 40
HTTP_Encoder::getAcceptedEncoding()
A
47 13 36
lws_op_on_activation()
A
46 13 35
WP_Object_Cache::__construct()
A
43 12 46
lws_optimize_manage_exclusions()
A
44 12 43
Minify_Controller_Groups::setupSources()
A
44 12 43
Minify_CSS_Compressor::_commentCB()
A
46 11 40
lws_optimize_manage_frontend_minify_css()
A
46 11 36
WP_Object_Cache::get()
A
47 11 35
Minify_CSS_UriRewriter::_processUriCB()
A
47 11 33
lws_optimize_start_memcached()
A
47 11 31
Minify_Lines::minify()
A
45 10 40
lwsop_remove_cache_post_change()
A
46 10 38
CSSmin::str_slice()
A
54 11 20
Minify_YUI_CssCompressor::compress()
A
42 9 50
HTTP_Encoder::encode()
A
49 10 30
lws_op_fb_tpl_redirect()
A
48 10 29
CSSmin::extract_data_urls()
A
45 9 41
Minify_Cache_File::_tmp()
A
53 10 23
Minify_ImportProcessor::truepath()
A
52 10 22
lws_op_activate_plugin()
A
51 9 29
JSParser::FunctionDefinition()
A
49 9 28
lws_optimize_remove_other_cache()
A
52 9 27
WP_Object_Cache::set_multi()
A
51 9 26
JSMin::isRegexpLiteral()
A
52 9 23
CSSmin::compress_hex_colors()
A
45 8 38
lws_optimize_manage_frontend_preload_js()
A
55 9 19
Minify_YUICompressor::_getCmd()
A
47 8 34
lws_op_delete_webp_files()
A
44 7 47
Minify_Controller_Files::setupSources()
A
49 8 32
lws_op_other_cache_plugin()
A
48 7 45
Minify_JS_ClosureCompiler::min()
A
50 8 28
Minify_ImportProcessor::_importCB()
A
50 8 27
lwsop_save_specified_urls_fb()
A
51 8 26
lwsop_save_urls_fb()
A
51 8 26
Minify_CSS::minify()
A
47 7 41
WP_Object_Cache::stats()
A
50 8 26
JSMin::consumeMultipleLineComment()
A
51 8 25
Minify_ImportProcessor::_getContent()
A
47 7 37
Minify_mtime()
A
53 8 22
WP_Object_Cache::get_multi()
A
48 7 33
lwsop_autopurge_cache()
S
50 7 28
lwsop_preload_fb()
S
50 7 28
MrClay\Cli::getArgumentsListing()
S
52 7 24
Minify_Lines::_eolInComment()
S
53 7 22
WP_Object_Cache::add()
S
53 7 21
HTTP_Encoder::__construct()
S
54 7 19
JSMin::get()
S
56 7 19
Minify_CSSmin::minify()
S
49 6 33
deleteDirectory()
S
57 7 17
Minify_HTML_Helper::getLastModified()
S
56 7 16
CSSmin::normalize_int()
S
62 8 10
TinyHtmlMinifier::setSkip()
S
58 7 15
HTTP_Encoder::isBuggyIe()
S
58 7 14
Minify_HTML_Helper::_getShortestUri()
S
50 6 28
TinyHtmlMinifier::walk()
S
50 6 28
JSParser::reduce()
S
51 6 28
lws_op_loading()
S
52 6 25
Minify_HTML::_removeScriptCB()
S
55 6 18
Minify_ImportProcessor::_urlCB()
S
55 6 17
Minify::_handleCssImports()
S
56 6 17
WP_Object_Cache::set()
S
56 6 17
Minify_HTML_Helper::getRawUri()
S
56 6 17
Minify_HTML_Helper::setGroup()
S
57 6 17
Minify_HTML_Helper::setFiles()
S
56 6 17
Minify_Controller_MinApp::checkType()
S
58 6 16
Minify_Build::__construct()
S
57 6 16
Minify_Controller_Base::_fileIsSafe()
S
57 6 15
lws_op_check_compatibility()
S
67 7 7
Minify_JS_ClosureCompiler::__construct()
S
60 6 14
Minify_CSS_UriRewriter::rewrite()
S
50 5 28
TinyHtmlMinifier::buildHtml()
S
60 6 12
Minify_ClosureCompiler::minify()
S
54 5 21
JSNode::__construct()
S
54 5 21
lws_op_uncompress_all_to_jpeg()
S
53 5 21
lws_optimize_manage_config()
S
53 5 20
Minify_JS_ClosureCompiler::getResponse()
S
48 4 34
lwsop_remove_cache_post_change_specific()
S
55 5 19
lws_optimize_manage_frontend_preload_css()
S
57 5 18
CSSmin::rgb_to_hex()
S
54 5 18
HTTP_ConditionalGet::resourceMatchedEtag()
S
56 5 17
Minify_HTML_Helper::_getCommonCharAtPos()
S
58 5 16
CSSmin::hue_to_rgb()
S
66 6 7
MrClay\Cli::__construct()
S
64 6 9
TinyHtmlMinifier::compact()
S
58 5 15
Minify_Controller_Base::analyzeSources()
S
59 5 15
Minify_DebugDetector::shouldDebugRequest()
S
57 5 15
Minify_HTML::__construct()
S
58 5 15
lws_optimize_fetch_exclusions()
S
57 5 14
lws_op_scripts()
S
58 5 14
Minify_YUICompressor::_prepare()
S
60 5 14
MrClay\Cli::getPathArgs()
S
58 5 14
CSSmin::do_raise_php_limits()
S
59 5 14
Minify_ClosureCompiler::_prepare()
S
60 5 14
TinyHtmlMinifier::minify()
S
59 5 13
JSParser::Variables()
S
55 4 20
Minify_ClosureCompiler::_getCmd()
S
54 4 20
Minify_HTML::process()
S
45 2 48
Minify_CommentPreserver::process()
S
57 4 17
Minify_CommentPreserver::_nextComment()
S
56 4 17
lwsop_remove_fb_cache_on_cart_update()
S
58 4 16
JSTokenizer::peek()
S
58 4 16
JSMin::next()
S
59 4 16
Minify_Cache_File::store()
S
58 4 15
WP_Object_Cache::flush()
S
63 5 10
lws_optimize_manage_state()
S
59 4 13
lws_optimize_manage_frontend_minify_html()
S
60 4 13
JSMin::consumeSingleLineComment()
S
60 4 13
Minify::setDocRoot()
S
59 4 13
WP_Object_Cache::replace()
S
60 4 13
Minify_ImportProcessor::getPathDiff()
S
60 4 12
Minify_CSS_Compressor::_fontFamilyCB()
S
59 4 12
dir_is_empty()
S
63 4 11
lws_optimize_manage_frontend_webfont_optimize()
S
63 4 11
Minify_Source::getContent()
S
62 4 11
MrClay\Cli\Arg::__call()
S
62 4 11
Minify_Controller_MinApp::_getFileSource()
S
62 4 11
Minify_Controller_Page::setupSources()
S
52 3 26
Minify_CSS_Compressor::_process()
S
44 1 54
TinyHtmlMinifier::removeMeta()
S
56 3 22
Minify_CSS_UriRewriter::rewriteRelative()
S
54 3 19
CSSmin::hsl_to_hex()
S
54 3 19
TinyHtmlMinifier::__construct()
S
45 1 48
lwsop_review_ad_plugin()
S
49 1 47
JsCombiner::combine()
S
58 3 16
Minify_Source::haveNoMinifyPrefs()
S
65 4 9
Minify_YUI_CssCompressor::_shortenHexCB()
S
64 4 9
Minify_Cache_Memcache::getSize()
S
65 4 8
CssCombiner::combine()
S
59 3 15
Minify_Cache_APC::getSize()
S
65 4 8
Minify_Cache_File::fetch()
S
59 3 15
Minify_Cache_WinCache::getSize()
S
68 4 6
Minify_Cache_XCache::getSize()
S
65 4 8
WP_Object_Cache::delete()
S
58 3 15
JSNode::addNode()
S
65 4 10
HTTP_ConditionalGet::_isCacheValid()
S
64 4 10
fetch_url()
S
59 3 14
Minify_Cache_WinCache::_fetch()
S
60 3 14
Minify_Controller_Version1::_setupDefines()
S
59 3 14
Minify_HTML::_removeStyleCB()
S
59 3 14
lwsop_do_the_preload_fb()
S
60 3 13
Minify_Cache_XCache::_fetch()
S
61 3 13
Minify_Cache_ZendPlatform::_fetch()
S
60 3 13
Minify_YUICompressor::_minify()
S
59 3 13
CSSmin::replace_string()
S
58 3 13
Minify_Cache_Memcache::_fetch()
S
61 3 13
Minify_Cache_APC::_fetch()
S
61 3 13
Minify_YUI_CssCompressor::_shortenRgbCB()
S
61 3 12
HTTP_ConditionalGet::resourceNotModified()
S
62 3 11
WP_Object_Cache::key()
S
62 3 11
MrClay\Cli::getErrorReport()
S
62 3 11
Minify_Controller_Base::checkAllowDirs()
S
61 3 11
HTTP_ConditionalGet::sendHeaders()
S
61 3 11
HTTP_ConditionalGet::check()
S
62 3 11
Minify_HTML_Helper::getUri()
S
54 2 21
DooDigestAuth::http_digest_parse()
S
56 2 17
lws_op_fb_tpl_redirect_end()
S
63 3 9
lws_optimize_manage_frontend_eliminate_requests()
S
66 3 9
Minify_Build::uri()
S
69 3 6
CssCombiner::fileValidator()
S
63 3 10
Minify_Source::getContentType()
S
67 3 8
MrClay\Cli::addArgument()
S
64 3 10
Minify::_setupDebug()
S
64 3 9
JSMinPlus::isWordChar()
S
78 3 3
JSParser::Script()
S
59 2 15
TinyHtmlMinifier::addChevrons()
S
66 3 8
JSParser::Statements()
S
65 3 8
Minify_Cache_File::tmp()
S
64 3 10
JsCombiner::fileValidator()
S
63 3 10
Minify_HTML::_commentCB()
S
71 3 5
Minify_JS_ClosureCompiler::buildPostBody()
S
61 2 14
JSMinPlus::min()
S
62 2 12
Minify_Controller_Base::mixInDefaultOptions()
S
62 2 12
Minify_Cache_File::display()
S
62 2 11
JSTokenizer::init()
S
63 2 11
lws_op_page()
S
54 1 21
Minify_Controller_Base::getDefaultMinifyOptions()
S
55 1 20
Minify_Controller_Base::checkNotHidden()
S
69 2 6
lws_op_on_delete()
S
66 2 8
lws_optimize_clear_cache()
S
70 2 5
Minify_Cache_File::__construct()
S
69 2 7
JSMinPlus::minify()
S
67 2 7
Minify_Cache_Memcache::fetch()
S
74 2 5
Minify_Cache_Memcache::isValid()
S
78 2 3
Minify_Source::getDigest()
S
66 2 8
Minify_Logger::setLogger()
S
74 2 5
JSTokenizer::match()
S
79 2 3
HTTP_Encoder::sendHeaders()
S
72 2 5
MrClay\Cli::closeInput()
S
74 2 5
Minify_Loader::loadClass()
S
67 2 7
HTTP_Encoder::output()
S
65 2 9
Minify::setCache()
S
69 2 7
Minify_HTML::_needsCdata()
S
78 2 3
lws_optimize_disable_emojis_tinymce()
S
78 2 3
str_ends_with()
S
77 2 3
wp_cache_set()
S
66 2 8
TinyHtmlMinifier::toType()
S
77 2 3
TinyHtmlMinifier::removeSelfSlash()
S
69 2 6
Minify_Cache_WinCache::display()
S
79 2 3
JSParser::parse()
S
66 2 8
Minify_Cache_XCache::isValid()
S
78 2 3
WP_Object_Cache::add_global_groups()
S
69 2 7
MrClay\Cli::getArgument()
S
78 2 3
Minify_Cache_Memcache::display()
S
74 2 5
MrClay\Cli\Arg::__construct()
S
69 2 7
Minify_Lines::_addNote()
S
71 2 5
Minify_Cache_XCache::fetch()
S
74 2 5
Minify_Cache_ZendPlatform::display()
S
74 2 5
Minify_CSS_UriRewriter::removeDots()
S
68 2 7
JSMinPlus::isValidIdentifier()
S
77 2 3
CSSmin::index_of()
S
73 2 4
Minify_Cache_APC::isValid()
S
78 2 3
Minify_Cache_File::isValid()
S
74 2 4
MrClay\Cli::openOutput()
S
67 2 8
HTTP_ConditionalGet::normalizeEtag()
S
70 2 6
Minify_HTML::_removeCdata()
S
72 2 5
WP_Object_Cache::add_non_persistent_groups()
S
69 2 7
Minify_Cache_WinCache::fetch()
S
79 2 3
Minify_Cache_XCache::display()
S
74 2 5
Minify_Cache_ZendPlatform::getSize()
S
73 2 5
MrClay\Cli::openInput()
S
67 2 8
JSTokenizer::unget()
S
71 2 5
MrClay\Cli::addError()
S
69 2 6
Minify_Logger::log()
S
75 2 4
JSParser::nest()
S
67 2 8
Minify_Cache_APC::fetch()
S
74 2 5
Minify_Cache_WinCache::isValid()
S
78 2 3
JSNode::__get()
S
74 2 5
MrClay\Cli\Arg::__get()
S
71 2 6
Minify_Cache_APC::display()
S
74 2 5
JSTokenizer::mustMatch()
S
72 2 5
Minify_Cache_ZendPlatform::isValid()
S
75 2 4
JSTokenizer::getInput()
S
73 2 5
JSMin::isAlphaNum()
S
78 2 3
Minify_Cache_ZendPlatform::fetch()
S
74 2 5
JSTokenizer::currentToken()
S
75 2 4
WP_Object_Cache::get_mc()
S
71 2 6
Minify_CSS_UriRewriter::_realpath()
S
68 2 7
MrClay\Cli::closeOutput()
S
74 2 5
str_contains()
S
77 2 3
lws_op_remind_me_later()
S
70 2 6
Minify_Cache_WinCache::__construct()
S
70 2 6
lwsop_remove_cache_comment_change()
S
65 2 9
lws_op_do_not_ask()
S
70 2 6
TinyHtmlMinifier::stripWhitespace()
S
70 2 6
lws_optimize_stop_memcached()
S
68 2 7
str_starts_with()
S
78 2 3
lws_no_optimize_fb_cache()
S
70 2 6
Minify::_getCacheId()
S
59 1 14
Minify::combine()
S
60 1 13
Minify_CSS_UriRewriter::prepend()
S
62 1 12
MrClay\Cli\Arg::getDefaultSpec()
S
63 1 12
Minify::_errorExit()
S
61 1 11
WP_Object_Cache::colorize_debug_line()
S
61 1 11
HTTP_Encoder::getContent()
S
82 1 3
lws_op_cron_schedule()
S
74 1 4
WP_Object_Cache::close()
S
91 1 2
MrClay\Cli\Arg::isRequired()
S
82 1 3
CSSmin::lowercase_properties()
S
78 1 3
JSParser::__construct()
S
76 1 4
CSSmin::set_memory_limit()
S
80 1 3
wp_cache_replace()
S
75 1 4
Minify_Cache_WinCache::store()
S
77 1 3
CSSmin::lowercase_pseudo_first()
S
77 1 3
CSSmin::set_pcre_backtrack_limit()
S
80 1 3
Minify_Source::getId()
S
82 1 3
wp_cache_flush()
S
77 1 4
TinyHtmlMinifier::minifyKeepSpaces()
S
79 1 3
JSTokenizer::__construct()
S
77 1 3
lws_optimize_clear_memcached()
S
70 1 6
Minify_Cache_File::getSize()
S
79 1 3
lws_optimize_manage_frontend_deactivate_emoji()
S
66 1 8
JSTokenizer::peekOnSameLine()
S
71 1 6
lwsop_exclude_urls_fb()
S
73 1 4
Minify_CSS_UriRewriter::_owlifySvgPaths()
S
78 1 3
Minify_Cache_XCache::__construct()
S
81 1 3
JSMin::isEOF()
S
79 1 3
CSSmin::lowercase_common_functions_values()
S
78 1 3
MrClay\Cli\Arg::useAsInfile()
S
75 1 4
CssCombiner::__construct()
S
82 1 3
CSSmin::lowercase_directives()
S
78 1 3
CSSmin::replace_colon()
S
78 1 3
Minify_Cache_Memcache::store()
S
77 1 3
Minify_Cache_File::_log()
S
81 1 3
TinyHtmlMinifier::removeComments()
S
79 1 3
CSSmin::preserve_old_IE_specific_matrix_definition()
S
73 1 4
Minify_Cache_ZendPlatform::store()
S
77 1 3
MrClay\Cli\Arg::setDescription()
S
77 1 4
lws_op_menu_admin()
S
74 1 4
Minify_CSS_Compressor::_selectorsCB()
S
78 1 3
Minify_Packer::minify()
S
74 1 4
CSSmin::set_max_execution_time()
S
80 1 3
HTTP_ConditionalGet::_setEtag()
S
73 1 4
Minify_HTML::_removePreCB()
S
78 1 3
Minify_ImportProcessor::process()
S
69 1 6
CSSmin::lowercase_pseudo_elements()
S
78 1 3
Minify_Loader::register()
S
75 1 4
HTTP_ConditionalGet::gmtDate()
S
79 1 3
Minify_Cache_APC::store()
S
77 1 3
Minify_CSS_Compressor::process()
S
75 1 4
TinyHtmlMinifier::contains()
S
78 1 3
wp_cache_get_multi()
S
76 1 4
JSCompilerContext::__construct()
S
81 1 3
Minify_HTML::minify()
S
75 1 4
HTTP_ConditionalGet::_setLastModified()
S
75 1 4
TinyHtmlMinifier::findName()
S
65 1 8
wp_cache_set_multi()
S
74 1 4
Minify_Cache_Memcache::__construct()
S
77 1 4
JSParser::ParenExpression()
S
71 1 6
TinyHtmlMinifier::minifyHard()
S
72 1 5
JSParser::Block()
S
71 1 6
Minify_JS_ClosureCompiler::minify()
S
75 1 4
lws_op_on_deactivate()
S
70 1 6
MrClay\Cli\Arg::getDescription()
S
82 1 3
Minify_YUICompressor::minifyCss()
S
78 1 3
Minify_YUICompressor::minifyJs()
S
78 1 3
CSSmin::lowercase_common_functions()
S
78 1 3
Minify_ImportProcessor::__construct()
S
77 1 4
CSSmin::replace_calc()
S
72 1 4
JsCombiner::__construct()
S
82 1 3
Minify_getUri()
S
80 1 3
Minify_CSS_Compressor::__construct()
S
81 1 3
JSMin::minify()
S
75 1 4
TinyHtmlMinifier::toElement()
S
68 1 7
Minify_YUI_CssCompressor::_removeSpacesCB()
S
78 1 3
Minify_CSS_UriRewriter::_trimUrls()
S
68 1 9
Minify_Controller_Base::getDefaultMinifers()
S
70 1 6
JsCombiner::setHeaders()
S
81 1 3
HTTP_ConditionalGet::setContentLength()
S
79 1 3
JSTokenizer::isDone()
S
80 1 3
MrClay\Cli\Arg::useAsOutfile()
S
75 1 4
JSMin::peek()
S
77 1 4
Minify_Cache_ZendPlatform::__construct()
S
81 1 3
wp_cache_get()
S
75 1 4
WP_Object_Cache::decr()
S
69 1 6
MrClay\Cli::addOptionalArg()
S
79 1 3
wp_cache_decr()
S
75 1 4
CSSmin::replace_keyframe_zero()
S
77 1 3
Minify_Cache_File::getPath()
S
82 1 3
Minify_Cache_XCache::store()
S
77 1 3
CSSmin::round_number()
S
78 1 3
lws_optimize_manage_frontend_minify_html_ending()
S
83 1 3
MrClay\Cli::addRequiredArg()
S
79 1 3
JSMinPlus::__construct()
S
80 1 3
wp_cache_delete()
S
76 1 4
wp_cache_incr()
S
75 1 4
JSNode::__set()
S
81 1 3
lwsop_specified_urls_fb()
S
73 1 4
HTTP_Encoder::getHeaders()
S
82 1 3
Minify_CSS_UriRewriter::_unOwlify()
S
78 1 3
HTTP_Encoder::sendAll()
S
77 1 4
wp_cache_add()
S
75 1 4
WP_Object_Cache::incr()
S
69 1 6
CSSmin::set_pcre_recursion_limit()
S
80 1 3
lwsop_minify()
S
71 1 6
Minify_Controller_Base::log()
S
81 1 3
Minify_HTML::_removeTextareaCB()
S
78 1 3
JSMin::__construct()
S
81 1 3
wp_cache_add_global_groups()
S
77 1 4
JSTokenizer::newSyntaxError()
S
77 1 3
CSSmin::clamp_number()
S
78 1 3
Minify_Cache_APC::__construct()
S
81 1 3
MrClay\Cli\Arg::getSpec()
S
82 1 3
Minify_HTML::_reservePlace()
S
72 1 5
CssCombiner::setHeaders()
S
81 1 3
wp_cache_init()
S
77 1 4
CSSmin::__construct()
S
68 1 7
Minify_Controller_Base::setupSources()
S
100 1 0
wp_cache_close()
S
77 1 4
HTTP_ConditionalGet::getHeaders()
S
82 1 3
wp_cache_add_non_persistent_groups()
S
77 1 4