Code Analysis: Crayon Syntax Highlighter 2.8.4

Function Rating Maintainability Complexity Lines of code
CrayonFormatter::print_code()
D
8
94 310
CrayonWP::capture_crayons()
D
25
45 131
CrayonThemeEditorWP::save()
C
34 25 80
CrayonSettings::smart_settings()
B
41 22 47
CrayonThemeEditorWP::content()
B
22
6 283
CrayonParser::parse()
B
35 17 87
CrayonSettingsWP::settings_validate()
B
38 17 68
CrayonWP::init_tags_regex()
B
44 17 38
CrayonSettings::validate()
B
42 16 50
CrayonParser::validate_regex()
A
40 15 55
CrayonHighlighter::load()
A
39 14 60
CrayonWP::the_posts()
A
41 14 53
CrayonSettings::set()
A
48 15 31
CrayonUtil::getFiles()
A
46 14 34
CrayonHighlighter::process()
A
45 12 42
CrayonUtil::lines()
A
43 11 46
CrayonSettingsWP::dropdown()
A
50 12 23
CrayonSettingsWP::show_preview()
A
42 10 53
CrayonSettingsWP::theme()
A
43 10 45
CrayonResourceCollection::load_resources()
A
50 11 27
CrayonSettings::smart_hw()
A
50 11 26
CrayonTagEditorWP::content()
A
34 5 115
CrayonThemeEditorWP::form()
A
47 10 31
CrayonFormatter::dimension_style()
A
47 9 38
CrayonUtil::createZip()
A
46 9 37
CrayonLog::log()
A
46 9 36
CrayonWP::update()
A
48 9 33
CrayonThemeEditorWP::createAttribute()
A
42 7 60
CrayonLangs::fetch()
A
51 9 26
CrayonWP::class_tag()
A
48 8 33
CrayonSettingsWP::load_settings()
A
48 8 33
CrayonWP::convert_tags()
A
45 7 42
CrayonWP::crayon_remove_ignore()
A
52 8 24
CrayonSettingsWP::langs()
A
51 8 23
CrayonWP::the_content()
A
46 7 37
CrayonSettings::init()
A
33 2 111
CrayonUtil::str_equal_array()
A
56 8 20
CrayonSettingsWP::show_posts()
A
47 7 32
CrayonLang::mode()
A
57 8 16
CrayonLangs::detect()
A
57 8 16
CrayonUtil::str_to_bool()
A
58 8 16
CrayonLang::regex()
S
57 8 14
CrayonLang::ext()
S
59 8 13
CrayonLang::alias()
S
60 8 12
CrayonWP::scan_post()
S
51 7 27
CrayonSettingsWP::checkbox()
S
59 8 11
CrayonHighlighter::code()
S
52 7 25
CrayonUtil::copyDir()
S
53 7 21
CrayonFormatter::format_code()
S
53 7 20
CrayonFormatter::clean_code()
S
56 7 18
CrayonUtil::emailFile()
S
41 4 58
CrayonLang::delimiter()
S
60 7 12
CrayonSettingsWP::init_admin_js_settings()
S
46 5 40
CrayonHighlighter::marked()
S
53 6 24
CrayonSettingsWP::log()
S
51 6 23
CrayonSettings::get_defaults()
S
54 6 23
CrayonSetting::def()
S
54 6 23
CrayonSetting::value()
S
56 6 20
CrayonWP::wp_head()
S
57 6 18
CrayonThemeEditorWP::submit()
S
48 5 33
CrayonUtil::strposa()
S
57 6 17
CrayonWP::shortcode()
S
48 5 30
CrayonSetting::index()
S
59 6 15
CrayonWP::highlight()
S
49 5 29
CrayonLang::state()
S
61 6 13
CrayonUtil::isSecure()
S
62 6 11
CrayonSettingsWP::font()
S
51 5 23
CrayonWP::refresh_post()
S
57 5 19
CrayonUtil::deleteDir()
S
56 5 17
CrayonUtil::shorten_url_to_length()
S
56 5 17
CrayonUsedResourceCollection::is_used()
S
58 5 17
CrayonSettingsWP::init_js_settings()
S
49 4 31
CrayonUtil::array_key_exists()
S
66 6 8
CrayonUtil::spnum()
S
62 6 10
CrayonLangs::load_attr_file()
S
57 5 15
CrayonSettings::get()
S
60 5 14
CrayonTagEditorWP::select_resource()
S
57 5 14
CrayonHighlighter::settings()
S
60 5 14
CrayonLangs::is_parsed()
S
61 5 13
CrayonWP::ajax_highlight()
S
61 5 12
CrayonHTMLSelect::addOptions()
S
60 5 12
CrayonSettingsWP::show_langs()
S
49 4 27
CrayonHighlighter::language()
S
62 5 11
CrayonUtil::array_compare_lexi()
S
62 5 11
CrayonSetting::find_index()
S
62 5 11
CrayonSettingsWP::metrics()
S
46 3 37
CrayonSettingsWP::settings()
S
48 2 50
CrayonWP::comment_text()
S
54 4 19
CrayonThemeEditorWP::delete()
S
55 4 19
CrayonFormatter::format_match()
S
56 4 17
CrayonTagEditorWP::init()
S
57 4 17
CrayonParser::validate_css()
S
58 4 16
CrayonThemeEditorWP::getCSSInfo()
S
57 4 16
CrayonUserResourceCollection::dir_is_user()
S
60 4 15
CrayonLang::element()
S
63 5 10
CrayonUtil::is_touch()
S
58 4 15
CrayonUtil::path_slash()
S
63 5 10
CrayonUtil::url_slash()
S
63 5 10
CrayonUtil::array_flip()
S
61 4 13
CrayonTagEditorWP::init_settings()
S
44 2 43
CrayonWP::scan_legacy_posts()
S
62 4 12
CrayonLang::state_info()
S
63 4 12
CrayonWP::capture_replace_pre()
S
59 4 12
CrayonUtil::range_str_single()
S
61 4 12
CrayonFormatter::plain_code()
S
62 4 12
CrayonSetting::__construct()
S
63 4 12
CrayonLangs::load_delimiters()
S
62 4 11
CrayonSettingsWP::input()
S
60 4 11
CrayonElement::name()
S
63 4 11
CrayonElement::regex()
S
63 4 11
CrayonLangs::load_exts()
S
62 4 11
CrayonLangs::load_aliases()
S
62 4 11
CrayonSettingsWP::info()
S
44 1 55
CrayonSettingsWP::code()
S
47 2 35
CrayonThemes::__construct()
S
56 3 19
CrayonLangs::__construct()
S
56 3 19
CrayonFonts::__construct()
S
56 3 19
CrayonWP::enqueue_resources()
S
55 3 18
CrayonSettingsWP::load_legacy_posts()
S
65 4 9
CrayonResourceCollection::remove()
S
71 4 5
CrayonResourceCollection::get()
S
65 4 9
CrayonHighlighter::__construct()
S
64 4 10
crayon_s()
S
64 4 10
CrayonLangs::known_elements()
S
65 4 9
CrayonFormatter::format_mixed_code()
S
57 3 15
CrayonHighlighter::setting_val()
S
68 4 7
CrayonElement::fallback()
S
68 4 7
CrayonElement::path()
S
68 4 7
CrayonUtil::array_unique_str()
S
64 4 9
CrayonUtil::bool_to_str()
S
68 4 7
CrayonUtil::is_mac()
S
63 4 10
CrayonSettingsWP::admin_scripts()
S
59 3 14
CrayonWP::save_comment()
S
61 3 13
CrayonThemeEditorWP::initFields()
S
51 2 27
CrayonThemeEditorWP::initStrings()
S
50 2 27
CrayonWP::instance()
S
63 3 11
CrayonSettings::val_str()
S
63 3 11
CrayonResourceCollection::add_default()
S
62 3 11
CrayonHighlighter::range()
S
64 3 11
CrayonSettingsWP::remove_post()
S
63 3 11
CrayonSettingsWP::remove_legacy_post()
S
63 3 11
CrayonSettingsWP::tag_editor()
S
51 2 24
CrayonSettingsWP::admin_load()
S
55 2 18
CrayonTagEditorWP::enqueue_resources()
S
56 2 17
CrayonWP::init_ajax()
S
57 2 17
CrayonThemeEditorWP::admin_resources()
S
55 2 17
crayon_die_if_not_php()
S
71 3 5
crayon_is_php_file()
S
73 3 4
CrayonHighlighter::setting_index()
S
67 3 8
CrayonWP::init_tag_bits()
S
64 3 9
CrayonWP::in_flag()
S
67 3 7
CrayonWP::init_legacy_tag_bits()
S
64 3 10
CrayonUsedResource::used()
S
69 3 7
CrayonUserResource::user()
S
69 3 7
CrayonVersionResource::version()
S
69 3 7
CrayonWP::ajax()
S
65 3 9
CrayonWP::scan_posts()
S
65 3 9
CrayonWP::allowed_tags()
S
63 3 9
CrayonLog::syslog()
S
69 3 6
CrayonLog::debug()
S
69 3 6
CrayonLog::email()
S
63 3 9
CrayonElement::css()
S
69 3 7
CrayonUtil::_array_flip()
S
68 3 7
CrayonParser::parse_all()
S
64 3 10
CrayonUtil::str()
S
68 3 7
CrayonLangs::add_default()
S
70 3 6
CrayonHTMLSelect::getOptionsString()
S
65 3 8
CrayonUtil::html_entity_decode_wp()
S
64 3 9
CrayonLangs::ext()
S
66 3 9
CrayonTagEditorWP::textbox()
S
63 3 9
CrayonThemeEditorWP::initSettings()
S
60 2 15
CrayonSettingsWP::other_scripts()
S
62 3 10
CrayonLangs::alias()
S
66 3 9
CrayonFormatter::print_error()
S
63 3 10
CrayonResourceCollection::add()
S
64 3 9
CrayonSettingsWP::add_post()
S
66 3 9
CrayonSettingsWP::add_legacy_post()
S
66 3 9
CrayonLangs::extensions_inverted()
S
64 3 10
CrayonLangs::ids_and_aliases()
S
64 3 10
CrayonLangs::langcmp()
S
65 3 9
CrayonUsedResourceCollection::set_used()
S
66 3 8
crayon_n()
S
68 3 7
CrayonSettingsWP::post_cmp()
S
65 3 9
CrayonUsedResourceCollection::get_used()
S
66 3 9
CrayonSettingsWP::load_posts()
S
65 3 9
CrayonHTMLInput::__construct()
S
60 2 14
CrayonWP::scan_comment()
S
59 2 14
CrayonFormatter::delim_to_internal()
S
60 2 12
CrayonSettingsWP::admin_init()
S
52 1 24
CrayonSettingsWP::misc()
S
55 1 17
CrayonUtil::file()
S
69 2 7
crayon__()
S
69 2 7
CrayonResourceCollection::load_process()
S
70 2 7
CrayonHighlighter::is_highlighted()
S
70 2 7
CrayonWP::add_paragraphs()
S
64 2 9
CrayonWP::the_excerpt()
S
63 2 10
CrayonHighlighter::language_detect()
S
69 2 6
crayon_pf()
S
68 2 7
crayon_x()
S
69 2 7
CrayonLang::has_alias()
S
78 2 3
CrayonUtil::strip_tags_blacklist()
S
67 2 7
CrayonUserResourceCollection::user_directory()
S
69 2 7
CrayonSetting::name()
S
74 2 5
crayon_set_info()
S
64 2 10
CrayonUtil::version_parts()
S
66 2 8
crayon_e()
S
69 2 7
CrayonSettingsWP::save_legacy_posts()
S
69 2 7
CrayonUtil::strip_attributes()
S
68 2 7
CrayonSettings::is_setting()
S
78 2 3
crayon_vargs()
S
79 2 3
CrayonSettingsWP::remove_cache()
S
65 2 9
CrayonValidator::sanitize()
S
66 2 8
CrayonUtil::str_replace_once()
S
68 2 7
CrayonParser::is_mode()
S
77 2 3
CrayonSettings::get_cache_sec()
S
67 2 8
CrayonUtil::get_var_str()
S
67 2 7
CrayonResourceCollection::is_loaded()
S
71 2 6
CrayonUtil::bool_yn()
S
79 2 3
CrayonSetting::locked()
S
69 2 7
CrayonUtil::clean_int()
S
67 2 8
CrayonUtil::set_var()
S
78 2 3
CrayonSetting::sanitize()
S
70 2 7
CrayonTimer::stop()
S
66 2 9
CrayonHTMLElement::attributeString()
S
68 2 7
CrayonThemeEditorWP::getFieldID()
S
68 2 7
CrayonUtil::set_default_null()
S
79 2 3
crayon_set_info_key()
S
69 2 7
CrayonSettingsWP::help_screen()
S
71 2 6
CrayonSettingsWP::save_settings()
S
70 2 6
CrayonSettings::copy()
S
69 2 7
CrayonWP::crayon_theme_css()
S
66 2 8
crayon_load_plugin_textdomain()
S
72 2 5
CrayonThemeEditorWP::getAttributeType()
S
69 2 7
CrayonSettingsWP::help()
S
64 2 9
CrayonHTMLElement::__toString()
S
75 2 3
CrayonUtil::html_element()
S
68 2 6
CrayonSettingsWP::add_section()
S
73 2 4
CrayonResourceCollection::load()
S
68 2 8
CrayonWP::crayon_font_css()
S
66 2 8
CrayonGlobalSettings::plugin_path()
S
69 2 7
CrayonGlobalSettings::upload_path()
S
69 2 7
CrayonLangs::sort_by_name()
S
67 2 8
CrayonResources::fonts()
S
71 2 6
CrayonHighlighter::title()
S
74 2 5
CrayonUtil::str_uid()
S
66 2 7
CrayonUtil::detect_slash()
S
69 2 7
CrayonGlobalSettings::upload_url()
S
69 2 7
CrayonWP::tinymce_comment_enable()
S
66 2 8
CrayonValidator::pattern()
S
70 2 7
CrayonLang::has_ext()
S
78 2 3
CrayonSettingsWP::admin_styles()
S
63 2 10
CrayonSetting::validator()
S
70 2 7
crayon_is_path_url()
S
74 2 4
CrayonUsedResourceCollection::get_used_css()
S
66 2 9
CrayonGlobalSettings::init()
S
73 2 5
CrayonGlobalSettings::mkdir()
S
68 2 7
CrayonSettingsWP::plugin_row_meta()
S
64 2 9
CrayonHighlighter::error()
S
66 2 9
CrayonUtil::set_array()
S
78 2 3
CrayonUtil::esc_hash()
S
69 2 7
CrayonHighlighter::id()
S
69 2 7
CrayonResourceCollection::get_array()
S
69 2 7
CrayonHighlighter::log()
S
75 2 5
CrayonResources::langs()
S
71 2 6
CrayonUserResourceCollection::relative_directory()
S
72 2 6
CrayonUserResourceCollection::extension()
S
72 2 6
CrayonSettingsWP::add_cache()
S
68 2 7
CrayonUserResourceCollection::dirpath()
S
75 2 4
CrayonResources::themes()
S
71 2 6
CrayonUserResourceCollection::dirurl()
S
74 2 4
CrayonWP::wp()
S
67 2 8
CrayonWP::replace_backquotes()
S
63 2 10
CrayonResource::__construct()
S
72 2 5
CrayonWP::tag_bit()
S
67 2 8
CrayonUtil::arr()
S
69 2 7
CrayonThemeEditorWP::cssInfoToString()
S
66 2 8
CrayonTagEditorWP::init_tinymce()
S
68 2 7
CrayonWP::pre_comment_text()
S
66 2 8
CrayonResource::name()
S
70 2 7
CrayonWP::span_tag()
S
64 2 9
CrayonHighlighter::is_inline()
S
67 2 8
CrayonSettingsWP::load_cache()
S
70 2 6
CrayonUtil::path_rel()
S
71 2 6
CrayonHighlighter::url()
S
68 2 8
CrayonWP::refresh_posts()
S
65 2 9
CrayonSetting::array_value()
S
72 2 6
CrayonWP::get_posts()
S
66 2 8
CrayonHighlighter::line_count()
S
74 2 5
CrayonGlobalSettings::site_path()
S
69 2 7
CrayonSettings::get_array()
S
69 2 7
CrayonParser::regex_match()
S
71 2 6
CrayonSettings::val()
S
69 2 7
CrayonThemeEditorWP::getAttributeGroup()
S
69 2 7
CrayonLog::clear()
S
70 2 6
CrayonUtil::html_attributes()
S
67 2 7
CrayonUtil::trim_e()
S
67 2 7
CrayonSettingsWP::clear_cache()
S
68 2 8
CrayonResourceCollection::directory()
S
69 2 7
CrayonThemeEditorWP::getFieldName()
S
67 2 8
CrayonUtil::range_str()
S
67 2 7
CrayonGlobalSettings::has_changed()
S
77 2 3
CrayonLangs::is_default()
S
71 2 6
CrayonHighlighter::is_mixed()
S
70 2 7
CrayonHighlighter::output()
S
64 2 10
CrayonGlobalSettings::set_mkdir()
S
69 2 7
CrayonUtil::current_url()
S
73 2 4
CrayonUtil::num()
S
69 2 7
CrayonResourceCollection::get_css()
S
73 2 4
CrayonSettingsWP::save_posts()
S
69 2 7
CrayonUtil::set_default()
S
79 2 3
CrayonGlobalSettings::site_url()
S
69 2 7
CrayonSettingsWP::tags()
S
57 1 14
CrayonSettingsWP::toolbar()
S
59 1 14
CrayonSettingsWP::lines()
S
59 1 13
CrayonHTMLSelect::__toString()
S
76 1 4
CrayonVersionResource::__construct()
S
76 1 4
CrayonWP::__construct()
S
91 1 2
CrayonTimer::__construct()
S
100 1 1
CrayonUtil::clean_comments()
S
72 1 5
CrayonWP::post_captures()
S
80 1 3
CrayonFormatter::internal_to_code()
S
78 1 3
CrayonUtil::pathf()
S
77 1 3
CrayonUtil::esc_atomic()
S
78 1 3
CrayonSettings::__construct()
S
83 1 3
CrayonUserResourceCollection::path()
S
74 1 4
CrayonHTMLElement::addAttributes()
S
79 1 3
CrayonNonNegIntValidator::__construct()
S
80 1 3
CrayonWP::save_post()
S
80 1 3
CrayonLang::clean_id()
S
74 1 4
CrayonWP::add_crayon_id()
S
70 1 5
CrayonHighlighter::formatted_code()
S
83 1 3
CrayonResourceCollection::path()
S
82 1 3
CrayonHTMLSelect::__construct()
S
70 1 6
CrayonResources::__construct()
S
98 1 1
CrayonWP::install()
S
77 1 4
CrayonWP::regex_no_capture()
S
78 1 3
CrayonUserResourceCollection::current_directory()
S
82 1 3
CrayonHighlighter::format_glue()
S
78 1 3
CrayonHTMLSeparator::__construct()
S
76 1 4
crayon_pb()
S
78 1 3
CrayonValidator::__construct()
S
81 1 3
CrayonHighlighter::setting_set()
S
80 1 3
CrayonParser::__construct()
S
98 1 1
CrayonGlobalSettings::__construct()
S
91 1 2
CrayonSettingsWP::button()
S
66 1 8
CrayonLangs::is_known_element()
S
78 1 3
CrayonResource::__tostring()
S
83 1 3
CrayonResourceCollection::remove_all()
S
81 1 3
CrayonTagEditorWP::checkbox()
S
74 1 4
CrayonWP::uninstall()
S
89 1 2
CrayonSetting::type()
S
83 1 3
CrayonUtil::strip_event_attributes()
S
75 1 4
CrayonSetting::is_array()
S
83 1 3
CrayonWP::regex()
S
78 1 3
CrayonUsedResourceCollection::resource_instance()
S
79 1 3
CrayonTagEditorWP::register_buttons()
S
75 1 4
CrayonGlobalSettings::get_obj()
S
77 1 4
CrayonUtil::ucwords()
S
72 1 5
CrayonValidator::validate()
S
78 1 3
CrayonTimer::start()
S
80 1 3
CrayonUserResourceCollection::url()
S
74 1 4
CrayonUtil::startsWith()
S
77 1 3
CrayonResourceCollection::resource_instance()
S
79 1 3
CrayonWP::regex_with_id()
S
79 1 3
CrayonSettingsWP::blank()
S
89 1 2
CrayonLangs::delimiters()
S
79 1 3
CrayonResourceCollection::set_default()
S
77 1 4
CrayonHighlighter::runtime()
S
83 1 3
CrayonLangs::extensions()
S
79 1 3
CrayonSettingsWP::info_span()
S
78 1 3
CrayonUtil::hyphen_to_space()
S
78 1 3
CrayonIntValidator::__construct()
S
80 1 3
CrayonLang::__construct()
S
75 1 4
CrayonUtil::htmlspecialchars()
S
78 1 3
CrayonUserResourceCollection::resource_instance()
S
72 1 5
CrayonSetting::copy()
S
79 1 3
CrayonLang::is_default()
S
80 1 3
CrayonThemeEditorWP::createAttributesForm()
S
79 1 3
CrayonElement::__toString()
S
82 1 3
crayon_resources()
S
64 1 9
CrayonResourceCollection::exists()
S
80 1 3
CrayonResource::id()
S
83 1 3
CrayonUtil::tlower()
S
79 1 3
CrayonWP::init()
S
77 1 4
CrayonElement::__construct()
S
74 1 5
CrayonWP::pre_excerpt()
S
73 1 5
CrayonParser::modes()
S
80 1 3
CrayonTagEditorWP::addbuttons()
S
72 1 5
CrayonHTMLElement::addClass()
S
79 1 3
CrayonThemes::filename()
S
78 1 3
CrayonFormatter::split_lines()
S
68 1 6
CrayonWP::filter_post_data()
S
69 1 6
CrayonWP::basename()
S
80 1 3
crayon_print_script()
S
78 1 3
CrayonResourceCollection::get_state()
S
82 1 3
CrayonResource::clean_id()
S
74 1 4
CrayonThemeEditorWP::formField()
S
77 1 3
CrayonUserResourceCollection::filename()
S
80 1 3
CrayonLangs::aliases()
S
79 1 3
CrayonSettingsWP::remove_posts()
S
77 1 4
CrayonResource::clean_name()
S
75 1 4
CrayonGlobalSettings::get()
S
76 1 4
CrayonLang::is_parsed()
S
80 1 3
CrayonGlobalSettings::val_str()
S
76 1 4
CrayonUserResourceCollection::load_resources()
S
70 1 7
CrayonTagEditorWP::bbp_get_the_content_args()
S
78 1 3
CrayonSettingsWP::span()
S
79 1 3
CrayonUserResourceCollection::create_user_resource_instance()
S
79 1 3
CrayonWP::scan_legacy_post()
S
75 1 4
CrayonLangs::load_process()
S
72 1 6
crayon_print_style()
S
78 1 3
CrayonGlobalSettings::set()
S
75 1 4
CrayonUtil::path_slash_remove()
S
78 1 3
CrayonUtil::htmlentities()
S
78 1 3
CrayonSettingsWP::files()
S
67 1 7
CrayonTagEditorWP::submit()
S
70 1 8
CrayonSetting::__tostring()
S
83 1 3
CrayonLangs::filename()
S
78 1 3
CrayonUtil::preg_replace_escape_back()
S
77 1 3
CrayonSettingsWP::errors()
S
68 1 6
CrayonWP::post_get_excerpt()
S
73 1 5
CrayonSettingsWP::posts()
S
67 1 7
CrayonResourceCollection::get_default()
S
80 1 3
CrayonFormatter::__construct()
S
91 1 2
CrayonHTMLElement::__construct()
S
81 1 3
CrayonSettingsWP::help_button()
S
77 1 3
CrayonUtil::space_to_hyphen()
S
78 1 3
CrayonUtil::pathb()
S
77 1 3

29 more item(s) not shown.