Code Analysis: Simply Static 2.1.9

Function Rating Maintainability Complexity Lines of code
Simply_Static\Plugin::save_options()
A
37 12 79
Simply_Static\Url_Fetcher::fetch()
A
40 12 56
Simply_Static\Util::relative_to_absolute_url()
A
47 12 35
Simply_Static\Plugin::get_content_for_debug_email()
A
38 9 69
Simply_Static\PhpUri::join()
A
48 11 35
Simply_Static\Fetch_Urls_Task::handle_30x_redirect()
A
43 10 50
Simply_Static\Fetch_Urls_Task::perform()
A
40 9 62
Simply_Static\Diagnostic::__construct()
A
46 10 38
Simply_Static\Url_Extractor::extract_and_replace_urls_in_html()
A
47 9 39
Simply_Static\Url_Fetcher::create_directories_for_static_page()
A
46 9 38
Simply_Static\Query::where()
A
49 9 31
Simply_Static\Url_Extractor::extract_urls_and_update_tag()
A
50 9 30
Simply_Static\Plugin::static_archive_action()
A
52 9 23
Simply_Static\Sql_Permissions::instance()
A
49 8 29
Simply_Static\Url_Extractor::extract_and_update_urls()
A
56 8 18
Simply_Static\Fetch_Urls_Task::handle_200_response()
A
49 7 31
Simply_Static\Transfer_Files_Locally_Task::copy_static_files()
S
44 6 44
Simply_Static\Archive_Creation_Job::task()
S
47 6 36
Simply_Static\Plugin::instance()
S
44 5 44
Simply_Static\Create_Zip_Archive_Task::create_zip()
S
50 6 26
Simply_Static\Query::compose_query()
S
52 6 25
Simply_Static\Transfer_Files_Locally_Task::perform()
S
52 6 23
Simply_Static\Setup_Task::delete_temp_static_files()
S
55 6 20
Simply_Static\Transfer_Files_Locally_Task::delete_local_directory_static_files()
S
55 6 19
Simply_Static\Util::url_path_info()
S
51 5 29
Simply_Static\Setup_Task::add_additional_files_to_db()
S
50 5 28
Simply_Static\Model::save()
S
52 5 26
Simply_Static\Setup_Task::perform()
S
52 5 23
Simply_Static\Diagnostic::is_additional_file_valid()
S
55 5 18
Simply_Static\PhpUri::to_str()
S
58 5 17
Simply_Static\Plugin::email_debug_log()
S
52 4 23
Simply_Static\Util::debug_log()
S
54 4 20
Simply_Static\Upgrade_Handler::run()
S
48 3 34
Simply_Static\Diagnostic::check_error_from_response()
S
56 4 18
Simply_Static\View::get_renderable_file()
S
60 4 14
Simply_Static\Query::compose_update_query()
S
58 4 14
Simply_Static\Plugin::display_settings_page()
S
51 3 27
Simply_Static\Plugin::display_diagnostics_page()
S
50 3 27
Simply_Static\Util::create_offline_path()
S
59 4 12
Simply_Static\Diagnostic::is_wp_cron_running()
S
61 4 12
Simply_Static\Setup_Task::convert_path_to_url()
S
62 4 11
Simply_Static\Url_Fetcher::remote_get()
S
54 3 21
Simply_Static\Archive_Creation_Job::cancel()
S
56 3 19
Simply_Static\Query::find()
S
57 3 18
Simply_Static\Setup_Task::add_origin_and_additional_urls_to_db()
S
56 3 18
Simply_Static\Archive_Creation_Job::shutdown_handler()
S
55 3 18
Simply_Static\Plugin::render_export_log()
S
49 2 31
Simply_Static\Model::create_or_update_table()
S
57 3 16
Simply_Static\Model::__set()
S
62 4 10
Simply_Static\Archive_Creation_Job::is_job_done()
S
71 4 5
Simply_Static\Url_Extractor::convert_url()
S
64 4 10
Simply_Static\Fetch_Urls_Task::save_static_page_content_to_file()
S
60 3 14
Simply_Static\Archive_Creation_Job::find_next_task()
S
61 3 13
Simply_Static\PhpUri::normalize_path()
S
60 3 12
Simply_Static\Query::escape_and_quote()
S
62 3 12
Simply_Static\Fetch_Urls_Task::find_excludable()
S
61 3 12
Simply_Static\Options::instance()
S
63 3 11
Simply_Static\Archive_Creation_Job::start()
S
53 2 23
Simply_Static\Plugin::add_plugin_admin_menu()
S
51 1 34
Simply_Static\Diagnostic::has_curl()
S
57 2 16
Simply_Static\Url_Extractor::css_matches()
S
64 3 9
Simply_Static\Url_Extractor::add_to_extracted_urls()
S
66 3 8
Simply_Static\Url_Extractor::xml_matches()
S
68 3 7
Simply_Static\Plugin::add_http_filters()
S
64 3 9
Simply_Static\Plugin::filter_task_list()
S
64 3 10
Simply_Static\Query::first()
S
59 2 15
Simply_Static\Options::get()
S
65 3 9
Simply_Static\Query::find_by()
S
59 2 15
Simply_Static\Fetch_Urls_Task::set_url_found_on()
S
67 3 7
Simply_Static\Upgrade_Handler::set_default_options()
S
68 3 7
Simply_Static\Plugin::enqueue_admin_scripts()
S
66 3 8
Simply_Static\Url_Extractor::convert_offline_url()
S
60 2 13
Simply_Static\Page::get_http_status_codes_summary()
S
59 2 13
Simply_Static\Plugin::render_activity_log()
S
61 2 13
Simply_Static\Util::add_archive_status_message()
S
63 2 11
Simply_Static\Create_Zip_Archive_Task::perform()
S
62 2 11
Simply_Static\Url_Extractor::extract_and_replace_urls_in_css()
S
63 2 11
Simply_Static\Plugin::includes()
S
54 1 23
Simply_Static\Model::__get()
S
68 2 7
Simply_Static\Diagnostic::is_xml_active()
S
68 2 7
Simply_Static\Url_Fetcher::instance()
S
69 2 7
Simply_Static\Util::selected_if()
S
78 2 3
Simply_Static\Util::checked_if()
S
78 2 3
Simply_Static\Util::truncate()
S
76 2 3
Simply_Static\Util::trailingslashit_unless_blank()
S
78 2 3
Simply_Static\Util::delete_debug_log()
S
71 2 6
Simply_Static\Util::get_contents_from_object()
S
65 2 10
Simply_Static\Plugin::filter_update_footer()
S
67 2 7
Simply_Static\Archive_Creation_Job::__construct()
S
66 2 8
Simply_Static\Archive_Creation_Job::save_status_message()
S
65 2 9
Simply_Static\Options::destroy()
S
67 2 8
Simply_Static\View::__get()
S
74 2 4
Simply_Static\Query::find_or_initialize_by()
S
65 2 9
Simply_Static\Query::update_all()
S
65 2 9
Simply_Static\View::render_to_string()
S
65 2 10
Simply_Static\View::render()
S
67 2 9
Simply_Static\Model::initialize()
S
67 2 8
Simply_Static\Model::attributes()
S
71 2 6
Simply_Static\Sql_Permissions::can()
S
78 2 3
Simply_Static\Query::find_or_create_by()
S
69 2 7
Simply_Static\Query::offset()
S
68 2 7
Simply_Static\Page::set_status_message()
S
70 2 7
Simply_Static\Page::set_error_message()
S
70 2 7
Simply_Static\Query::compose_select_query()
S
64 2 10
Simply_Static\Query::where_sql()
S
69 2 6
Simply_Static\Task::save_status_message()
S
65 2 9
Simply_Static\Url_Extractor::extract_urls_from_srcset()
S
67 2 7
Simply_Static\PhpUri::parse()
S
69 2 7
Simply_Static\Plugin::send_json_response_for_static_archive()
S
60 1 14
Simply_Static\Archive_Creation_Job::complete()
S
60 1 12
Simply_Static\PhpUri::__construct()
S
62 1 12
Simply_Static\Diagnostic::can_wp_make_requests_to_itself()
S
62 1 11
Simply_Static\Task::__construct()
S
80 1 3
Simply_Static\Task::perform()
S
100 1 0
Simply_Static\Fetch_Urls_Task::__construct()
S
73 1 5
Simply_Static\View::assign()
S
79 1 3
Simply_Static\Diagnostic::is_local_dir_writeable()
S
66 1 8
Simply_Static\Options::get_destination_url()
S
79 1 3
Simply_Static\Options::__construct()
S
98 1 1
Simply_Static\Url_Extractor::force_replace_urls()
S
67 1 7
Simply_Static\Diagnostic::user_can_select()
S
68 1 7
Simply_Static\Url_Extractor::replace_encoded_urls()
S
67 1 7
Simply_Static\Cancel_Task::perform()
S
70 1 6
Simply_Static\Archive_Creation_Job::exception_occurred()
S
65 1 8
Simply_Static\Plugin::in_plugin()
S
78 1 3
Simply_Static\Plugin::__clone()
S
91 1 2
Simply_Static\Upgrade_Handler::__clone()
S
98 1 1
Simply_Static\Options::__wakeup()
S
98 1 1
Simply_Static\Wrapup_Task::perform()
S
68 1 7
Simply_Static\Url_Extractor::extract_and_replace_urls_in_xml()
S
70 1 6
Simply_Static\Diagnostic::user_can_insert()
S
68 1 7
Simply_Static\Plugin::fetch_post_value()
S
74 1 4
Simply_Static\Options::__clone()
S
98 1 1
Simply_Static\Util::origin_host()
S
79 1 3
Simply_Static\Query::count()
S
73 1 5
Simply_Static\View::set_layout()
S
74 1 4
Simply_Static\Url_Fetcher::__wakeup()
S
91 1 2
Simply_Static\Query::order()
S
77 1 4
Simply_Static\Plugin::add_info_links()
S
67 1 9
Simply_Static\Upgrade_Handler::__wakeup()
S
98 1 1
Simply_Static\View::add_flash()
S
78 1 3
Simply_Static\Sql_Permissions::__clone()
S
98 1 1
Simply_Static\Diagnostic::is_additional_url_valid()
S
63 1 10
Simply_Static\Plugin::__construct()
S
91 1 2
Simply_Static\Model::drop_table()
S
75 1 4
Simply_Static\Archive_Creation_Job::set_current_task()
S
81 1 3
Simply_Static\Task::save_pages_status()
S
70 1 6
Simply_Static\Url_Extractor::convert_absolute_url()
S
70 1 6
Simply_Static\Url_Extractor::__construct()
S
76 1 4
Simply_Static\Options::get_as_array()
S
82 1 3
Simply_Static\Util::remove_params_and_fragment()
S
78 1 3
Simply_Static\Plugin::run_static_export()
S
77 1 4
Simply_Static\Plugin::__wakeup()
S
91 1 2
Simply_Static\Plugin::fetch_post_array_value()
S
78 1 3
Simply_Static\Util::formatted_datetime()
S
80 1 3
Simply_Static\Url_Fetcher::__construct()
S
91 1 2
Simply_Static\Sql_Permissions::__wakeup()
S
98 1 1
Simply_Static\Url_Extractor::extract_and_replace_urls_in_script()
S
73 1 4
Simply_Static\Plugin::enqueue_admin_styles()
S
77 1 3
Simply_Static\Model::exists()
S
76 1 4
Simply_Static\Util::abs_path_to_url()
S
67 1 8
Simply_Static\Util::get_path_from_local_url()
S
72 1 5
Simply_Static\Diagnostic::user_can_create()
S
68 1 7
Simply_Static\Util::remove_leading_directory_separator()
S
79 1 3
Simply_Static\Util::error_log()
S
75 1 4
Simply_Static\Util::wp_installation_url()
S
80 1 3
Simply_Static\Util::add_trailing_directory_separator()
S
78 1 3
Simply_Static\Url_Extractor::save_body()
S
78 1 3
Simply_Static\Diagnostic::user_can_delete()
S
68 1 7
Simply_Static\Page::parent_static_page()
S
79 1 3
Simply_Static\Util::remove_trailing_directory_separator()
S
79 1 3
Simply_Static\Util::get_debug_log_filename()
S
78 1 3
Simply_Static\Options::set()
S
76 1 4
Simply_Static\View::set_template()
S
75 1 4
Simply_Static\Diagnostic::php_version()
S
66 1 8
Simply_Static\Util::add_leading_directory_separator()
S
79 1 3
Simply_Static\Page::is_type()
S
78 1 3
Simply_Static\Url_Fetcher::__clone()
S
91 1 2
Simply_Static\Query::limit()
S
77 1 4
Simply_Static\Util::origin_url()
S
79 1 3
Simply_Static\Model::table_name()
S
76 1 4
Simply_Static\Diagnostic::user_can_drop()
S
68 1 7
Simply_Static\Diagnostic::user_can_alter()
S
68 1 7
Simply_Static\Util::origin_scheme()
S
75 1 4
simply_static_run_plugin()
S
76 1 4
Simply_Static\Upgrade_Handler::__construct()
S
98 1 1
Simply_Static\Url_Extractor::convert_relative_url()
S
73 1 5
Simply_Static\Util::string_to_array()
S
70 1 6
Simply_Static\Diagnostic::is_temp_files_dir_readable()
S
66 1 8
Simply_Static\Options::get_archive_dir()
S
77 1 3
Simply_Static\Plugin::reset_plugin()
S
65 1 9
Simply_Static\Sql_Permissions::__construct()
S
98 1 1
Simply_Static\View::__construct()
S
71 1 5
Simply_Static\Util::add_leading_slash()
S
79 1 3
Simply_Static\View::__set()
S
76 1 4
Simply_Static\Diagnostic::is_temp_files_dir_writeable()
S
66 1 8
Simply_Static\Plugin::filter_wp_mail_content_type()
S
82 1 3
Simply_Static\Model::query()
S
76 1 4
Simply_Static\Diagnostic::is_permalink_structure_set()
S
68 1 7
Simply_Static\Archive_Creation_Job::error_occurred()
S
66 1 8
Simply_Static\Plugin::save_diagnostics_options()
S
67 1 8
Simply_Static\Options::reinstance()
S
76 1 4
Simply_Static\Plugin::display_generate_page()
S
68 1 8
Simply_Static\Archive_Creation_Job::get_current_task()
S
82 1 3
Simply_Static\Diagnostic::is_destination_host_a_valid_url()
S
63 1 10
Simply_Static\Options::save()
S
79 1 3
Simply_Static\Util::remove_leading_slash()
S
79 1 3
Simply_Static\Util::is_local_url()
S
78 1 3
Simply_Static\Util::strip_protocol_from_url()
S
75 1 4
Simply_Static\Page::is_content_identical()
S
80 1 3
Simply_Static\Query::__construct()
S
81 1 3
Simply_Static\Util::strip_index_filenames_from_url()
S
75 1 4
Simply_Static\Page::set_content_hash()
S
76 1 4
Simply_Static\Url_Extractor::get_body()
S
64 1 10
Simply_Static\Plugin::debug_on()
S
79 1 3
Simply_Static\Plugin::load_textdomain()
S
69 1 7
Simply_Static\Query::delete_all()
S
71 1 6
Simply_Static\Diagnostic::is_ssl()
S
71 1 6