sandywp / plugins / page-optimize

Page Optimize

3.0 out of 5 stars. 3.0 5 reviews

Optimize pages for faster load and render in the browser.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v0.6.3 200,000+ installs WP 5.3+ PHP 7.4+

your-sandbox.sandywp.com/wp-admin
no screenshot published

About this plugin

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

3.0

5 reviews

  • 5 ★ 2
  • 4 ★ 0
  • 3 ★ 1
  • 2 ★ 0
  • 1 ★ 2

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.