Title: BAY Image Size Scanner
Author: bldwebdevs
Published: <strong>2025 年 8 月 1 日</strong>
Last modified: 2025 年 8 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/bay-image-size-scanner.svg)

# BAY Image Size Scanner

 作者：[bldwebdevs](https://profiles.wordpress.org/bldwebdevs/)

[下载](https://downloads.wordpress.org/plugin/bay-image-size-scanner.zip)

 * [详情](https://cn.wordpress.org/plugins/bay-image-size-scanner/#description)
 * [评价](https://cn.wordpress.org/plugins/bay-image-size-scanner/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/bay-image-size-scanner/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/bay-image-size-scanner/#developers)

 [支持](https://wordpress.org/support/plugin/bay-image-size-scanner/)

## 描述

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

 1. Navigate to Tools > Image Size Scanner in your WordPress admin
 2. Select the post types you want to scan
 3. Set minimum image size filter (optional)
 4. Choose whether to include featured images
 5. Click “Scan All Pages” to start the batch scanning process
 6. View the results in the table with detailed image information
 7. 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.

## 安装

 1. Upload the `bay-image-size-scanner` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Access the scanner from Tools > Image Size Scanner

## 常见问题

### 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 `batchSize` value
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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「BAY Image Size Scanner」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ bldwebdevs ](https://profiles.wordpress.org/bldwebdevs/)
 *   [ navneet ](https://profiles.wordpress.org/navneet/)

[帮助将「BAY Image Size Scanner」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/bay-image-size-scanner)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/bay-image-size-scanner/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/bay-image-size-scanner/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/bay-image-size-scanner/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/bay-image-size-scanner/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**1 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.8.12**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/bay-image-size-scanner/)
 * 标签
 * [file size](https://cn.wordpress.org/plugins/tags/file-size/)[images](https://cn.wordpress.org/plugins/tags/images/)
   [optimization](https://cn.wordpress.org/plugins/tags/optimization/)[Page Speed](https://cn.wordpress.org/plugins/tags/page-speed/)
   [performance](https://cn.wordpress.org/plugins/tags/performance/)
 *  [高级视图](https://cn.wordpress.org/plugins/bay-image-size-scanner/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/bay-image-size-scanner/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/bay-image-size-scanner/reviews/)

## 贡献者

 *   [ bldwebdevs ](https://profiles.wordpress.org/bldwebdevs/)
 *   [ navneet ](https://profiles.wordpress.org/navneet/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/bay-image-size-scanner/)