Plugin Directory

Changeset 3436541


Ignore:
Timestamp:
01/10/2026 10:37:38 AM (3 months ago)
Author:
lyode
Message:

1.0.2

  • Improved dashboard readability
  • Added ALT coverage percentage
  • Clarified resize behavior messaging
Location:
filikod
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • filikod/trunk/admin/views/dashboard.php

    r3414803 r3436541  
    5656            <!-- Images avec ALT -->
    5757            <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>
    6064            </div>
     65
    6166           
    6267            <!-- Poids total après optimisation -->
     
    105110                            printf(
    106111                                /* 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' ),
    108113                                esc_html( $filikod_plugin->image_resizer->format_saved_bytes( $filikod_saved_bytes ) )
    109114                            );
     
    150155                        printf(
    151156                            /* 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' ),
    153158                            esc_html( $filikod_optimization_percentage )
    154159                        );
  • filikod/trunk/filikod.php

    r3414803 r3436541  
    44 * Plugin URI: https://filikod.com
    55 * Description: A modern WordPress plugin for media optimization (images), improved accessibility, and ALT text management.
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Author: Filikod
    88 * License: GPL v2 or later
  • filikod/trunk/includes/dashboard/class-filikod-dashboard.php

    r3413113 r3436541  
    8787        return (int) $count;
    8888    }
     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 */
     126public 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
    89141   
    90142    /**
  • filikod/trunk/languages/filikod-fr_FR.po

    r3414803 r3436541  
    6464
    6565#: admin/views/dashboard.php
    66 msgid "Insufficient permissions."
    67 msgstr "Permissions insuffisantes."
    68 
    69 #: admin/views/dashboard.php
    7066msgid "Welcome to Filikod"
    7167msgstr "Bienvenue sur Filikod"
     
    8076
    8177#: 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"
     78msgid "Plugin Status"
     79msgstr "Statut du plugin"
     80
     81#: admin/views/dashboard.php
     82msgid "Active"
     83msgstr "Actif"
     84
     85#: admin/views/dashboard.php
     86msgid "Inactive"
     87msgstr "Inactif"
     88
     89#: admin/views/dashboard.php
     90msgid "Version"
     91msgstr "Version"
    13292
    13393#: admin/views/settings.php
     
    363323msgstr "Une erreur s'est produite pendant le traitement."
    364324
     325#: admin/views/dashboard.php
     326msgid "Total Images"
     327msgstr "Total d'images"
     328
     329#: admin/views/dashboard.php
     330msgid "Images in media library"
     331msgstr "Images dans la bibliothèque média"
     332
     333#: admin/views/dashboard.php
     334msgid "Images with ALT Text"
     335msgstr "Images avec texte ALT"
     336
     337#: admin/views/dashboard.php
     338msgid "%s%% of images have ALT text"
     339msgstr "%s%% des images ont un texte ALT"
     340
     341#: admin/views/dashboard.php
     342msgid "No images in library"
     343msgstr "Aucune image dans la bibliothèque"
     344
     345#: admin/views/dashboard.php
     346msgid "Total Size"
     347msgstr "Poids total"
     348
     349#: admin/views/dashboard.php
     350msgid "Total size of all images"
     351msgstr "Poids total de toutes les images"
    365352
    366353#: includes/class-filikod-dashboard.php
  • filikod/trunk/languages/filikod.pot

    r3414803 r3436541  
    6363
    6464#: admin/views/dashboard.php
    65 msgid "Insufficient permissions."
    66 msgstr ""
    67 
    68 #: admin/views/dashboard.php
    6965msgid "Welcome to Filikod"
    7066msgstr ""
     
    7975
    8076#: admin/views/dashboard.php
    81 msgid "Total Images"
     77msgid "Plugin Status"
    8278msgstr ""
    8379
    8480#: admin/views/dashboard.php
    85 msgid "Images with ALT"
     81msgid "Active"
    8682msgstr ""
    8783
    8884#: admin/views/dashboard.php
    89 msgid "Total Media Size"
     85msgid "Inactive"
    9086msgstr ""
    9187
    9288#: 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"
     89msgid "Version"
    13090msgstr ""
    13191
  • filikod/trunk/readme.txt

    r3419480 r3436541  
    1 === Filikod – ALT Text & Image Resizing ===
     1=== Filikod ===
    22Contributors: filikod
    33Plugin URI: https://filikod.com/
    4 Tags: alt text, image alt, image resizing, media cleanup, seo, svg upload
     4Tags: alt text, image resizing, media optimization, accessibility, seo, svg
    55Requires at least: 5.8
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: trunk
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 Clean your WordPress media library automatically: generate missing ALT text, resize images, secure SVG uploads, and fix old content without manual work.
     12A lightweight plugin that automates ALT text generation, image resizing, secure SVG handling, and media cleanup — with a clean and modern dashboard.
    1313
    1414== Description ==
    1515
    16 Images are often the messiest part of a WordPress site.
     16Filikod is a lightweight and modern WordPress plugin designed to automate essential media tasks. 
     17It helps you keep your website fast, accessible, and SEO-friendly by handling:
    1718
    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 
    2025
    21 Filikod fixes that automatically.
     26Filikod is not a compression engine. 
     27It focuses on **automation**, **clean metadata**, and **appropriate image dimensions**, keeping performance high without complex configuration.
    2228
    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.
     29The plugin works with all themes and page builders (Elementor, Divi, Gutenberg, WPBakery…) and requires zero coding knowledge.
    2530
    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.
     31Learn more at  [https://filikod.com/](filikod.com)
    5032
    5133== Features ==
    5234
    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
    5440
    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
    5645
    57 - Automatically generate missing ALT text based on file names
    58 - Bulk scan and regenerate ALT text for existing images
    59 - Clean special characters for readable, SEO-friendly ALT attributes
    60 - Remove redundant `title` attributes for better accessibility
     46### 🔒 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.
    6150
    62 Perfect for fixing old WordPress sites with poor media SEO.
     51### 📁 Extended File Type Support
     52Enable additional formats in one click:
     53- SVGZ, PSD, AI, EPS, ICO 
     54- ZIP, RAR, 7Z 
     55- WEBM (video)
    6356
    64 === Image Resizing (Upload + Bulk) ===
     57All file types are toggle-based and include warning indicators where necessary.
    6558
    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
    6765
    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
     66Filikod focuses on clarity and automation — install it and let it handle repetitive tasks for you.
    10067
    10168== Compatibility ==
     
    10370- WordPress 5.8+
    10471- 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
     76Learn more about compatibility at [https://filikod.com/](https://filikod.com/).
    10977
    11078== Installation ==
    11179
    112 1. Install Filikod from the WordPress plugin directory
    113 2. Activate it from the “Plugins” menu
    114 3. Go to Filikod > Settings to configure options
     801. Install and activate Filikod through the WordPress plugin directory.
     812. Go to **Filikod → Settings**.
     823. Enable image resizing, ALT tools, SVG support, or file types as needed.
    11583
    116 Filikod automatically resizes newly uploaded images.
    117 Bulk tools allow you to clean and optimize existing images in the Media Library.
     84New uploads will be processed automatically. 
     85Use the bulk tools to clean or resize existing images.
    11886
    11987== Frequently Asked Questions ==
    12088
    121 = Does Filikod replace my original images? =
    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? =
     90No. 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.
    12391
    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? =
     93If resizing is enabled, the resized image replaces the original to save storage space.
     94
     95= Can I use Filikod with Elementor, Divi or WooCommerce? =
     96Yes, Filikod works with all major builders and plugins.
    12697
    12798= 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.
     99Yes — use the bulk processing button in the dashboard.
    132100
    133101= Does Filikod support WebP or AVIF? =
    134 Not yet. WebP and AVIF conversion are planned for a future premium version.
     102These features are planned for a future premium release.
    135103
    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? =
     105Documentation and support: https://filikod.com/
    139106
    140107== 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
     1081. Dashboard with media statistics and ALT coverage 
     1092. Image Resizing settings 
     1103. ALT Text & Accessibility tools 
     1114. File Type controls & SVG security 
    148112
    149113== Changelog ==
    150114
    151115= 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 
    162124
    163125== Upgrade Notice ==
    164126
    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 =
     128First 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.