Code Analysis: imghaste 1.2.0

Function Rating Maintainability Complexity Lines of code
Imghaste_Slimcss::imghaste_slimcss()
D
25
33 167
Imghaste_Slimcss::imghaste_slimcss()
D
25
32 162
Imghaste_Admin::imghaste_settings_init()
A
31 2 184
imghaste_field_pwa_start_url_cb()
A
41 10 62
Imghaste::define_public_hooks()
A
44 10 43
Imghaste_PWA::imghaste_is_amp()
A
52 11 24
imghaste_section_status_check_cb()
A
38 7 78
removeElementsByTagName()
A
53 8 24
removeElementsByTagName()
A
53 8 24
Imghaste_Admin::imghaste_validater_and_sanitizer()
A
52 8 21
Imghaste_Buffer::imghaste_buffer_replace()
A
48 7 33
Imghaste_Public::imghaste_imgsrc_buffer_replace()
A
49 7 31
Imghaste_PWA::imghaste_get_start_url()
S
55 7 17
Imghaste_PWA::imghaste_get_display()
S
56 6 20
imghaste_options_page_cb()
S
49 5 34
SlimCache::get()
S
57 6 17
SlimCache::get()
S
57 6 17
Imghaste_Admin::imghaste_admin_enqueue_scripts()
S
57 6 14
imghaste_field_pwa_display_cb()
S
53 5 27
Imghaste_Public::imghaste_get_remote_image_url()
S
54 5 21
Imghaste_PWA::imghaste_manifest_template()
S
53 5 21
Imghaste_PWA::imghaste_get_orientation()
S
58 5 17
imghaste_activation_redirect()
S
59 5 14
imghaste_field_pwa_orientation_cb()
S
55 4 24
Imghaste_Admin::imghaste_incomplete_settings_notice()
S
55 4 20
Imghaste_Overwrite::imghaste_get_the_content()
S
57 4 16
imghaste_slimcss_buffer_replace()
S
58 4 15
imghaste_slimcss_buffer_replace()
S
58 4 15
remove_all_styles()
S
59 4 14
remove_all_styles()
S
59 4 14
imghaste_field_rewrite_cb()
S
52 3 28
Imghaste_Public::imghaste_sw_generate()
S
60 4 13
Imghaste_PWA::imghaste_pwa_generate()
S
60 4 12
Imghaste_Overwrite::imghaste_calculate_image_srcset()
S
63 4 11
imghaste_field_slimcss_cb()
S
54 3 23
imghaste_field_pwa_cb()
S
54 3 23
imghaste_field_cdn_url_cb()
S
54 3 22
imghaste_field_pwa_appname_cb()
S
57 3 20
imghaste_field_pwa_background_color_cb()
S
56 3 20
imghaste_field_pwa_theme_color_cb()
S
56 3 20
imghaste_field_pwa_short_appname_cb()
S
57 3 19
imghaste_field_pwa_description_cb()
S
57 3 19
Imghaste_Slimcss::get_headers_from_curl_response()
S
59 3 13
Imghaste_Slimcss::get_headers_from_curl_response()
S
59 3 13
Imghaste_PWA::imghaste_manifest()
S
62 3 12
Imghaste_Slimcss::__construct()
S
61 3 11
Imghaste_PWA::imghaste_get_pwa_icons()
S
59 2 16
imghaste_field_pwa_splash_screen_icon_cb()
S
59 2 16
Imghaste_Slimcss::fetch_css()
S
57 2 16
Imghaste_Slimcss::fetch_css()
S
57 2 16
SlimCache::set()
S
66 3 8
SlimCache::set()
S
66 3 8
Imghaste_Loader::run()
S
66 3 8
Imghaste_Slimcss::__construct()
S
67 3 7
Imghaste_Public::get_top_level_domain()
S
71 3 4
imghaste_field_pwa_app_icon_cb()
S
60 2 15
imghaste_field_purge_slimcss_cb()
S
59 2 15
Imghaste_Slimcss::cleanUrl()
S
62 2 11
Imghaste::__construct()
S
64 2 11
Imghaste_PWA::imghaste_add_manifest_to_wp_head()
S
61 2 11
Imghaste_Slimcss::cleanUrl()
S
62 2 11
Imghaste_Helpers::imghaste_get_options()
S
54 1 21
Imghaste_Public::imghaste_imgsrc_buffer_end()
S
76 2 5
Imghaste_Helpers::imghaste_is_localhost()
S
66 2 8
Imghaste_Overwrite::imghaste_get_attachment_image_src()
S
69 2 7
Imghaste_Buffer::imghaste_buffer_end()
S
75 2 5
SlimCache::delete()
S
76 2 4
SlimCache::delete()
S
76 2 4
Imghaste_PWA::imghaste_multisite_filename_postfix()
S
71 2 6
SlimCache::__construct()
S
68 2 7
imghaste_slime_css_buffer_end()
S
76 2 5
imghaste_slime_css_buffer_end()
S
76 2 5
SlimCache::__construct()
S
68 2 7
Imghaste_Overwrite::imghaste_get_attachment_url()
S
72 2 6
Imghaste::load_dependencies()
S
62 1 12
Imghaste_Public::imghaste_feature_policy_header()
S
61 1 11
Imghaste_PWA::imghaste_get_manifest_filename()
S
79 1 3
imghaste_settings_link()
S
67 1 8
Imghaste_Buffer::imghaste_buffer_start()
S
80 1 3
Imghaste_Activator::activate()
S
89 1 2
page_style()
S
75 1 6
Imghaste_Public::__construct()
S
71 1 6
activate_imghaste()
S
76 1 4
Imghaste_Slimcss::isJson()
S
76 1 4
run_imghaste()
S
77 1 4
Imghaste_Helpers::imghaste_httpsify()
S
78 1 3
Imghaste_Public::imghaste_get_base_folder()
S
68 1 7
Imghaste_Public::imghaste_accept_ch()
S
83 1 5
Imghaste_Admin::imghaste_options_page()
S
66 1 10
SlimCache::getFileName()
S
78 1 3
Imghaste_Loader::add_filter()
S
77 1 3
Imghaste::get_loader()
S
82 1 3
Imghaste_i18n::load_plugin_textdomain()
S
69 1 7
Imghaste_Admin::__construct()
S
66 1 8
Imghaste_Public::imghaste_get_site_url()
S
80 1 3
Imghaste_Public::imghaste_sw_template()
S
67 1 7
Imghaste::define_admin_hooks()
S
67 1 7
Imghaste_Public::imghaste_imgsrc_buffer_start()
S
80 1 3
Imghaste::run()
S
82 1 3
Imghaste_PWA::__construct()
S
91 1 2
deactivate_imghaste()
S
76 1 4
imghaste_slime_css_buffer_start()
S
82 1 3
Imghaste_Slimcss::isJson()
S
76 1 4
imghaste_section_pwa_cb()
S
78 1 3
Imghaste_Public::imghaste_sw_rewrite()
S
71 1 6
Imghaste::get_plugin_name()
S
82 1 3
Imghaste_Deactivator::deactivate()
S
89 1 2
imghaste_slime_css_buffer_start()
S
82 1 3
Imghaste_Public::imghaste_sw_register()
S
66 1 7
Imghaste_PWA::imghaste_pwa_rewrite()
S
71 1 6
Imghaste_Loader::add_action()
S
77 1 3
imghaste_section_main_cb()
S
78 1 3
Imghaste_Loader::__construct()
S
77 1 4
Imghaste_Loader::add()
S
64 1 10
SlimCache::getFileName()
S
78 1 3
page_style()
S
75 1 6
Imghaste::set_locale()
S
75 1 4
Imghaste::get_version()
S
82 1 3