Beskrivelse
BAY Image Size Scanner is a powerful WordPress plugin designed to help you identify large images on your website that may be affecting page load times. The plugin scans all your posts and pages to find images, analyzes their sizes, and presents the data in an easy-to-understand format.
Key Features
- Scan images across multiple post types (posts, pages, custom post types)
- Filter by minimum image size
- Include or exclude featured images
- Batch processing for improved performance on large sites
- Display image dimensions and file types
- Export results to CSV
- Responsive admin interface
- WordPress.org compliant code with proper naming conventions
- Secure file handling within WordPress uploads directory
Usage
- Navigate to Tools > Image Size Scanner in your WordPress admin
- Select the post types you want to scan
- Set minimum image size filter (optional)
- Choose whether to include featured images
- Click «Scan All Pages» to start the batch scanning process
- View the results in the table with detailed image information
- Export to CSV if needed for further analysis
Technical Notes
WordPress.org Compliance
Version 1.0.4 introduces important changes for WordPress.org repository compliance:
* All functions, classes, and constants now use the ‘bayimsis’ prefix (7+ characters)
* File operations restricted to proper WordPress uploads directory
* Improved namespace management to prevent conflicts with other plugins
Developer Information
- Minimum WordPress version: 5.0
- Minimum PHP version: 7.0
- Follows WordPress coding standards
- Uses WordPress HTTP API for external requests
- Implements proper nonce verification and capability checks
- Batch processing to handle large datasets efficiently
License
BAY Image Size Scanner is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version.
BAY Image Size Scanner is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with BAY Image Size Scanner. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
Installasjon
- Upload the
bay-image-size-scannerfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Access the scanner from Tools > Image Size Scanner
Ofte stilte spørsmål
-
Why does the scanning process stop or show errors?
-
The scanning process works in batches to prevent timeouts on large sites. If you’re encountering issues, try reducing the batch size by editing the
batchSizevalue in the plugin’s settings. -
Can I scan custom post types?
-
Yes, the plugin automatically detects all public post types on your site and allows you to select which ones to scan.
-
How are image sizes calculated?
-
For images hosted on your WordPress site, the plugin accesses the file directly to get its size. For external images, it makes HTTP requests to determine the file size using WordPress HTTP API.
-
Where are exported files stored?
-
CSV exports are stored securely in the
/wp-uploads/bay-image-size-scanner/directory with proper access controls to protect your data. -
Does this plugin affect site performance?
-
The plugin uses batch processing to minimize impact on your site’s performance. Scanning only runs when manually triggered and processes posts in small batches.
Vurderinger
Det er ingen omtaler av denne utvidelsen.
Bidragsytere og utviklere
«BAY Image Size Scanner» er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen:
BidragsytereOversett “BAY Image Size Scanner” til ditt språk.
Interessert i utvikling?
Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.
Endringslogg
1.0.4
- IMPORTANT: Fixed WordPress.org compliance issues
- Updated all function and class prefixes from ‘bay’ to ‘bayimsis’ for proper naming conventions
- Fixed file creation to use correct ‘/uploads/bay-image-size-scanner/’ directory
- Improved code organization and naming consistency
- Enhanced security with proper prefix usage
- Updated JavaScript and CSS to match new naming conventions
- Maintained backward compatibility where possible
1.0.3
- Updated compatibility with WordPress 6.8
- Fixed security issues with proper data escaping
1.0.2
- Updated compatibility with WordPress 6.7
- Fixed security issues with proper data escaping
- Improved performance with WordPress HTTP API instead of cURL
- Enhanced database queries for better performance
- Fixed input validation and sanitization
- Added proper filesystem operations
- Updated to follow WordPress coding standards
1.0.1
- Added batch processing for better performance
- Added image type and dimensions information
- Improved error handling
- Added responsive admin interface
- Added filtering by post type and minimum size
1.0.0
- Initial release