Changeset 3436541
- Timestamp:
- 01/10/2026 10:37:38 AM (3 months ago)
- Location:
- filikod
- Files:
-
- 7 edited
-
assets/screenshot-1.png (modified) (previous)
-
trunk/admin/views/dashboard.php (modified) (3 diffs)
-
trunk/filikod.php (modified) (1 diff)
-
trunk/includes/dashboard/class-filikod-dashboard.php (modified) (1 diff)
-
trunk/languages/filikod-fr_FR.po (modified) (3 diffs)
-
trunk/languages/filikod.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
filikod/trunk/admin/views/dashboard.php
r3414803 r3436541 56 56 <!-- Images avec ALT --> 57 57 <div class="filikod-stat-item"> 58 <div class="filikod-stat-item-value"><?php echo esc_html( number_format_i18n( $filikod_images_with_alt, 0 ) ); ?></div> 59 <div class="filikod-stat-item-label"><?php esc_html_e( 'Images with ALT', 'filikod' ); ?></div> 58 <div class="filikod-stat-item-value"> 59 <?php echo esc_html( $this->get_alt_coverage_percentage() ); ?>% 60 </div> 61 <div class="filikod-stat-item-label"> 62 <?php esc_html_e( 'Images with ALT', 'filikod' ); ?> 63 </div> 60 64 </div> 65 61 66 62 67 <!-- Poids total après optimisation --> … … 105 110 printf( 106 111 /* translators: %s: The amount of space saved (e.g., "1.5 MB") */ 107 esc_html__( 'You saved %s by resizing your images', 'filikod' ),112 esc_html__( 'You saved %s by resizing oversized images.', 'filikod' ), 108 113 esc_html( $filikod_plugin->image_resizer->format_saved_bytes( $filikod_saved_bytes ) ) 109 114 ); … … 150 155 printf( 151 156 /* translators: %s: The percentage of optimized images (e.g., "99%") */ 152 esc_html__( ' You have optimized %s%% of your site\'s images', 'filikod' ),157 esc_html__( 'Filikod resizes images only when needed.', 'filikod' ), 153 158 esc_html( $filikod_optimization_percentage ) 154 159 ); -
filikod/trunk/filikod.php
r3414803 r3436541 4 4 * Plugin URI: https://filikod.com 5 5 * Description: A modern WordPress plugin for media optimization (images), improved accessibility, and ALT text management. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Filikod 8 8 * License: GPL v2 or later -
filikod/trunk/includes/dashboard/class-filikod-dashboard.php
r3413113 r3436541 87 87 return (int) $count; 88 88 } 89 90 91 /** 92 * Obtenir le nombre d'images sans texte alternatif (ALT) 93 * 94 * Compte toutes les images qui n'ont pas de meta _wp_attachment_image_alt 95 * ou dont la valeur est vide. 96 * 97 * @return int Le nombre d'images sans ALT 98 */ 99 public function get_images_without_alt_count() { 100 global $wpdb; 101 102 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 103 $count = $wpdb->get_var( 104 $wpdb->prepare( 105 "SELECT COUNT(DISTINCT p.ID) 106 FROM {$wpdb->posts} p 107 LEFT JOIN {$wpdb->postmeta} pm 108 ON p.ID = pm.post_id 109 AND pm.meta_key = '_wp_attachment_image_alt' 110 WHERE p.post_type = 'attachment' 111 AND p.post_status = 'inherit' 112 AND p.post_mime_type LIKE %s 113 AND (pm.meta_value IS NULL OR pm.meta_value = '')", 114 'image/%' 115 ) 116 ); 117 118 return (int) $count; 119 } 120 121 /** 122 * Obtenir le pourcentage d’images avec ALT 123 * 124 * @return int Pourcentage d’images avec ALT 125 */ 126 public function get_alt_coverage_percentage() { 127 $total = $this->get_total_images_count(); 128 129 if ( $total === 0 ) { 130 return 0; 131 } 132 133 $with_alt = $this->get_images_with_alt_count(); 134 135 $percentage = ( $with_alt / $total ) * 100; 136 137 return (int) round( $percentage ); 138 } 139 140 89 141 90 142 /** -
filikod/trunk/languages/filikod-fr_FR.po
r3414803 r3436541 64 64 65 65 #: admin/views/dashboard.php 66 msgid "Insufficient permissions."67 msgstr "Permissions insuffisantes."68 69 #: admin/views/dashboard.php70 66 msgid "Welcome to Filikod" 71 67 msgstr "Bienvenue sur Filikod" … … 80 76 81 77 #: admin/views/dashboard.php 82 msgid "Total Images" 83 msgstr "Total d'images" 84 85 #: admin/views/dashboard.php 86 msgid "Images with ALT" 87 msgstr "Images avec ALT" 88 89 #: admin/views/dashboard.php 90 msgid "Total Media Size" 91 msgstr "Poids total des médias" 92 93 #: admin/views/dashboard.php 94 msgid "Image Size Overview" 95 msgstr "Aperçu de la taille des images" 96 97 #: admin/views/dashboard.php 98 msgid "Original Size" 99 msgstr "Taille originale" 100 101 #: admin/views/dashboard.php 102 msgid "Optimized Size" 103 msgstr "Taille optimisée" 104 105 #: admin/views/dashboard.php 106 msgid "Resizing size Impact" 107 msgstr "Impact du redimensionnement" 108 109 #: admin/views/dashboard.php 110 msgid "You saved %s by resizing your images" 111 msgstr "Vous avez économisé %s en redimensionnant vos images" 112 113 #: admin/views/dashboard.php 114 msgid "Resize Rate" 115 msgstr "Taux de redimensionnement" 116 117 #: admin/views/dashboard.php 118 msgid "resize rate chart" 119 msgstr "graphique du taux de redimensionnement" 120 121 #: admin/views/dashboard.php 122 msgid "Image resized" 123 msgstr "Image redimensionnée" 124 125 #: admin/views/dashboard.php 126 msgid "Images not resized" 127 msgstr "Images non redimensionnées" 128 129 #: admin/views/dashboard.php 130 msgid "You have optimized %s%% of your site's images" 131 msgstr "Vous avez optimisé %s%% des images de votre site" 78 msgid "Plugin Status" 79 msgstr "Statut du plugin" 80 81 #: admin/views/dashboard.php 82 msgid "Active" 83 msgstr "Actif" 84 85 #: admin/views/dashboard.php 86 msgid "Inactive" 87 msgstr "Inactif" 88 89 #: admin/views/dashboard.php 90 msgid "Version" 91 msgstr "Version" 132 92 133 93 #: admin/views/settings.php … … 363 323 msgstr "Une erreur s'est produite pendant le traitement." 364 324 325 #: admin/views/dashboard.php 326 msgid "Total Images" 327 msgstr "Total d'images" 328 329 #: admin/views/dashboard.php 330 msgid "Images in media library" 331 msgstr "Images dans la bibliothèque média" 332 333 #: admin/views/dashboard.php 334 msgid "Images with ALT Text" 335 msgstr "Images avec texte ALT" 336 337 #: admin/views/dashboard.php 338 msgid "%s%% of images have ALT text" 339 msgstr "%s%% des images ont un texte ALT" 340 341 #: admin/views/dashboard.php 342 msgid "No images in library" 343 msgstr "Aucune image dans la bibliothèque" 344 345 #: admin/views/dashboard.php 346 msgid "Total Size" 347 msgstr "Poids total" 348 349 #: admin/views/dashboard.php 350 msgid "Total size of all images" 351 msgstr "Poids total de toutes les images" 365 352 366 353 #: includes/class-filikod-dashboard.php -
filikod/trunk/languages/filikod.pot
r3414803 r3436541 63 63 64 64 #: admin/views/dashboard.php 65 msgid "Insufficient permissions."66 msgstr ""67 68 #: admin/views/dashboard.php69 65 msgid "Welcome to Filikod" 70 66 msgstr "" … … 79 75 80 76 #: admin/views/dashboard.php 81 msgid " Total Images"77 msgid "Plugin Status" 82 78 msgstr "" 83 79 84 80 #: admin/views/dashboard.php 85 msgid " Images with ALT"81 msgid "Active" 86 82 msgstr "" 87 83 88 84 #: admin/views/dashboard.php 89 msgid " Total Media Size"85 msgid "Inactive" 90 86 msgstr "" 91 87 92 88 #: admin/views/dashboard.php 93 msgid "Image Size Overview" 94 msgstr "" 95 96 #: admin/views/dashboard.php 97 msgid "Original Size" 98 msgstr "" 99 100 #: admin/views/dashboard.php 101 msgid "Optimized Size" 102 msgstr "" 103 104 #: admin/views/dashboard.php 105 msgid "Resizing size Impact" 106 msgstr "" 107 108 #: admin/views/dashboard.php 109 msgid "You saved %s by resizing your images" 110 msgstr "" 111 112 #: admin/views/dashboard.php 113 msgid "Resize Rate" 114 msgstr "" 115 116 #: admin/views/dashboard.php 117 msgid "resize rate chart" 118 msgstr "" 119 120 #: admin/views/dashboard.php 121 msgid "Image resized" 122 msgstr "" 123 124 #: admin/views/dashboard.php 125 msgid "Images not resized" 126 msgstr "" 127 128 #: admin/views/dashboard.php 129 msgid "You have optimized %s%% of your site's images" 89 msgid "Version" 130 90 msgstr "" 131 91 -
filikod/trunk/readme.txt
r3419480 r3436541 1 === Filikod – ALT Text & Image Resizing===1 === Filikod === 2 2 Contributors: filikod 3 3 Plugin URI: https://filikod.com/ 4 Tags: alt text, image alt, image resizing, media cleanup, seo, svg upload4 Tags: alt text, image resizing, media optimization, accessibility, seo, svg 5 5 Requires at least: 5.8 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: trunk8 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Clean your WordPress media library automatically: generate missing ALT text, resize images, secure SVG uploads, and fix old content without manual work.12 A lightweight plugin that automates ALT text generation, image resizing, secure SVG handling, and media cleanup — with a clean and modern dashboard. 13 13 14 14 == Description == 15 15 16 Images are often the messiest part of a WordPress site. 16 Filikod is a lightweight and modern WordPress plugin designed to automate essential media tasks. 17 It helps you keep your website fast, accessible, and SEO-friendly by handling: 17 18 18 Missing ALT text, oversized images, unsafe SVG uploads, useless `title` attributes… 19 Most sites accumulate these issues over time especially older ones. 19 - ALT text generation based on filenames 20 - Removal of title attributes and special characters 21 - Automatic image resizing on upload 22 - Bulk processing for existing images 23 - Secure SVG sanitization 24 - Optional support for extended file types 20 25 21 Filikod fixes that automatically. 26 Filikod is not a compression engine. 27 It focuses on **automation**, **clean metadata**, and **appropriate image dimensions**, keeping performance high without complex configuration. 22 28 23 Filikod is a lightweight WordPress plugin focused on media hygiene, SEO, and accessibility. 24 It helps you clean and optimize your image library without spending hours editing images one by one. 29 The plugin works with all themes and page builders (Elementor, Divi, Gutenberg, WPBakery…) and requires zero coding knowledge. 25 30 26 Filikod does not try to be another heavy image compression plugin. 27 Instead, it focuses on what really slows people down: 28 29 - Automatically generating and cleaning ALT text 30 - Resizing images to proper dimensions 31 - Cleaning media metadata 32 - Securing SVG uploads 33 - Managing additional file types safely 34 35 No complex setup. 36 Activate it, configure it once, and let it work. 37 38 Learn more about Filikod, documentation, and future features: 39 [Learn more on Filikod.com](https://filikod.com/) 40 41 == What Filikod Solves == 42 43 - You don’t want to fill ALT text manually for every image 44 - You inherit WordPress sites with hundreds of images and no ALT 45 - Your media library is bloated with oversized images 46 - You need SVG uploads without security risks 47 - You want a simple, lightweight tool not a factory of options 48 49 Filikod is built for site owners, freelancers, and agencies who want clean media, fast. 31 Learn more at [https://filikod.com/](filikod.com) 50 32 51 33 == Features == 52 34 53 === ALT Text Automation & Cleanup === 35 ### 🔧 Image Resizing (Upload & Bulk) 36 - Resize images on upload based on a maximum width you define 37 - Maintain aspect ratios automatically 38 - Replace originals to save disk space (optional) 39 - Bulk resize all existing images from the dashboard 54 40 55 Stop managing ALT text by hand. 41 ### 📝 ALT Text Automation 42 - Generate ALT text from filenames for images missing ALT attributes 43 - Clean special characters for better readability and SEO 44 - Automatically remove redundant `title` attributes for accessibility 56 45 57 - Automatically generate missing ALT text based on file names 58 - Bulk scan and regenerate ALT text for existing images59 - Clean special characters for readable, SEO-friendly ALT attributes60 - Remove redundant `title` attributes for better accessibility46 ### 🔒 Secure SVG Upload 47 - Validate MIME type and file extension 48 - Sanitize XML content to remove unsafe elements 49 - Block harmful tags like `<script>`, `<iframe>`, etc. 61 50 62 Perfect for fixing old WordPress sites with poor media SEO. 51 ### 📁 Extended File Type Support 52 Enable additional formats in one click: 53 - SVGZ, PSD, AI, EPS, ICO 54 - ZIP, RAR, 7Z 55 - WEBM (video) 63 56 64 === Image Resizing (Upload + Bulk) === 57 All file types are toggle-based and include warning indicators where necessary. 65 58 66 Serve images at the right size without compression tricks. 59 ### 📊 Clean & Modern Admin Dashboard 60 - Total images, ALT coverage, and media statistics 61 - Resized image ratio (not compression results) 62 - Visual cards and progress indicators 63 - Fully responsive interface 64 - Works in single-site and multisite environments 67 65 68 - Automatic image resizing on upload (configurable max width) 69 - Bulk resizing for images already in the Media Library 70 - Replaces original files to save disk space 71 - Keeps WordPress metadata intact 72 73 Filikod resizes images but does not compress them. 74 75 === Secure SVG Upload === 76 77 Use SVG files safely in WordPress. 78 79 - Secure SVG upload activation 80 - File extension and MIME type validation 81 - SVG XML sanitization 82 - Automatic removal of unsafe tags (script, iframe, etc.) 83 84 === Extended File Type Support === 85 86 Need more than standard WordPress file types? 87 88 - Enable or disable additional formats: 89 SVGZ, PSD, AI, EPS, ICO, ZIP, RAR, 7Z, WEBM 90 - Simple toggle-based configuration 91 92 === Dashboard & Admin Interface === 93 94 Understand your media at a glance. 95 96 - Media dashboard with total images, media size, ALT coverage, and resize ratio 97 - Clean, tab-based interface 98 - AJAX bulk processing to avoid timeouts 99 - Fully multisite compatible 66 Filikod focuses on clarity and automation — install it and let it handle repetitive tasks for you. 100 67 101 68 == Compatibility == … … 103 70 - WordPress 5.8+ 104 71 - PHP 7.4+ 105 - Compatible with all themes 106 - Works with Elementor, Gutenberg, Divi, WPBakery, and other page builders 107 - Compatible with GD and Imagick 108 - Multisite ready 72 - Compatible with all themes and page builders 73 - Works with GD and Imagick 74 - Multisite compatible 75 76 Learn more about compatibility at [https://filikod.com/](https://filikod.com/). 109 77 110 78 == Installation == 111 79 112 1. Install Filikod from the WordPress plugin directory113 2. Activate it from the “Plugins” menu114 3. Go to Filikod > Settings to configure options80 1. Install and activate Filikod through the WordPress plugin directory. 81 2. Go to **Filikod → Settings**. 82 3. Enable image resizing, ALT tools, SVG support, or file types as needed. 115 83 116 Filikod automatically resizes newly uploaded images. 117 Bulk tools allow you to clean and optimize existing images in the Media Library.84 New uploads will be processed automatically. 85 Use the bulk tools to clean or resize existing images. 118 86 119 87 == Frequently Asked Questions == 120 88 121 = Does Filikod replace my originalimages? =122 Yes. When resizing is enabled, the original image is replaced with the resized version to save disk space. WordPress metadata remains intact.89 = Does Filikod compress images? = 90 No. Filikod resizes images based on the maximum width you define, but it does not perform compression or convert images to WebP/AVIF in this version. 123 91 124 = Is Filikod compatible with page builders? = 125 Yes. Optimized images work everywhere, including Elementor, Gutenberg, Divi, WPBakery, and others. 92 = Does Filikod overwrite original images? = 93 If resizing is enabled, the resized image replaces the original to save storage space. 94 95 = Can I use Filikod with Elementor, Divi or WooCommerce? = 96 Yes, Filikod works with all major builders and plugins. 126 97 127 98 = Can I optimize existing images? = 128 Yes. Filikod includes bulk tools to resize images and clean or regenerate ALT text for existing media. 129 130 = Can I use Filikod with other optimization plugins? = 131 Yes, as long as they are not performing the same resizing actions. Use only one resizing plugin at a time. 99 Yes — use the bulk processing button in the dashboard. 132 100 133 101 = Does Filikod support WebP or AVIF? = 134 Not yet. WebP and AVIF conversion are planned for a future premium version.102 These features are planned for a future premium release. 135 103 136 = Where can I find documentation or support? = 137 Documentation and support are available at: 138 [Filikod.com](https://filikod.com/) 104 = Where can I get help? = 105 Documentation and support: https://filikod.com/ 139 106 140 107 == Screenshots == 141 142 1. Media dashboard overview 143 2. Filikod settings interface 144 3. Image resizing configuration 145 4. ALT text automation tools 146 5. Secure SVG upload settings 147 6. Media statistics and cleanup overview 108 1. Dashboard with media statistics and ALT coverage 109 2. Image Resizing settings 110 3. ALT Text & Accessibility tools 111 4. File Type controls & SVG security 148 112 149 113 == Changelog == 150 114 151 115 = 1.0.0 = 152 - Initial release on WordPress.org 153 - Automatic image resizing (upload + bulk) 154 - ALT text generation and cleanup 155 - Bulk media processing tools 156 - Removal of redundant image `title` attributes 157 - Secure SVG upload with sanitization 158 - Extended file type support 159 - AJAX-based bulk processing 160 - Clean dashboard and settings interface 161 - WordPress 5.8+ and PHP 7.4+ compatibility 116 - Initial public release 117 - ALT automation (filename-based) 118 - Title removal & character cleanup 119 - Image resizing on upload 120 - Bulk processing for existing images 121 - Secure SVG sanitization 122 - Optional extended file types 123 - Dashboard and tab-based settings interface 162 124 163 125 == Upgrade Notice == 164 126 165 = 1.0.1 = 166 First public release of Filikod, focused on ALT text automation, image resizing, secure SVG uploads, and media cleanup. 127 = 1.0.0 = 128 First stable release of Filikod, including ALT tools, image resizing, SVG security, extended formats and a modern dashboard. 129 130 = 1.0.2 = 131 - Improved dashboard readability 132 - Added ALT coverage percentage 133 - Clarified resize behavior messaging
Note: See TracChangeset
for help on using the changeset viewer.