78% breeze

Code Review | Breeze - WordPress Cache Plugin

WordPress plugin Breeze - WordPress Cache Plugin scored78%from 54 tests.

About plugin

  • Plugin page: breeze
  • Plugin version: 2.0.32
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2017
  • Latest release: Nov 14, 2023
  • Number of updates: 547
  • Update frequency: every 4.3 days
  • Top authors: adeelkhan (100%)

Code review

54 tests

User reviews

95 reviews

Install metrics

300,000+ active /5,185,483 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.71MB] [CPU: ▲30.20ms] Passed 4 tests

Analyzing server-side resources used by Breeze - WordPress Cache Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.90 ▲1.4351.21 ▲12.71
Dashboard /wp-admin5.14 ▲1.7986.49 ▲20.76
Posts /wp-admin/edit.php5.18 ▲1.8286.48 ▲36.28
Add New Post /wp-admin/post-new.php7.79 ▲1.90139.15 ▲54.30
Media Library /wp-admin/upload.php5.02 ▲1.7985.10 ▲51.03
Breeze /wp-admin/options-general.php?page=breeze4.9974.47

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

Input-output and database impact of this plugin
These are issues you should consider
  • Illegal file modification found: 12 files (14.89KB) outside of "wp-content/plugins/breeze/" and "wp-content/uploads/"
    • (new file) wp-content/cache/breeze-minification/administrator/index.html
    • (new file) wp-content/breeze-config/breeze-config.php
    • (new file) wp-content/advanced-cache.php
    • (new file) wp-content/cache/breeze-minification/administrator/js/index.html
    • (modified) .htaccess
    • (new file) wp-content/cache/breeze-minification/administrator/css/index.html
    • (modified) wp-config.php
    • (new file) wp-content/cache/breeze-minification/.htaccess
    • (new file) wp-content/cache/breeze-minification/css/index.html
    • (new file) wp-content/cache/breeze-minification/administrator/.htaccess
    • ...
Filesystem: 193 new files
Database: no new tables, 15 new options
New WordPress options
breeze_varnish_cache
breeze_file_settings
breeze_heartbeat_settings
breeze_first_install
widget_recent-comments
breeze_cdn_integration
breeze_advanced_settings_120
can_compress_scripts
db_upgraded
breeze_preload_settings
...

Browser metrics Passed 4 tests

Breeze - WordPress Cache Plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲12114.28 ▼0.442.19 ▲0.3937.84 ▼2.80
Dashboard /wp-admin2,238 ▲605.65 ▼0.0089.73 ▼26.0736.32 ▼7.27
Posts /wp-admin/edit.php2,143 ▲432.06 ▲0.0342.34 ▲5.9032.21 ▼2.21
Add New Post /wp-admin/post-new.php1,571 ▲4525.14 ▲1.90620.94 ▼68.0872.67 ▲3.03
Media Library /wp-admin/upload.php1,443 ▲434.26 ▲0.04104.82 ▲0.7544.34 ▲1.36
Breeze /wp-admin/options-general.php?page=breeze1,3622.1146.5979.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/breeze/inc/breeze-admin.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-rewrite.php
    • > /wp-content/plugins/breeze/inc/cache/purge-per-time.php
    • > /wp-content/plugins/breeze/inc/cache/ecommerce-cache.php
    • > /wp-content/plugins/breeze/inc/cdn-integration/breeze-cdn-integration.php
    • > /wp-content/plugins/breeze/inc/minification/breeze-minify-main.php
    • > /wp-content/plugins/breeze/inc/helpers.php
    • > /wp-content/plugins/breeze/breeze.php
  • 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/breeze/inc/plugin-incompatibility/class-breeze-woocs-compatibility.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/breeze/inc/class-breeze-file-permissions.php:240
    • > 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: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/breeze/vendor/matthiasmullie/minify/src/CSS.php:29
    • > 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: Call to undefined function is_multisite() in wp-content/plugins/breeze/inc/class-breeze-heartbeat-settings.php:172
    • > PHP Warning
      include(): Failed opening 'BREEZE_PLUGIN_DIRinc/wp-cli/class-breeze-settings-import-export.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/breeze/inc/wp-cli/class-breeze-wp-cli-core.php on line 4
    • > 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 3
    • > 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 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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

breeze/breeze.php 92% from 13 tests

Analyzing the main PHP file in "Breeze - WordPress Cache Plugin" version 2.0.32
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin22,171 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
PHP914,0466,07618,868
JavaScript42021521,320
CSS3692371,234
JSON600242
Markdown21140228
PO File2580139
XML2477872
YAML21156
Dockerfile12011
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity48.05
▷ Minimum class complexity1.00
▷ Maximum class complexity272.00
Average method complexity6.59
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces8
Interfaces1
Traits0
Classes57
▷ Abstract classes47.02%
▷ Concrete classes5392.98%
▷ Final classes11.89%
Methods494
▷ Static methods9719.64%
▷ Public methods34870.45%
▷ Protected methods7815.79%
▷ Private methods6813.77%
Functions106
▷ Named functions6561.32%
▷ Anonymous functions4138.68%
Constants47
▷ Global constants3165.96%
▷ Class constants1634.04%
▷ Public constants1593.75%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
47 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/advanced-active.png0.54KB0.44KB▼ 18.92%
assets/images/varnish.png1.06KB0.74KB▼ 30.48%
assets/images/hdr-logo.png2.70KB2.87KB0.00%
assets/images/clean_optimizer.png1.70KB0.99KB▼ 42.01%
assets/images/duplicated_term_meta.png1.33KB0.35KB▼ 73.44%