{"id":357797,"date":"2026-08-30T14:19:18","date_gmt":"2026-08-30T14:19:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/avar-media-optimizer\/"},"modified":"2026-08-30T14:19:07","modified_gmt":"2026-08-30T14:19:07","slug":"avar-media-optimizer","status":"publish","type":"plugin","link":"https:\/\/emoji.wordpress.org\/plugins\/avar-media-optimizer\/","author":16850996,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.22.4","stable_tag":"1.22.4","tested":"7.1","requires":"6.4","requires_php":"8.1","requires_plugins":null,"header_name":"AVAR Media Optimizer","header_author":"AVAR spol. s r. o.","header_description":"Clean up unused media, optimize images, generate WebP\/AVIF, and restore mistakes safely with a protected media trash.","assets_banners_color":"ffffff","last_updated":"2026-08-30 14:19:07","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.avar.sk\/en\/plugins\/avar-media-optimizer\/","header_author_uri":"https:\/\/avar.sk\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":18,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.22.4":{"tag":"1.22.4","author":"pluptak","date":"2026-08-30 14:19:07","revision":3672663}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3672662,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3672662,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3672662,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3672662,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.22.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3672662,"resolution":"1","location":"assets","locale":"","width":1448,"height":1086},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3672662,"resolution":"2","location":"assets","locale":"","width":1448,"height":1086},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3672662,"resolution":"3","location":"assets","locale":"","width":1448,"height":1086},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3672662,"resolution":"4","location":"assets","locale":"","width":1448,"height":1086},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3672662,"resolution":"5","location":"assets","locale":"","width":1448,"height":1086}},"screenshots":{"1":"Media Optimizer overview with Media Library statistics, potential savings and scan status.","2":"Local image optimization with WebP and AVIF generation.","3":"Scan results showing used, unused and verify-manually classifications.","4":"Duplicate media detection with potential storage savings.","5":"Disk scanner for orphan files and stale image variants."}},"plugin_section":[],"plugin_tags":[194661,29161,253777,219749,15376],"plugin_category":[],"plugin_contributors":[265744],"plugin_business_model":[],"class_list":["post-357797","plugin","type-plugin","status-publish","hentry","plugin_tags-avif","plugin_tags-image-optimization","plugin_tags-media-cleanup","plugin_tags-unused-media","plugin_tags-webp","plugin_contributors-pluptak","plugin_committers-pluptak"],"banners":{"banner":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/banner-772x250.png?rev=3672662","banner_2x":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/banner-1544x500.png?rev=3672662","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/icon-128x128.png?rev=3672662","icon_2x":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/icon-256x256.png?rev=3672662","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/screenshot-1.png?rev=3672662","caption":"Media Optimizer overview with Media Library statistics, potential savings and scan status."},{"src":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/screenshot-2.png?rev=3672662","caption":"Local image optimization with WebP and AVIF generation."},{"src":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/screenshot-3.png?rev=3672662","caption":"Scan results showing used, unused and verify-manually classifications."},{"src":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/screenshot-4.png?rev=3672662","caption":"Duplicate media detection with potential storage savings."},{"src":"https:\/\/ps.w.org\/avar-media-optimizer\/assets\/screenshot-5.png?rev=3672662","caption":"Disk scanner for orphan files and stale image variants."}],"raw_content":"<!--section=description-->\n<p>AVAR Media Optimizer helps you take control of a growing WordPress Media Library without turning cleanup into a risky guessing game.<\/p>\n\n<p>Find media that appears unused, discover orphan files outside the Media Library, detect duplicates, optimize images, generate modern WebP or AVIF versions, and safely move unwanted media to a restorable trash before deleting it permanently.<\/p>\n\n<p>Everything is designed around one principle:<\/p>\n\n<p><strong>Free up storage and improve your media library without taking unnecessary risks with your files.<\/strong><\/p>\n\n<h4>Find unused media with confidence<\/h4>\n\n<p>Over time, WordPress websites collect images and files that may no longer be needed. The difficult part is knowing which ones are actually safe to remove.<\/p>\n\n<p>AVAR Media Optimizer scans common WordPress references and classifies media into clear groups:<\/p>\n\n<ul>\n<li><strong>Used<\/strong> \u2014 a supported reference to the media was found.<\/li>\n<li><strong>Unused<\/strong> \u2014 no supported reference was detected.<\/li>\n<li><strong>Verify manually<\/strong> \u2014 the plugin found an ambiguous, custom or unsupported situation and will not automatically treat the media as safe to remove.<\/li>\n<\/ul>\n\n<p>The scanner checks many common locations, including:<\/p>\n\n<ul>\n<li>posts and pages,<\/li>\n<li>featured images,<\/li>\n<li>WooCommerce product galleries,<\/li>\n<li>Elementor data,<\/li>\n<li>ACF and custom metadata,<\/li>\n<li>widgets and WordPress options,<\/li>\n<li>users, terms and comments,<\/li>\n<li>generated thumbnails,<\/li>\n<li>scaled image variants,<\/li>\n<li>WebP and AVIF copies.<\/li>\n<\/ul>\n\n<p>No WordPress plugin can understand every custom theme, page builder or plugin ever created. When AVAR Media Optimizer is not confident, it prefers to ask for manual verification rather than make an aggressive cleanup decision.<\/p>\n\n<h4>Safe cleanup with a restorable trash<\/h4>\n\n<p>Cleaning a Media Library should not mean permanently deleting something with one click.<\/p>\n\n<p>Media can be moved to a protected plugin trash first, together with the data needed for recovery.<\/p>\n\n<p>You can:<\/p>\n\n<ul>\n<li>restore attachments,<\/li>\n<li>restore related thumbnails,<\/li>\n<li>restore WordPress attachment metadata,<\/li>\n<li>configure trash retention,<\/li>\n<li>permanently delete items only when you are ready.<\/li>\n<\/ul>\n\n<p>The plugin includes additional safeguards around destructive operations to reduce the chance of overwriting or deleting unrelated files.<\/p>\n\n<h4>Find orphan files outside the Media Library<\/h4>\n\n<p>Not every file inside <code>wp-content\/uploads<\/code> belongs to a valid Media Library attachment.<\/p>\n\n<p>The disk scanner can help identify:<\/p>\n\n<ul>\n<li>files not registered in the Media Library,<\/li>\n<li>stale thumbnail files,<\/li>\n<li>orphan WebP or AVIF files,<\/li>\n<li>files left behind by removed attachments,<\/li>\n<li>media that can potentially be adopted into WordPress.<\/li>\n<\/ul>\n\n<p>Detected files can be reviewed before any action is taken.<\/p>\n\n<h4>Detect duplicate media<\/h4>\n\n<p>Duplicate uploads can quietly consume a large amount of storage.<\/p>\n\n<p>AVAR Media Optimizer detects duplicates by comparing file content rather than relying only on filenames.<\/p>\n\n<p>This makes it possible to discover identical files even when they were uploaded under different names.<\/p>\n\n<h4>Optimize images locally<\/h4>\n\n<p>Reduce image size directly on your WordPress server.<\/p>\n\n<p>AVAR Media Optimizer does not upload your images to an external optimization service.<\/p>\n\n<p>Depending on the image libraries available on your hosting environment, the plugin can:<\/p>\n\n<ul>\n<li>optimize JPEG, PNG and WebP images,<\/li>\n<li>resize oversized images,<\/li>\n<li>keep a recovery copy of the original,<\/li>\n<li>restore the original image,<\/li>\n<li>generate WebP versions,<\/li>\n<li>generate AVIF versions.<\/li>\n<\/ul>\n\n<p>Available formats and optimization results depend on your server's PHP image-processing libraries, memory and available resources.<\/p>\n\n<h4>Generate WebP and AVIF<\/h4>\n\n<p>Modern image formats can significantly reduce image size while maintaining visual quality.<\/p>\n\n<p>AVAR Media Optimizer can generate WebP and AVIF versions when your server supports them.<\/p>\n\n<p>The Diagnostics screen shows which image formats are available on your hosting environment.<\/p>\n\n<h4>Replace media without changing the attachment ID<\/h4>\n\n<p>Need to update an image that is already used across your website?<\/p>\n\n<p>The Media Replace tool lets you replace the physical files of an attachment while keeping the same WordPress attachment ID.<\/p>\n\n<p>Standard WordPress references can therefore continue pointing to the same attachment.<\/p>\n\n<h4>Automate routine media maintenance<\/h4>\n\n<p>For larger websites, media maintenance does not need to be entirely manual.<\/p>\n\n<p>AVAR Media Optimizer supports recurring maintenance workflows such as:<\/p>\n\n<ul>\n<li>scheduled scans,<\/li>\n<li>trash retention,<\/li>\n<li>image optimization tasks,<\/li>\n<li>background processing,<\/li>\n<li>summary e-mails.<\/li>\n<\/ul>\n\n<p>WP-CLI commands are also available for administrators who prefer command-line workflows.<\/p>\n\n<h4>Built with safety in mind<\/h4>\n\n<p>Media cleanup is a destructive task, so AVAR Media Optimizer deliberately uses a cautious approach.<\/p>\n\n<p>Depending on the operation, the plugin uses safeguards such as:<\/p>\n\n<ul>\n<li>protected internal storage,<\/li>\n<li>storage exposure diagnostics,<\/li>\n<li>ownership verification,<\/li>\n<li>recovery information,<\/li>\n<li>checksums,<\/li>\n<li>file and attachment locks,<\/li>\n<li>guarded restore operations,<\/li>\n<li>exclusions,<\/li>\n<li>warnings for uncertain results.<\/li>\n<\/ul>\n\n<p>Before performing a large cleanup on any production website, we still recommend keeping an independent website and uploads backup.<\/p>\n\n<h4>Privacy-friendly image optimization<\/h4>\n\n<p>Your images are processed locally on your WordPress server.<\/p>\n\n<p>AVAR Media Optimizer does not send media files or website content to an external image optimization service.<\/p>\n\n<p>The plugin can perform a small request to your own website to verify that its recovery storage is not publicly accessible.<\/p>\n\n<p>If your uploads are hosted on another domain, such as a CDN or object storage service, the plugin does not contact that external domain automatically. An external storage test is performed only when an administrator explicitly requests it from Diagnostics.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate <strong>AVAR Media Optimizer<\/strong>.<\/li>\n<li>Open <strong>Media Optimizer<\/strong> in the WordPress administration.<\/li>\n<li>Run your first media usage scan.<\/li>\n<li>Review the scan results, especially <strong>Verify manually<\/strong> items.<\/li>\n<li>Configure cleanup, trash retention, optimization and automation according to your website.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"can%20avar%20media%20optimizer%20tell%20me%20exactly%20which%20images%20are%20safe%20to%20delete%3F\"><h3>Can AVAR Media Optimizer tell me exactly which images are safe to delete?<\/h3><\/dt>\n<dd><p>The plugin detects many common WordPress references, but no automated scanner can understand every custom theme, plugin or externally stored reference.<\/p>\n\n<p>When a result is uncertain, AVAR Media Optimizer places it into <strong>Verify manually<\/strong> rather than automatically treating it as unused.<\/p>\n\n<p>Always review important media before permanently deleting it.<\/p><\/dd>\n<dt id=\"are%20files%20permanently%20deleted%20during%20normal%20cleanup%3F\"><h3>Are files permanently deleted during normal cleanup?<\/h3><\/dt>\n<dd><p>No. Standard cleanup can move media into the plugin's restorable trash first.<\/p>\n\n<p>Items remain recoverable until they are permanently purged manually or according to your configured retention rules.<\/p><\/dd>\n<dt id=\"can%20deleted%20media%20be%20restored%3F\"><h3>Can deleted media be restored?<\/h3><\/dt>\n<dd><p>Media moved through the plugin's trash workflow can be restored together with the files and WordPress data required by the recovery process.<\/p><\/dd>\n<dt id=\"can%20the%20plugin%20find%20files%20that%20are%20not%20in%20the%20media%20library%3F\"><h3>Can the plugin find files that are not in the Media Library?<\/h3><\/dt>\n<dd><p>Yes.<\/p>\n\n<p>The disk scanner examines the WordPress uploads directory and can identify orphan files, stale thumbnails, next-generation image copies and other files that are not associated with a normal Media Library attachment.<\/p><\/dd>\n<dt id=\"can%20it%20detect%20duplicate%20images%20with%20different%20filenames%3F\"><h3>Can it detect duplicate images with different filenames?<\/h3><\/dt>\n<dd><p>Yes.<\/p>\n\n<p>Duplicate detection compares file content, so identical files can be identified even when their filenames are different.<\/p><\/dd>\n<dt id=\"does%20image%20optimization%20use%20an%20external%20service%3F\"><h3>Does image optimization use an external service?<\/h3><\/dt>\n<dd><p>No.<\/p>\n\n<p>Image optimization runs locally on your WordPress server. Media files are not uploaded to an external optimization service.<\/p><\/dd>\n<dt id=\"why%20can%27t%20i%20generate%20webp%20or%20avif%3F\"><h3>Why can't I generate WebP or AVIF?<\/h3><\/dt>\n<dd><p>WebP and AVIF availability depends on the image-processing libraries installed on your server.<\/p>\n\n<p>Check <strong>Media Optimizer &gt; Diagnostics<\/strong> to see the capabilities detected on your hosting environment.<\/p><\/dd>\n<dt id=\"can%20i%20restore%20an%20image%20after%20optimization%3F\"><h3>Can I restore an image after optimization?<\/h3><\/dt>\n<dd><p>If optimization backups are enabled and a recovery copy is available, the original image can be restored.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20automatically%20contact%20my%20cdn%20or%20external%20storage%3F\"><h3>Does the plugin automatically contact my CDN or external storage?<\/h3><\/dt>\n<dd><p>No.<\/p>\n\n<p>If uploads are served from another domain, AVAR Media Optimizer does not automatically contact it while checking storage protection.<\/p>\n\n<p>You can explicitly run the external storage test from Diagnostics if you want to verify the configuration.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20uninstall%20the%20plugin%3F\"><h3>What happens when I uninstall the plugin?<\/h3><\/dt>\n<dd><p>By default, recovery data needed to restore trashed or optimized media is preserved.<\/p>\n\n<p>Administrators who intentionally want to remove plugin data and recovery files can enable the complete removal option before uninstalling.<\/p><\/dd>\n<dt id=\"does%20it%20support%20wordpress%20multisite%3F\"><h3>Does it support WordPress Multisite?<\/h3><\/dt>\n<dd><p>Network-wide activation is not supported.<\/p>\n\n<p>Activate and configure the plugin separately for each individual site.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.22.4<\/h4>\n\n<ul>\n<li>Initial WordPress.org release.<\/li>\n<\/ul>","raw_excerpt":"Clean up your Media Library, find unused files, optimize images, generate WebP\/AVIF and recover mistakes with a restorable media trash.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/357797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=357797"}],"author":[{"embeddable":true,"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pluptak"}],"wp:attachment":[{"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=357797"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=357797"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=357797"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=357797"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=357797"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/emoji.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=357797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}