PHPackages                             wp-media/wp-rocket - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. wp-media/wp-rocket

ActiveWordpress-plugin[Caching](/categories/caching)

wp-media/wp-rocket
==================

Performance optimization plugin for WordPress

v3.21.0.1(1mo ago)7431.3M↓14.1%235[477 issues](https://github.com/wp-media/wp-rocket/issues)[81 PRs](https://github.com/wp-media/wp-rocket/pulls)2GPL-2.0-or-laterPHPPHP &gt;=7.3CI passing

Since May 4Pushed 1mo ago50 watchersCompare

[ Source](https://github.com/wp-media/wp-rocket)[ Packagist](https://packagist.org/packages/wp-media/wp-rocket)[ Docs](https://wp-rocket.me)[ RSS](/packages/wp-media-wp-rocket/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (81)Versions (608)Used By (2)

Welcome to the WP Rocket GitHub Repository
==========================================

[](#welcome-to-the-wp-rocket-github-repository)

[![Unit/Integration tests](https://github.com/wp-media/wp-rocket/actions/workflows/test_wprocket_php8.yml/badge.svg)](https://github.com/wp-media/wp-rocket/actions/workflows/test_wprocket_php8.yml)

Feel free to browse the source and keep track of our plugin's progress. You can stay informed of our latest versions via our [blog](https://wp-rocket.me/blog/?utm_source=github&utm_medium=wp_rocket_profile) or via Twitter [@wp\_rocket](https://twitter.com/wp_rocket).

We aim to help make the web faster, one WordPress website at a time. That’s why we created *WP Rocket*. It's a caching plugin that simplifies the process and helps decrease a website’s load time.

If you are not a developer, visit our [documentation](http://docs.wp-rocket.me/?utm_source=github&utm_medium=wp_rocket_profile).

Documentation
-------------

[](#documentation)

Need detailed setup instructions?

We are very proud of WP Rocket’s knowledge base. We have [documentation](http://docs.wp-rocket.me/?utm_source=github&utm_medium=wp_rocket_profile) in English and French.

You can also check out our [changelog](https://wp-rocket.me/changelog/?utm_source=github&utm_medium=wp_rocket_profile).

Composer installation
---------------------

[](#composer-installation)

You can use composer to install the plugin as a dependency:

```
composer require wp-media/wp-rocket

```

To be able to validate your license and use the plugin, you will also have to manually define 2 constants in your wp-config.php file:

- `WP_ROCKET_EMAIL` which is the email for your WP Rocket account
- `WP_ROCKET_KEY` which is your API Key

Gulp Tasks
----------

[](#gulp-tasks)

CommandDescription**CSS Tasks**`gulp build:saas:unmin`Builds Full admin CSS, the unminified version (wpr-admin.css)`gulp build:saas:min`Builds Full admin CSS, the minified version (wpr-admin.min.css)`gulp build:sass:all`Builds all admin CSS files (wpr-admin.css, wpr-admin.min.css, wpr-admin-rtl.css, wpr-admin-rtl.min.css)`gulp sass:watch`Watches all admin CSS files mentioned above and builds them again with any change.**JS Tasks**`gulp build:js:app:unmin`Builds admin app js file, the unminified version (wpr-admin.js)`gulp build:js:app:min`Builds admin app js file, the minified version (wpr-admin.min.js)`gulp build:js:lazyloadcss:min`Builds lazyload CSS js file, the minified version (lazyload-css.min.js)`gulp build:js:all`Builds all js files mentioned above (wpr-admin.js, wpr-admin.min.js, lazyload-css.min.js, wpr-beacon)`gulp build:js:beacon`Builds beacon script (wpr-beacon.min.js, source file, and map file)`gulp js:watch`Watches all js files changes and build them again with any change.Support
-------

[](#support)

Need help with something? Open a [ticket](https://wp-rocket.me/support/?utm_source=github&utm_medium=wp_rocket_profile) and we will be happy to help you out!

Bugs
----

[](#bugs)

If you find an issue in WP Rocket, please let us know [here](https://github.com/wp-media/wp-rocket/issues). Be advised, this point of contact is to be used to report bugs and not to receive support. Check out our [support page](https://wp-rocket.me/support/?utm_source=github&utm_medium=wp_rocket_profile) if you need to submit a ticket.

Security Policy
---------------

[](#security-policy)

### Reporting Security Bugs

[](#reporting-security-bugs)

You can report any security bugs found in the source code of the site-reviews plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/wp-rocket). The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.

Contributions
-------------

[](#contributions)

Feel free to check out our [GitHub issues](https://github.com/wp-media/wp-rocket/issues) if you would like to request a feature. We always look forward to feedback and suggestions from the community to help us improve our plugins!

Want to know more about our WordPress plugins?
----------------------------------------------

[](#want-to-know-more-about-our-wordpress-plugins)

Visit [wp-media.me](https://wp-media.me/?utm_source=github&utm_medium=wp_rocket_profile).

We also make other plugins that help speed up WordPress websites. Check out:

- [Imagify](https://imagify.io): it's a great WordPress plugin to optimize your images and speed up your website.

Special thanks
--------------

[](#special-thanks)

Thank you BrowserStack for your support and helping us do cross-browser testing easily!

[![BrowserStack](https://raw.githubusercontent.com/wp-media/wp-rocket/trunk/bin/browserstack.png)](https://browserstack.com)

###  Health Score

68

—

FairBetter than 100% of packages

Maintenance77

Regular maintenance activity

Popularity64

Solid adoption and visibility

Community39

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

485

Last Release

55d ago

Major Versions

2.2.0 → v3.2.5-beta12019-02-01

v2.2.1 → v3.3-alpha42019-03-13

2.2.3 → v3.32019-04-01

2.2.4 → v3.3.12019-04-16

2.2.5 → v3.3.2-beta12019-04-29

PHP version history (6 changes)v2.11.5PHP &gt;=5.3.0

v3.0PHP &gt;=5.4.0

v3.4-alpha1PHP &gt;=5.6.0

v3.8-alpha1PHP &gt;=7.0

v3.12-alpha1PHP &gt;=7.2

v3.14-alpha1PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/5564218f7cd2ccf4542a09b7c5436e61e6b370c97fb3b04db1c5bbc0cc67e3c1?d=identicon)[wpmedia](/maintainers/wpmedia)

---

Top Contributors

[![remyperona](https://avatars.githubusercontent.com/u/3465180?v=4)](https://github.com/remyperona "remyperona (3832 commits)")[![transifex-integration[bot]](https://avatars.githubusercontent.com/in/18568?v=4)](https://github.com/transifex-integration[bot] "transifex-integration[bot] (2224 commits)")[![GeekPress](https://avatars.githubusercontent.com/u/1285409?v=4)](https://github.com/GeekPress "GeekPress (671 commits)")[![wordpressfan](https://avatars.githubusercontent.com/u/146129302?v=4)](https://github.com/wordpressfan "wordpressfan (420 commits)")[![Screenfeed](https://avatars.githubusercontent.com/u/1878479?v=4)](https://github.com/Screenfeed "Screenfeed (386 commits)")[![engahmeds3ed](https://avatars.githubusercontent.com/u/15707971?v=4)](https://github.com/engahmeds3ed "engahmeds3ed (344 commits)")[![CrochetFeve0251](https://avatars.githubusercontent.com/u/18537428?v=4)](https://github.com/CrochetFeve0251 "CrochetFeve0251 (257 commits)")[![JulioPotier](https://avatars.githubusercontent.com/u/1262936?v=4)](https://github.com/JulioPotier "JulioPotier (256 commits)")[![crystinutzaa](https://avatars.githubusercontent.com/u/45258937?v=4)](https://github.com/crystinutzaa "crystinutzaa (235 commits)")[![jeawhanlee](https://avatars.githubusercontent.com/u/38788055?v=4)](https://github.com/jeawhanlee "jeawhanlee (226 commits)")[![Thomasgeisen](https://avatars.githubusercontent.com/u/3072820?v=4)](https://github.com/Thomasgeisen "Thomasgeisen (172 commits)")[![Miraeld](https://avatars.githubusercontent.com/u/14993267?v=4)](https://github.com/Miraeld "Miraeld (170 commits)")[![Khadreal](https://avatars.githubusercontent.com/u/10527515?v=4)](https://github.com/Khadreal "Khadreal (126 commits)")[![vmanthos](https://avatars.githubusercontent.com/u/193660?v=4)](https://github.com/vmanthos "vmanthos (107 commits)")[![mostafa-hisham](https://avatars.githubusercontent.com/u/29744252?v=4)](https://github.com/mostafa-hisham "mostafa-hisham (95 commits)")[![glueckpress](https://avatars.githubusercontent.com/u/308422?v=4)](https://github.com/glueckpress "glueckpress (90 commits)")[![fxbenard](https://avatars.githubusercontent.com/u/802114?v=4)](https://github.com/fxbenard "fxbenard (87 commits)")[![iCaspar](https://avatars.githubusercontent.com/u/7462998?v=4)](https://github.com/iCaspar "iCaspar (79 commits)")[![MathieuLamiot](https://avatars.githubusercontent.com/u/15233030?v=4)](https://github.com/MathieuLamiot "MathieuLamiot (58 commits)")[![AlbertCintas](https://avatars.githubusercontent.com/u/69654544?v=4)](https://github.com/AlbertCintas "AlbertCintas (40 commits)")

---

Tags

cachecachingdatabase-cleanerlazyloadminificationwordpress-performancewordpress-pluginwordpresscacheminificationlazyload

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wp-media-wp-rocket/health.svg)

```
[![Health](https://phpackages.com/badges/wp-media-wp-rocket/health.svg)](https://phpackages.com/packages/wp-media-wp-rocket)
```

###  Alternatives

[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23517.0k1](/packages/rtcamp-nginx-helper)[rarst/fragment-cache

WordPress plugin for partial and async caching of heavy front-end elements.

14115.0k2](/packages/rarst-fragment-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
