88% breeze

Code Review | Breeze - WordPress Cache Plugin

WordPress plugin Breeze - WordPress Cache Plugin scored 88% from 54 tests.

About plugin

  • Plugin page: breeze
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.9.2
  • First release: Jul 22, 2017
  • Latest release: Mar 15, 2022
  • Number of updates: 304
  • Update frequency: every 5.6 days
  • Top authors: adeelkhan (100%)

Code review

54 tests

User reviews

81 reviews

Install metrics

200,000+ active / 1,699,773 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲1.20MB] [CPU: ▼281.64ms] Passed 4 tests

Server-side resources used by Breeze - WordPress Cache Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲1.0560.56 ▲12.43
Dashboard /wp-admin4.68 ▲1.2744.11 ▲11.12
Posts /wp-admin/edit.php4.90 ▲1.2647.27 ▲11.13
Add New Post /wp-admin/post-new.php8.21 ▲1.23106.81 ▼1,157.63
Media Library /wp-admin/upload.php4.56 ▲1.2632.03 ▲8.82
Breeze /wp-admin/options-general.php?page=breeze4.5830.77

Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Illegal file modification detected: 12 files (14.62KB) outside of "wp-content/plugins/breeze/" and "wp-content/uploads/"
    • (new file) wp-content/cache/breeze-minification/administrator/index.html
    • (new file) wp-content/cache/breeze-minification/administrator/css/index.html
    • (modified) wp-config.php
    • (new file) wp-content/cache/breeze-minification/.htaccess
    • (modified) .htaccess
    • (new file) wp-content/cache/breeze-minification/css/index.html
    • (new file) wp-content/advanced-cache.php
    • (new file) wp-content/cache/breeze-minification/administrator/js/index.html
    • (new file) wp-content/breeze-config/breeze-config.php
    • (new file) wp-content/cache/breeze-minification/administrator/.htaccess
    • ...
Filesystem: 176 new files
Database: no new tables, 9 new options
New WordPress options
breeze_advanced_settings
breeze_basic_settings
breeze_preload_settings
breeze_varnish_cache
breeze_advanced_settings_120
breeze_first_install
breeze_file_settings
breeze_cdn_integration
breeze_heartbeat_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Breeze - WordPress Cache Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,825 ▲7116.01 ▲0.346.07 ▼1.052.42 ▼0.46
Dashboard /wp-admin2,945 ▲876.32 ▲0.05121.06 ▼14.29155.83 ▼8.49
Posts /wp-admin/edit.php2,741 ▲473.30 ▲0.0766.47 ▲2.50138.21 ▼6.40
Add New Post /wp-admin/post-new.php1,702 ▲4115.61 ▲0.08442.84 ▲33.72277.61 ▲125.14
Media Library /wp-admin/upload.php1,751 ▲535.57 ▲0.08151.74 ▲12.95189.55 ▲4.22
Breeze /wp-admin/options-general.php?page=breeze1,5762.9367.49129.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/breeze/breeze.php
    • > /wp-content/plugins/breeze/inc/minification/breeze-minify-main.php
    • > /wp-content/plugins/breeze/inc/helpers.php
    • > /wp-content/plugins/breeze/inc/cache/purge-per-time.php
    • > /wp-content/plugins/breeze/inc/functions.php
    • > /wp-content/plugins/breeze/inc/cache/purge-varnish.php
    • > /wp-content/plugins/breeze/inc/cdn-integration/breeze-cdn-integration.php
    • > /wp-content/plugins/breeze/inc/cdn-integration/breeze-cdn-rewrite.php
    • > /wp-content/plugins/breeze/inc/breeze-admin.php
    • > /wp-content/plugins/breeze/inc/breeze-configuration.php
  • 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      include(): Failed opening 'BREEZE_PLUGIN_DIRinc/wp-cli/class-breeze-cli-helpers.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/breeze/inc/wp-cli/class-breeze-wp-cli-core.php on line 3
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/breeze/vendor/matthiasmullie/path-converter/src/Converter.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/breeze/inc/wp-cli/class-breeze-settings-import-export.php:13
    • > PHP Warning
      include(BREEZE_PLUGIN_DIRinc/wp-cli/class-breeze-cli-helpers.php): failed to open stream: No such file or directory in wp-content/plugins/breeze/inc/wp-cli/class-breeze-wp-cli-core.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/breeze/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Warning
      Use of undefined constant BREEZE_PLUGIN_DIR - assumed 'BREEZE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/breeze/inc/wp-cli/class-breeze-wp-cli-core.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/breeze/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/breeze/vendor/matthiasmullie/minify/src/JS.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/breeze/inc/plugin-incompatibility/breeze-amp-compatibility.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/breeze/vendor/matthiasmullie/path-converter/src/NoConverter.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

breeze/breeze.php 92% from 13 tests

The main file in "Breeze - WordPress Cache Plugin" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected17,633 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
PHP823,2415,09614,904
JavaScript4158621,041
CSS32850950
JSON600239
Markdown21140228
PO File2580139
XML1457864
YAML21156
Dockerfile12011
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity42.00
▷ Minimum class complexity1.00
▷ Maximum class complexity203.00
Average method complexity6.01
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes51
▷ Abstract classes47.84%
▷ Concrete classes4792.16%
▷ Final classes00.00%
Methods429
▷ Static methods7517.48%
▷ Public methods30069.93%
▷ Protected methods7517.48%
▷ Private methods5412.59%
Functions91
▷ Named functions5459.34%
▷ Anonymous functions3740.66%
Constants45
▷ Global constants3066.67%
▷ Class constants1533.33%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/hdr-logo.png2.70KB2.87KB0.00%
assets/images/heartbeat-active.png1.74KB1.01KB▼ 42.00%
assets/images/preload.png0.63KB0.52KB▼ 17.00%
assets/images/advanced.png0.53KB0.40KB▼ 23.79%
assets/images/optimize_tables.png1.05KB0.62KB▼ 41.57%