跳到内容

Page Optimize

v0.6.4

Automattic · 2020年2月27日 上架

Optimize pages for faster load and render in the browser.

正在使用
30 万+
评分
3.0 / 5
累计下载
11 万
最近更新
2026年10月19日
5 条评价需要 WordPress 5.3+已测试到 7.0.9PHP 7.4+

This plugin supports a few features that may improve the performance of page loading and rendering in the browser:

  • Concatenate CSS
  • Concatenate JavaScript
  • Execution timing of non-critical scripts
    • Note: Changing script execution timing can be risky and will not work well for all sites.

Testing

To test features without enabling them for the entire site, you may append query params to a WordPress post or page URL. For example, to test enabling JavaScript concatenation for https://example.com/blog/, you can use the URL https://example.com/blog/?concat-js=1.

Supported query params:

  • concat-css controls CSS concatenation. Values: 1 for ON and 0 for OFF.
  • concat-js controls JavaScript concatenation. Values: 1 for ON and 0 for OFF.
  • load-mode-js controls how non-critical JavaScript are loaded. Values: ‘defer’ for deferred, ‘async’ for async loading, any other value indicates the feature should be disabled.

PHPUnit (Docker)

You can run the PHPUnit tests locally using Docker (no local MySQL required).

First time (or after changing DB credentials):

docker compose down -v

Run tests:

docker compose up --build --abort-on-container-exit --exit-code-from tests

Optional overrides (examples):

  • WP_VERSION=6.5 docker compose up --build --abort-on-container-exit --exit-code-from tests
  • PHP_VERSION=7.4 docker compose up --build --abort-on-container-exit --exit-code-from tests
  • PHPUNIT_VERSION=9.6.20 docker compose up --build --abort-on-container-exit --exit-code-from tests

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums