Code Analysis: reSmush.it Image Optimizer 1.0.4

Function Rating Maintainability Complexity Lines of code
Resmush\Notices\NoticeModel::getForDisplay()
C
33 25 98
Resmush\FileSystem\Controller\FileSystemController::pathToUrl()
B
40 23 54
resmushit_activate()
B
49 23 28
reSmushit::optimize()
A
37 14 69
reSmushitUI::alertPanel()
A
39 14 60
Resmush\Controller\ProcessController::process_images()
A
40 14 60
Resmush\FileSystem\Model\File\DirectoryModel::__construct()
A
44 14 49
reSmushitWPCLI::optimize()
A
40 13 59
Resmush\ShortPixelLogger\DebugItem::__construct()
A
44 14 43
Resmush\ShortPixelLogger\ShortPixelLogger::__construct()
A
45 14 41
reSmushitUI::addSetting()
A
41 13 50
Resmush\FileSystem\Model\File\FileModel::mb_pathinfo()
A
48 14 34
Resmush\Controller\AjaxController::restore_backup_files()
A
43 11 48
Resmush\FileSystem\Model\File\DirectoryModel::getFiles()
A
48 12 30
Resmush\FileSystem\Model\File\DirectoryModel::check()
A
46 11 40
Resmush\FileSystem\Model\File\FileModel::relativeToFullPath()
A
48 11 33
Resmush\FileSystem\Model\File\FileModel::processPath()
A
49 10 33
Resmush\FileSystem\Model\File\FileModel::is_file()
A
50 10 33
reSmushitUI::bulkPanel()
A
41 8 54
Resmush\ShortPixelLogger\ShortPixelLogger::getWriteFile()
A
48 9 36
Resmush\FileSystem\Model\File\DirectoryModel::fileFilter()
A
50 9 30
Resmush\ShortPixelLogger\ShortPixelLogger::addLog()
A
50 9 28
Resmush\FileSystem\Model\File\DirectoryModel::getSubDirectories()
A
52 9 25
Resmush\ShortPixelLogger\ShortPixelLogger::formatLine()
A
51 9 25
Resmush\Notices\NoticeController::ajax_action()
A
47 8 36
Resmush\FileSystem\Model\File\FileModel::UrlToPath()
A
45 7 45
Resmush\Controller\ProcessController::initHooks()
A
58 9 13
reSmushitUI::newsPanel()
A
41 6 58
reSmushit::getNonOptimizedPictures()
A
42 6 57
reSmushitUI::mediaListCustomValuesStatus()
A
45 7 38
reSmushit::getStatistics()
A
43 6 49
Resmush\FileSystem\Model\File\FileModel::getMime()
A
55 8 19
Resmush\FileSystem\Controller\FileSystemController::pathIsUrl()
S
61 9 10
Resmush\Controller\CronController::get_cron_status()
S
57 8 15
Resmush\Controller\AjaxController::update_disabled_state()
S
57 8 14
Resmush\Build\PackageLoader::loadPSR()
S
52 7 23
Resmush\Notices\NoticeController::loadNotices()
S
54 7 22
Resmush\Controller\AjaxController::remove_backup_files()
S
54 7 20
reSmushitUI::bigFilesPanel()
S
46 6 35
Resmush\FileSystem\Controller\FileSystemController::downloadFile()
S
48 6 34
Resmush\Controller\AjaxController::restore_single_attachment()
S
54 7 18
time_elapsed_string()
S
48 6 30
Resmush\Controller\AjaxController::optimize_single_attachment()
S
57 7 15
Resmush\FileSystem\Model\File\DirectoryModel::getRelativePath()
S
52 6 28
Resmush\FileSystem\Model\File\FileModel::copy()
S
50 6 28
Resmush\Notices\NoticeController::makePersistent()
S
53 6 24
Resmush\FileSystem\Model\File\FileModel::fileIsRestricted()
S
53 6 24
Resmush\FileSystem\Model\File\FileModel::is_directory_writable()
S
55 6 22
Resmush\Notices\NoticeController::getNoticesForDisplay()
S
55 6 21
Resmush\Notices\NoticeController::update()
S
56 6 19
Resmush\ShortPixelLogger\ShortPixelLogger::initView()
S
57 6 14
Resmush\FileSystem\Model\File\DirectoryModel::recursiveDelete()
S
59 6 14
Resmush\Notices\NoticeModel::isDone()
S
61 6 13
Resmush\ShortPixelLogger\DebugItem::getForFormat()
S
52 5 27
Resmush\FileSystem\Model\File\FileModel::setFileInfo()
S
60 6 12
Resmush\FileSystem\Model\File\FileModel::is_writable()
S
55 5 24
reSmushitUI::mediaListCustomValuesDisable()
S
52 5 23
Resmush\FileSystem\Model\File\DirectoryModel::fileIsRestricted()
S
56 5 19
Resmush\Notices\NoticeModel::setIcon()
S
57 5 19
Resmush\ShortPixelLogger\ShortPixelLogger::write()
S
55 5 18
reSmushit::wasSuccessfullyUpdated()
S
56 5 18
Resmush\FileSystem\Model\File\FileModel::getFileSize()
S
58 5 17
Resmush\Controller\AdminController::register_plugin_assets()
S
43 3 47
Resmush\Notices\NoticeController::addNotice()
S
59 5 15
Resmush\ShortPixelLogger\DebugItem::setCaller()
S
58 5 15
Resmush\FileSystem\Model\File\FileModel::exists()
S
58 5 15
Resmush\Controller\AjaxController::update_statistics()
S
58 5 14
Resmush\Controller\AjaxController::bulk_process_image()
S
58 5 13
Resmush\Controller\AjaxController::bulk_get_images()
S
61 5 12
Resmush\Controller\CronController::checkSchedule()
S
63 5 11
Resmush\Controller\AdminController::settings_page()
S
43 1 70
reSmushitUI::settingsPanel()
S
42 2 54
reSmushitUI::statisticsPanel()
S
47 3 38
Resmush\FileSystem\Model\File\FileModel::checkTrustedMode()
S
55 4 22
Resmush\Controller\CronController::cron_process()
S
52 4 22
Resmush\FileSystem\Model\File\FileModel::delete()
S
55 4 20
Resmush\FileSystem\Model\File\DirectoryModel::getFolderSize()
S
57 4 19
Resmush\FileSystem\Model\File\DirectoryModel::reverseConstructPath()
S
56 4 17
Resmush\Notices\NoticeModel::checkScreen()
S
59 4 17
Resmush\FileSystem\Model\File\FileModel::__construct()
S
58 4 17
Resmush\Controller\CronController::on_remove_unsmushed_change()
S
58 4 17
Resmush\FileSystem\Controller\FileSystemController::sortFiles()
S
58 4 16
Resmush\Notices\NoticeController::admin_notices()
S
59 4 15
reSmushit::getCountNonOptimizedPictures()
S
63 5 9
Resmush\FileSystem\Model\File\FileModel::create()
S
59 4 15
Resmush\Build\PackageLoader::load()
S
60 4 13
Resmush\Notices\NoticeController::removeNoticeByID()
S
60 4 13
reSmushitWPCLI::set_quality()
S
61 4 12
reSmushit::revert()
S
51 3 26
Resmush\Controller\AdminController::image_attachment_add_status_button()
S
54 3 21
reSmushit::getCountAllPictures()
S
55 3 19
Resmush\FileSystem\Controller\FileSystemController::url_exists()
S
57 3 18
Resmush\Notices\NoticeModel::limitScreens()
S
59 3 16
Resmush\Notices\NoticeModel::getDismissJS()
S
51 2 31
Resmush\Controller\AdminController::media_list_add_column_value()
S
60 3 15
Resmush\Controller\CronController::on_cron_activation()
S
71 4 5
Resmush\ShortPixelLogger\ShortPixelLogger::monitorHooks()
S
62 4 10
Resmush\FileSystem\Model\File\DirectoryModel::getPermissions()
S
61 3 14
Resmush\ShortPixelLogger\ShortPixelLogger::formatBytes()
S
59 3 14
Resmush\FileSystem\Model\File\FileModel::move()
S
61 3 14
Resmush\FileSystem\Model\File\DirectoryModel::constructUsualDirectories()
S
60 3 13
Resmush\FileSystem\Controller\FileSystemController::getFilesRecursive()
S
61 3 13
Resmush\FileSystem\Model\File\FileModel::append()
S
60 3 13
reSmushitUI::sizeFormat()
S
61 3 12
Resmush\FileSystem\Controller\FileSystemController::getWPAbsPath()
S
62 3 11
Resmush\Plugin::checkLogger()
S
63 3 11
reSmushitUI::restorePanel()
S
54 2 21
Resmush\Helper\BuildAutoLoader::buildJSON()
S
56 2 17
Resmush\Build\PackageLoader::loadFiles()
S
67 3 8
Resmush\Notices\NoticeModel::addDetail()
S
70 3 6
Resmush\Notices\NoticeModel::setPersistent()
S
65 3 9
Resmush\Notices\NoticeModel::hasDetails()
S
70 3 6
Resmush\Controller\AdminController::__construct()
S
71 3 6
reSmushitUI::feedbackPanel()
S
51 1 30
Resmush\FileSystem\Model\File\DirectoryModel::isSubFolderOf()
S
66 3 9
Resmush\Controller\WpCliController::__construct()
S
72 3 5
Resmush\ShortPixelLogger\ShortPixelLogger::loadView()
S
58 2 15
Resmush\ShortPixelLogger\ShortPixelLogger::addMemoryLog()
S
58 2 15
Resmush\FileSystem\Model\File\DirectoryModel::exists()
S
69 3 7
reSmushit::getPictureQualitySetting()
S
64 3 10
reSmushit::isImageOptimized()
S
66 3 8
Resmush\FileSystem\Model\File\FileModel::getFileDir()
S
67 3 8
Resmush\Notices\NoticeController::getNoticeByID()
S
67 3 8
Resmush\Controller\AdminController::displayMetaBox()
S
63 2 12
Resmush\FileSystem\Model\File\DirectoryModel::getPermissionRecursive()
S
64 2 11
Resmush\ShortPixelLogger\DebugItem::getDataType()
S
63 2 11
Resmush\FileSystem\Model\File\DirectoryModel::is_writable()
S
70 2 7
Resmush\FileSystem\Model\File\FileModel::getFileName()
S
74 2 5
Resmush\Notices\NoticeController::printNoticeStyle()
S
66 2 9
Resmush\FileSystem\Model\File\FileModel::getFileBase()
S
74 2 5
Resmush\FileSystem\Model\File\FileModel::getExtension()
S
74 2 5
reSmushit::getAttachmentQuality()
S
69 2 6
Resmush\Notices\NoticeController::loadConfig()
S
68 2 8
Resmush\Notices\NoticeModel::_debug_getvar()
S
72 2 6
Resmush\Controller\AdminController::isAllowedExtension()
S
64 2 10
Resmush\Build\PackageLoader::getComposerFile()
S
72 2 5
Resmush\Controller\CronController::getInstance()
S
73 2 5
reSmushit::updateDisabledState()
S
65 2 9
Resmush\Controller\ProcessController::getInstance()
S
73 2 5
reSmushit::getDisabledState()
S
73 2 5
reSmushit::deleteOriginalFile()
S
65 2 8
Resmush\FileSystem\Model\File\FileModel::is_virtual()
S
74 2 5
reSmushit::glob_recursive()
S
65 2 8
Resmush\FileSystem\Model\File\DirectoryModel::is_readable()
S
70 2 7
Resmush\FileSystem\Model\File\FileModel::is_readable()
S
73 2 5
Resmush\FileSystem\Controller\FileSystemController::getFullPathForWP()
S
69 2 7
Resmush\FileSystem\Model\File\DirectoryModel::getParent()
S
65 2 10
Resmush\FileSystem\Model\File\FileModel::getPermissions()
S
72 2 5
Resmush\FileSystem\Model\File\FileModel::getFullPath()
S
70 2 7
Resmush\Notices\NoticeController::getInstance()
S
69 2 7
reSmushit::resmushit_get_image_id()
S
63 2 10
Resmush\ShortPixelLogger\ShortPixelLogger::getEnv()
S
67 2 9
Resmush\Controller\AdminController::add_plugin_page_settings_link()
S
65 2 9
Resmush\Notices\NoticeController::loadIcons()
S
75 2 4
Resmush\Plugin::getInstance()
S
73 2 5
Resmush\Controller\AdminController::add_menu()
S
70 2 6
Resmush\ShortPixelLogger\ShortPixelLogger::getInstance()
S
69 2 7
Resmush\Controller\WpCliController::getInstance()
S
73 2 5
Resmush\Controller\AdminController::getInstance()
S
73 2 5
Resmush\Controller\AjaxController::getInstance()
S
73 2 5
reSmushit::hasAlreadyRunOnce()
S
61 1 12
Resmush\FileSystem\Model\File\FileModel::__debuginfo()
S
63 1 11
Resmush\FileSystem\Model\File\FileModel::resetStatus()
S
64 1 11
Resmush\FileSystem\Controller\FileSystemController::getFile()
S
80 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::addInfo()
S
72 1 5
Resmush\Controller\AdminController::addMetaBox()
S
67 1 9
Resmush\Controller\AdminController::initHooks()
S
63 1 9
Resmush\ShortPixelLogger\ShortPixelLogger::setLogPath()
S
76 1 4
Resmush\Notices\NoticeController::addSuccess()
S
72 1 5
reSmushit::hasBackup()
S
69 1 6
Resmush\FileSystem\Model\File\DirectoryModel::is_virtual()
S
82 1 3
Resmush\Notices\NoticeModel::parseDetails()
S
79 1 3
Resmush\Controller\CronController::initHooks()
S
69 1 6
Resmush\ShortPixelLogger\ShortPixelLogger::debugIsActive()
S
75 1 4
reSmushitUI::headerPanel()
S
73 1 4
Resmush\Notices\NoticeController::addDetail()
S
73 1 5
Resmush\Notices\NoticeController::addNormal()
S
72 1 5
Resmush\Controller\ProcessController::__construct()
S
82 1 3
Resmush\FileSystem\Model\File\FileModel::setPermissions()
S
79 1 3
Resmush\Controller\CronController::doing_cron()
S
82 1 3
Resmush\Notices\NoticeController::getNotices()
S
81 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::addTrace()
S
72 1 5
reSmushitWPCLI::help()
S
70 1 7
Resmush\Controller\CronController::__construct()
S
78 1 4
Resmush\Controller\AdminController::settings_declare()
S
65 1 10
reSmushitUI::fullWidthPanelWrapper()
S
68 1 6
Resmush\Plugin::process()
S
81 1 3
Resmush\Notices\NoticeModel::isPersistent()
S
82 1 3
Resmush\Notices\NoticeModel::checkIncomplete()
S
79 1 3
Resmush\Plugin::initHooks()
S
91 1 2
Resmush\Build\PackageLoader::setComposerFile()
S
78 1 3
Resmush\Plugin::fs()
S
81 1 3
Resmush\Notices\NoticeModel::unDismiss()
S
81 1 3
reSmushitUI::fullWidthPanel()
S
72 1 5
Resmush\FileSystem\Model\File\DirectoryModel::getModified()
S
80 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::getLogLevel()
S
75 1 4
Resmush\Notices\NoticeModel::dismiss()
S
75 1 4
Resmush\Notices\NoticeController::countNotices()
S
76 1 4
Resmush\FileSystem\Model\File\FileModel::getRawFullPath()
S
82 1 3
Resmush\Notices\NoticeModel::getID()
S
82 1 3
Resmush\Controller\ProcessController::delete_attachment()
S
81 1 3
Resmush\Build\PackageLoader::__construct()
S
91 1 2
Resmush\FileSystem\Controller\FileSystemController::getDirectory()
S
80 1 3
Resmush\FileSystem\Model\File\DirectoryModel::getFS()
S
78 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::addMemory()
S
75 1 4
Resmush\Controller\AjaxController::__construct()
S
82 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::addWarning()
S
79 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::addTemp()
S
79 1 3
Resmush\Plugin::__construct()
S
79 1 3
Resmush\FileSystem\Model\File\FileModel::__toString()
S
81 1 3
Resmush\FileSystem\Model\File\FileModel::getModified()
S
80 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::isManualDebug()
S
75 1 4
Resmush\Helper\BuildAutoLoader::getFiles()
S
70 1 7
Resmush\ShortPixelLogger\ShortPixelLogger::setLogLevel()
S
81 1 3
Resmush\Notices\NoticeController::addWarning()
S
72 1 5
Resmush\Build\PackageLoader::loadPSR4()
S
79 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::addError()
S
72 1 5
reSmushit::authorizedExtensions()
S
78 1 3
Resmush\FileSystem\Model\File\DirectoryModel::getPath()
S
82 1 3
reSmushitUI::fullWidthPanelEndWrapper()
S
80 1 3
Resmush\FileSystem\Model\File\DirectoryModel::delete()
S
80 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::getLogPath()
S
75 1 4
Resmush\Build\PackageLoader::loadPSR0()
S
80 1 3
Resmush\FileSystem\Model\File\DirectoryModel::__toString()
S
81 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::addDebug()
S
72 1 5
Resmush\ShortPixelLogger\ShortPixelLogger::logHook()
S
71 1 5
reSmushitWPCLI::version()
S
80 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::logLevel()
S
73 1 5
Resmush\Controller\CronController::add_cron_interval()
S
67 1 7
Resmush\Notices\NoticeModel::isDismissed()
S
82 1 3
Resmush\Plugin::init()
S
70 1 7
Resmush\Controller\AdminController::media_list_add_column()
S
75 1 4
Resmush\Notices\NoticeModel::setDismissedUntil()
S
81 1 3
Resmush\Notices\NoticeModel::__construct()
S
77 1 4
reSmushit::detect_unsmushed_files()
S
74 1 4
Resmush\Notices\NoticeController::addError()
S
72 1 5
Resmush\ShortPixelLogger\ShortPixelLogger::addWarn()
S
72 1 5
Resmush\FileSystem\Model\File\DirectoryModel::getName()
S
82 1 3
Resmush\FileSystem\Model\File\FileModel::getFS()
S
78 1 3
Resmush\ShortPixelLogger\DebugItem::getData()
S
76 1 3
Resmush\ShortPixelLogger\ShortPixelLogger::unitToInt()
S
71 1 5
Resmush\FileSystem\Controller\FileSystemController::__construct()
S
91 1 2
Resmush\Controller\ProcessController::unHookProcessor()
S
75 1 4
Resmush\Controller\ProcessController::get_meta_id()
S
77 1 4
Resmush()
S
80 1 3
Resmush\Notices\NoticeController::resetNotices()
S
71 1 5
Resmush\FileSystem\Controller\FileSystemController::getWPUploadBase()
S
74 1 4
Resmush\Controller\AdminController::media_list_sort_column()
S
77 1 4
Resmush\FileSystem\Model\File\FileModel::getContents()
S
80 1 3
Resmush\Notices\NoticeController::__construct()
S
67 1 7
Resmush\Controller\AjaxController::initHooks()
S
63 1 10