Title: StaticOptimizer
Author: StaticOptimizer
Published: <strong>2020 年 11 月 6 日</strong>
Last modified: 2022 年 11 月 26 日

---

搜索插件

![](https://ps.w.org/static-optimizer/assets/banner-772x250.png?rev=2559207)

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

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

# StaticOptimizer

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

[下载](https://downloads.wordpress.org/plugin/static-optimizer.1.0.6.zip)

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

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

## 描述

StaticOptimizer is a static file optimization cloud service that speeds up your 
site by optimizing and serving (the selected) static files from your site.
 The 
service optimizes & compresses the files automatically. No database or files changes
are performed therefore there’s no risk if you want to uninstall the plugin later(…
but why would you?) If our optimization server are down (upgrade, maintenance or
outage) your original files will be loaded instead.

#### Features / Benefits

 * Simple, efficient and free to use
 * The free plan allows you to have images up to 5mb and up to 1600px wide or tall
 * Easy to set up. Just get your API key and you’re good to go.
 * Automatic js and css minification & compression
 * Automatic image optimization (gif, jpeg, png, svg)
 * Files are reloaded only when they are changed on your server (or deleted from
   ours).
 * Automatic conversion to webp
 * Our servers check and if the visitor’s browser supports webp we’ll serve that
   file otherwise the optimized version.
 * Responsive Images (from srcset) are also processed
 * Background images url() are also processed
 * We’ve put extra efforts to make this plugin as efficient as possible.
 * The code in script blocks is preserved
 * Sandbox/test/development subdomains are automatically authorized if the main 
   domain is authorized. Test subdomains are: test, testing, sandbox, dev, local,
   stage, staging
 * SEO: Our servers return canonical header to tell which is the source file. Link:
   [https://example.com/images/image.png](https://example.com/images/image.png);
   rel=”canonical”
 * Select if you want your site to be optimized by servers in Europe or North America
 * No lock-in = after deactivation, all files will work and load from your current
   host and no data loss

### Demo

#### Test drive

https://wpdemo.net/try/plugin/static-optimizer

#### Video demo

#### How it works

After you get your API key the plugin will install as a system (mu-plugin) and will
correct the location where the selected files are loaded from.
 During the plugin
configuration you can tell the plugin which file types you’d like to be optimized.
By default only images are selected for optimization. You can also select js, & 
css files to be optimized as well. The first time our servers get a file it will
be downloaded and optimized. Because this operation can take several seconds your
users will be redirected back to the original file that was requested. Any subsequent
requests will be served from our servers.

#### Who is this plugin for?

People who have lots of images on their site such online stores, photographers, 
real estate agents.

#### Thanks

The logo was designed by Atanas Lambev – [https://dralart.com](https://dralart.com)

I’d like to express my gratitude to the people who have taken the time to test the
plugin & make suggestions and/or has provided access to troubleshoot glitches.
 *
Phil Ryan – [https://site123.ca](https://site123.ca) * Michel Veenstra – [https://www.adventis.nl](https://www.adventis.nl)

 * and to many more.

### Support

Bugs? Suggestions? If you want a faster response contact us through our website’s
contact form at https://statopt.com and
 not through the support tab of this plugin
or WordPress forums for a faster response.

#### Author

Svetoslav Marinov (Slavi) | [StaticOptimizer](https://statopt.com/?utm_source=static-optimizer-wp)

## 安装

 1. Unzip the package, and upload `static-optimizer` to the `/wp-content/plugins/` 
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Configure which file types you’d like to get optimized
 4. Create a free account and pick a plan
 5. Done

## 常见问题

### For the most up-to-date FAQ see the site

Check out [https://statopt.com](https://statopt.com)

### Bug Report / Feature Requests

Please submit any bug report or feature requests in our github issue tracking system.

[Report Bugs / Features](https://github.com/statopt/static-optimizer-wp/issues)

### Does it work with WordPress multisite?

Yes

## 评价

![](https://secure.gravatar.com/avatar/bc248f07aded6aecc5c40cd06ea1cabce5a4fc651a8fc9bc099573200d840d61?
s=60&d=retro&r=g)

### 󠀁[Good Plugin But Needs Work](https://wordpress.org/support/topic/good-plugin-but-needs-work-2/)󠁿

 [VannDigital](https://profiles.wordpress.org/vdn-staff/) 2021 年 4 月 23 日 3 回复

My site loaded & ran faster as a result of this plugin but it blocks images on my
Twitter Cards. Will up rating once this gets handled.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/static-optimizer/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ StaticOptimizer ](https://profiles.wordpress.org/statopt/)
 *   [ Svetoslav Marinov ](https://profiles.wordpress.org/lordspace/)
 *   [ orbisius ](https://profiles.wordpress.org/orbisius/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.6

 * Updated code so it doesn’t run if there’s a server side StatOpt optimization 
   solution
 * Fixes and tests with latest WordPress version
 * a fix for the case when the last modified time couldn’t be determined for some
   reason i.e. skip the asset opt url rewriting

#### 1.0.5

 * added optimization support for svg images
 * the CSS relative paths should have been resolved.
 * added demo
 * todo: show a notice if the domain name has changed & for sandbox
 * added a parameter ‘statopt_status’ to turn off the optimization for a given page
   using ?statopt_status=0
 * added a fallback parameter if for some reason the replacements didn’t succeed.
 * Tested with WP 5.7

#### 1.0.4

 * Fix: when js/css couldn’t be loaded we used to create a new obj. Now we are reusing
   the existing one.
 * Pick preferred server location in Europe or North America
 * Refactored code so it uses OOP style.
 * Fixed sha1 wasn’t calculated for the most common files
 * Fixed images file type was unselectable.
 * Fixed the link to the quick contact page
 * Cleaned up code. Removed old code that was going to be used for the mu plugin
 * Added an option so people can link back to StaticOptimizer home page.

#### 1.0.3

 * moved demo up
 * readme changes
 * removed the fonts from the selected list as they may not load all the time usually
   those with relative paths
 * added a check so the api form expands after the user submits the form to get 
   a key
 * added notes about fonts referenced/loaded via relative paths
 * fixed the notice that’s shown on localhost installs
 * improved image parser to skip external images.
 * added a fix for the parser that deals with backgrounds with url() … it was capturing
   the last closing parenthesis

#### 1.0.2

 * Removed the check for body start which was making the plugin to not process anything
   pretty early. On some sites the body started after 60-70kb
 * fixed twitter handle to statopt
 * hide the settings form when there’s no api key so it’s easier to see what’s expected
   from the user.

#### 1.0.1

 * Updated text & labels

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.6**
 *  最后更新：**3 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.1.10**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/static-optimizer/)
 * 标签
 * [optimization](https://cn.wordpress.org/plugins/tags/optimization/)[smush](https://cn.wordpress.org/plugins/tags/smush/)
   [static](https://cn.wordpress.org/plugins/tags/static/)[wp](https://cn.wordpress.org/plugins/tags/wp/)
 *  [高级视图](https://cn.wordpress.org/plugins/static-optimizer/advanced/)

## 评级

 3 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/static-optimizer/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/static-optimizer/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/static-optimizer/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/static-optimizer/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/static-optimizer/reviews/?filter=1)

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

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

## 贡献者

 *   [ StaticOptimizer ](https://profiles.wordpress.org/statopt/)
 *   [ Svetoslav Marinov ](https://profiles.wordpress.org/lordspace/)
 *   [ orbisius ](https://profiles.wordpress.org/orbisius/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7APYDVPBCSY9A)