Code Analysis: reSmush.it Image Optimizer 0.4.12

Function Rating Maintainability Complexity Lines of code
resmushit_activate()
B
49 23 28
reSmushit::optimize()
A
37 14 69
reSmushitUI::alertPanel()
A
39 14 58
reSmushitWPCLI::optimize()
A
40 13 59
resmushit_process_images()
A
41 13 53
rlog()
A
47 10 33
logtail()
A
51 9 22
reSmushitUI::bulkPanel()
A
44 7 44
reSmushitUI::newsPanel()
A
41 6 57
resmushit_restore_backup_files()
A
51 8 25
reSmushit::getNonOptimizedPictures()
A
43 6 54
reSmushit::getStatistics()
A
43 6 49
resmushit_get_cron_status()
S
58 8 15
resmushit_update_disabled_state()
S
57 8 14
resmushit_general_admin_notice()
S
49 6 36
resmushit_remove_backup_files()
S
54 7 20
reSmushitUI::bigFilesPanel()
S
47 6 33
resmushit_optimize_single_attachment()
S
57 7 15
time_elapsed_string()
S
50 6 26
resmushit_notice_close()
S
57 6 16
reSmushit::wasSuccessfullyUpdated()
S
59 5 14
resmushit_update_statistics()
S
58 5 14
resmushit_bulk_process_image()
S
58 5 13
resmushit_bulk_get_images()
S
61 5 12
reSmushitUI::mediaListCustomValuesStatus()
S
51 4 24
resmushit_cron_process()
S
52 4 23
reSmushitUI::statisticsPanel()
S
47 3 38
resmushit_register_plugin_assets()
S
54 4 20
reSmushitUI::addSetting()
S
55 4 18
resmushit_on_remove_unsmushed_change()
S
58 4 17
reSmushitWPCLI::set_quality()
S
61 4 12
reSmushitUI::mediaListCustomValuesDisable()
S
52 3 23
reSmushit::revert()
S
55 3 19
reSmushit::getCountAllPictures()
S
55 3 19
reSmushitUI::settingsPanel()
S
44 1 48
resmushit_on_cron_activation()
S
71 4 5
reSmushit::getCountNonOptimizedPictures()
S
65 4 8
reSmushitUI::sizeFormat()
S
61 3 12
reSmushitUI::restorePanel()
S
54 2 21
resmushit_image_attachment_add_status_button()
S
57 2 17
resmushit_media_list_add_column_value()
S
71 3 6
reSmushit::getPictureQualitySetting()
S
65 3 10
resmushit_settings_page()
S
61 1 18
resmushit_create_menu()
S
75 2 4
resmushit_add_plugin_page_settings_link()
S
65 2 9
reSmushit::getAttachmentQuality()
S
69 2 6
reSmushit::deleteOriginalFile()
S
65 2 8
reSmushit::getDisabledState()
S
73 2 5
glob_recursive()
S
65 2 8
reSmushit::updateDisabledState()
S
64 2 10
reSmushitUI::fullWidthPanelWrapper()
S
68 2 7
reSmushit::hasAlreadyRunOnce()
S
61 1 12
resmushit_media_list_add_column()
S
72 1 5
resmushit_delete_attachment()
S
82 1 3
resmushit_add_cron_interval()
S
67 1 7
reSmushitUI::fullWidthPanel()
S
72 1 5
resmushit_get_meta_id()
S
78 1 4
resmushit_media_list_sort_column()
S
74 1 5
detect_unsmushed_files()
S
75 1 4
resmushit_get_image_id()
S
71 1 5
reSmushitUI::fullWidthPanelEndWrapper()
S
80 1 3
reSmushitWPCLI::version()
S
80 1 3
resmushit_settings_declare()
S
65 1 10
reSmushitWPCLI::help()
S
70 1 7
reSmushitUI::headerPanel()
S
75 1 4
resmushit_init()
S
78 1 3
reSmushit::authorizedExtensions()
S
77 1 3
resmushit_load_plugin_textdomain()
S
78 1 3