Title: Startklar Image Optimizer
Author: WEB-SHOP-HOSTING
Published: <strong>2022 年 6 月 16 日</strong>
Last modified: 2022 年 6 月 16 日

---

搜索插件

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

![](https://ps.w.org/startklar-image-optimizer/assets/icon-256x256.png?rev=2743648)

# Startklar Image Optimizer

 作者：[WEB-SHOP-HOSTING](https://profiles.wordpress.org/wshberlin/)

[下载](https://downloads.wordpress.org/plugin/startklar-image-optimizer.1.0.zip)

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

 [支持](https://wordpress.org/support/plugin/startklar-image-optimizer/)

## 描述

This plugin allows you to optimize images from your media library and thus improve
the SEO performance of your site.
 This plugin is based on the JPEGOPTIM utility
and PNGQUANT utility which must be installed on your host. The essence of our plugin
is that when it starts, it sorts through all the attachments for the articles of
your WP-site and processes them right at the place where they are located. After
that, the attachment is marked as processed, which prevents it from being processed
again. In the admin page you can view the total number of your images and the number
of processed images, as well as select the number of images to be processed in one
cycle. At the moment, the script for optimization is made in the form of a standard
wp-action (its name is “startklar_image_optimizer_process”) that can be called from
another place.

Here is an example of how to call this action:
 do_action( ‘startklar_image_optimizer_process’);

For example, for a simple implementation, you can use the “WP Crontrol” plugin (
https://ru.wordpress.org/plugins/wp-crontrol/)
 by which you can create a cron task
that can optimize one image every minute. This tactic was chosen in order to process
all the files of the site without introducing excessive load to the site (since 
the native cron in WP is activated by hits and has a runtime limit, like similar
http sessions of this host).

Screenshot #1 shows how easy it is to set up a cron-task.

## 屏幕截图

[⌊How easy it is to set up a cron-task.⌉⌊How easy it is to set up a cron-task.⌉[

How easy it is to set up a cron-task.

## 安装

**Plugin installation.** Installation is done as standard for WP. Install “WP Crontrol”
plugin in addition if you need to run cron optimization.

**Plugin setup.** The setup interface is as simple and intuitive as possible. Go
to the admin page and make sure you have the JPEGOPTIM utility and the PNGQUANT 
utility installed. Use the admin page to view statistics and select how many images,
are processed per cycle. **Usage.** Create a new cron task for the action “startklar_image_optimizer_process”
in the plugin “WP Crontrol”. Screenshot #1 shows how easy it is to set up a cron-
task.

## 常见问题

### How can I check that the plugin is configured and working correctly?

You can temporarily activate debug mode in WordPress.

define( ‘WP_DEBUG’, true );
 define( ‘WP_DEBUG_LOG’, true );

‘WP_DEBUG’ is a PHP constant (a permanent global variable) that can be used to trigger
the debug mode throughout WordPress.
 ‘WP_DEBUG_LOG’ – When set to true, the log
is saved to debug.log in the content directory (usually /wp-content/plugins/startklar_image_optimizer/
debug.log) within your sites filesystem. Alternatively, you can set it to a valid
file path to have the file saved elsewhere.

Now you can see lines like this in your log file:

START OPTIMIZATION 14.06.2022 18:25:18
 _wp_attachment_metadata id=26 PROCESS FILEC:\
xampp1\htdocs\my-wp/wp-content/uploads/2022/06/pexels-jhovani-morales-12319997-200
×300.jpg BY jpegoptim END After processing, the source file should reduce in size,
it’s not difficult to track. After checking, return the constants that are responsible
for debugging to their original state.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ WEB-SHOP-HOSTING ](https://profiles.wordpress.org/wshberlin/)

[帮助将「Startklar Image Optimizer」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/startklar-image-optimizer)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * First Release

## 额外信息

 *  版本 **1.0**
 *  最后更新：**4 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 5.6 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  PHP 版本 ** 5.6.20 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/startklar-image-optimizer/)
 * 标签
 * [optimization](https://cn.wordpress.org/plugins/tags/optimization/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
   [seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/startklar-image-optimizer/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/startklar-image-optimizer/reviews/#new-post)

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

## 贡献者

 *   [ WEB-SHOP-HOSTING ](https://profiles.wordpress.org/wshberlin/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/donate/?hosted_button_id=J2FXPNSYGWLBE)