Code Analysis: Image Optimizer WD 1.0.26

Function Rating Maintainability Complexity Lines of code
IOWD_Optimize::get_attachments()
D
17
77 187
TenWebLibConfig::set_options()
C
35 26 84
IOWD_Settings::display()
C
36 25 64
IOWD_Settings::get_fields()
C
21
1 412
TenWebLibNotices::admin_notice()
B
37 22 64
IOWD_MediaLibrary::wd_optimize_html()
B
41 19 45
IOWD_Optimize::resize()
B
44 18 38
IOWD_Optimize::scan()
B
41 17 49
IOWD_Optimize::convert()
B
40 16 53
IOWD_Optimize::save_data_to_db()
B
38 15 61
IOWD_Optimize::optimize()
A
39 13 62
IOWD_Report::__construct()
A
52 15 23
IOWD_Helper::get_images_from_dir_recursiv()
A
48 14 28
TenWebLibDeactivate::submit_and_deactivate()
A
43 13 41
IOWD_Optimize::scanOld()
A
39 11 66
IOWD_Report::report_data()
A
42 12 49
IOWD_Rest::download_images()
A
39 11 63
IOWD_Ajax::get_stats()
A
39 10 68
TenWebLibSubscribe::after_subscribe()
A
42 11 48
IOWD_Settings::save_settings()
A
48 12 29
IOWD::scripts()
A
43 11 43
IOWD_Ajax::finish_bulk()
A
42 10 44
TenWebLibNotices::admin_notice_pages()
A
53 11 22
IOWD_Ajax::choose_dirs()
A
46 10 36
IOWD::actions()
A
45 9 43
IOWD_Optimize::check_optimization_level()
A
52 10 27
IOWDImage::resize()
A
45 8 42
IOWD_Helper::wp_get_image_sizes()
A
52 9 23
IOWD_Settings::get_statistics()
A
47 8 35
IOWD_Helper::dir_tree()
A
54 9 18
IOWD_Settings::save_standard_settings()
A
49 8 30
TenWebLibOverview::remote_get()
A
54 8 18
IOWD_Ajax::get_subdirs()
A
56 8 16
IOWD_Ajax::scan_all()
S
49 7 29
IOWD_Optimize::get_temp_data()
S
44 6 44
TenWebLib::wd_overview_menu_page()
S
49 7 26
IOWD_MediaLibrary::where_size()
S
50 7 25
IOWD::__construct()
S
45 6 38
IOWD_MediaLibrary::custom_bulk_admin_footer()
S
46 3 73
IOWD::image_optimizer_activate()
S
50 6 27
IOWD::user_manual()
S
48 5 42
TenWebLibNotices::required_fields()
S
64 7 9
IOWD_Ajax::quick_settings()
S
60 6 12
IOWD_Helper::get_images_from_dir()
S
60 6 11
IOWD::add_options_to_db()
S
45 4 41
IOWDDB::create_iowd_images_table()
S
41 1 83
IOWDImage::load_image()
S
53 5 21
IOWD::notice()
S
56 5 18
IOWD_Helper::get_attachmnet_sizes()
S
56 5 17
IOWDDB_Class::get_row_by_field()
S
57 5 16
iowd_ten_web_lib_init()
S
41 2 60
IOWD_Ajax::get_attachment_data()
S
63 6 9
IOWD_MediaLibrary::wd_optimize_bulk_handler()
S
60 5 12
IOWD_MediaLibrary::size_filter()
S
52 4 23
IOWDDB_Class::create_table()
S
54 4 20
IOWD_Api::api_request()
S
57 4 16
IOWD_Optimize::keep_originals()
S
59 4 15
TenWebLibNotices::wd_admin_notice()
S
62 5 10
IOWD_Ajax::optimize()
S
63 5 9
IOWD::activate()
S
59 4 14
TenWebLibApi::get_hash()
S
61 4 11
IOWD_Helper::limitation()
S
62 4 11
TenWebLibNotices::admin_notice_temp_ignore()
S
55 3 17
IOWD_Optimize::api_call_ajax()
S
50 2 30
IOWD::ajax()
S
63 4 10
IOWD_Util::is_transparent_png()
S
63 4 10
IOWDImage::convert_to_jpg()
S
58 3 14
IOWDImage::convert_to_webp()
S
58 3 14
IOWD_Helper::pn_get_attachment_id_from_url()
S
59 3 13
IOWD_Ajax::scan()
S
59 3 13
TenWebLib::wd_init()
S
61 3 13
TenWebLibOverview::display_overview_page()
S
61 3 12
IOWD_Util::format_bytes()
S
60 3 11
IOWD::auto_optimize()
S
61 3 11
IOWD::scheduled_optimization()
S
62 3 11
IOWD::meta_links()
S
53 2 23
IOWD_Amazon_S3::__construct()
S
55 2 19
IOWD_Optimize::get_current_opt_level()
S
66 3 7
IOWD::new_blog_added()
S
64 3 10
IOWD_Optimize::skip_small_images()
S
67 3 7
TenWebLib::init_classes()
S
63 3 10
IOWD_Ajax::clear_report()
S
66 3 7
IOWD_Amazon_S3::upload()
S
58 2 15
IOWD::register_autoloader()
S
65 3 10
TenWebLibApi::get_remote_data()
S
64 3 8
TenWebLibApi::get_userhash()
S
63 3 10
IOWD_Optimize::skip_large_images()
S
68 3 7
IOWD_Helper::update_already_used()
S
60 2 13
IOWD_Helper::iowd_is_url_exists()
S
60 2 13
IOWD_MediaLibrary::add_wd_optimize_button()
S
60 2 13
TenWebLibDeactivate::scripts()
S
60 2 12
IOWD_Helper::get_attachment_ids()
S
62 2 12
TenWebLibDeactivate::__construct()
S
52 1 26
TenWebLibNotices::admin_notice_ignore()
S
62 2 11
IOWD_Rest::register_routes()
S
54 1 24
TenWebLibDeactivate::add_deactivation_feedback_dialog_box()
S
56 1 21
IOWD_Settings::__construct()
S
58 1 17
TenWebLibNotices::wd_admin_notices()
S
55 1 17
IOWD_Optimize::__construct()
S
67 2 7
IOWD::is_iowd_page()
S
64 2 10
IOWD::autoload()
S
67 2 7
IOWD::styles()
S
67 2 7
TenWebLib::register_hooks()
S
69 2 6
IOWD::get_instance()
S
72 2 6
IOWDDB::update()
S
67 2 7
TenWebLibNotices::anti_notice_spam()
S
72 2 6
IOWD::admin_menu()
S
62 2 10
IOWDImage::convert_to_png()
S
70 2 6
IOWD_Helper::get_gallery_dir()
S
66 2 8
IOWD_MediaLibrary::media_wd_optimize_column()
S
73 2 5
IOWD::iowd_admin()
S
65 2 9
IOWD_Util::str_lreplace()
S
68 2 7
IOWD_Log::write_log()
S
66 2 8
TenWebLib::change_deactivation_link()
S
59 1 14
IOWD::upgrade_pro()
S
65 1 13
IOWD_Ajax::filter_report()
S
62 1 11
IOWD_Report::display()
S
60 1 11
IOWDDB_Class::set_table_name()
S
81 1 3
IOWD_Settings::get_gallery_dir()
S
80 1 3
TenWebLibOverview::overview_scripts()
S
71 1 5
IOWD_Log::error_log()
S
79 1 3
TenWebLibNotices::__construct()
S
70 1 6
IOWD_Uninstall::display()
S
80 1 3
TenWebLib::display_overview_page()
S
82 1 3
IOWD_Api::set_post_headers_data()
S
78 1 3
TenWebLib::__construct()
S
78 1 3
IOWD_Api::set_api_action()
S
79 1 3
IOWD_MediaLibrary::manage_columns()
S
75 1 4
TenWebLibSubscribe::subscribe_styles()
S
74 1 4
TenWebLibNotices::special_parameters()
S
91 1 2
TenWebLibApi::__construct()
S
76 1 4
IOWD_Helper::message()
S
70 1 7
IOWD_MediaLibrary::__construct()
S
64 1 9
TenWebLibOverview::overview_styles()
S
71 1 5
ten_web_lib_init()
S
73 1 5
IOWD::includes()
S
77 1 4
TenWebLib::display_subscribew_page()
S
82 1 3
IOWD::deactivate()
S
80 1 3
IOWD_Api::set_post_data()
S
80 1 3
TenWebLibOverview::__construct()
S
77 1 4
IOWD::autoloadProxy()
S
80 1 3
IOWD_Helper::redirect()
S
78 1 3
TenWebLibSubscribe::subscribe_display_page()
S
76 1 4
TenWebLibSubscribe::__construct()
S
75 1 4
TenWebLib::wd_includes()
S
67 1 8
iowd_php_version_admin_notice()
S
68 1 9
IOWD_Ajax::update_already_used()
S
73 1 5
TenWebLibSubscribe::subscribe_scripts()
S
72 1 5
IOWD_Ajax::abort()
S
66 1 8