78% ezcache

Code Review | ezCache

WordPress plugin ezCache scored 78% from 54 tests.

About plugin

  • Plugin page: ezcache
  • Plugin version: 1.6.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Sep 2, 2019
  • Latest release: Jun 4, 2023
  • Number of updates: 33
  • Update frequency: every 41.6 days
  • Top authors: upress (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10,000+ active / 86,018 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.64MB] [CPU: ▲2.16ms] Passed 4 tests

Analyzing server-side resources used by ezCache
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.6947.33 ▲2.66
Dashboard /wp-admin3.97 ▲0.6753.49 ▲5.81
Posts /wp-admin/edit.php4.02 ▲0.6753.44 ▲2.06
Add New Post /wp-admin/post-new.php6.50 ▲0.62100.91 ▼1.90
Media Library /wp-admin/upload.php3.83 ▲0.6144.63 ▲11.46

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

A short overview of filesystem and database impact
These are issues you should consider
  • You have illegally modified 5 files (17.84KB) outside of "wp-content/plugins/ezcache/" and "wp-content/uploads/"
    • (modified) wp-config.php
    • (new file) wp-content/advanced-cache.php
    • (new file) wp-content/ezcache-config.json
    • (new file) wp-content/cache/ezcache/wp.com/6666cd76f96956469e7be39d750cc7d9/index-mobile.html.gz
    • (new file) wp-content/cache/ezcache/wp.com/6666cd76f96956469e7be39d750cc7d9/index.html.gz
Filesystem: 73 new files
Database: 1 new table, 7 new options
New tables
wp_ezcache_webp_images
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
ezcache_version

Browser metrics Passed 4 tests

ezCache: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲20613.68 ▼0.691.69 ▼0.3742.22 ▲5.76
Dashboard /wp-admin2,329 ▲1384.84 ▼0.05109.82 ▼3.3643.30 ▼1.04
Posts /wp-admin/edit.php2,212 ▲1262.02 ▲0.0540.05 ▲0.9037.43 ▲0.52
Add New Post /wp-admin/post-new.php6,529 ▲5,01020.36 ▼0.57865.70 ▲243.9152.90 ▼2.29
Media Library /wp-admin/upload.php1,508 ▲1174.23 ▲0.01120.36 ▲20.1853.35 ▲8.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ezcache/uninstall.php
    • > /wp-content/plugins/ezcache/advanced-cache.php
    • > /wp-content/plugins/ezcache/ezcache.php
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Upress\\EzCache\\FileOptimizer\\BaseFileOptimizer' not found in wp-content/plugins/ezcache/includes/FileOptimizer/WebpConverter.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Upress\\EzCache\\FileOptimizer\\BaseFileOptimizer' not found in wp-content/plugins/ezcache/includes/FileOptimizer/JsCombiner.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Upress\\EzCache\\FileOptimizer\\BaseFileOptimizer' not found in wp-content/plugins/ezcache/includes/FileOptimizer/CombineGoogleFonts.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Upress\\EzCache\\FileOptimizer\\BaseFileOptimizer' not found in wp-content/plugins/ezcache/includes/FileOptimizer/CssCombiner.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/ezcache/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/ezcache/vendor/matthiasmullie/path-converter/src/NoConverter.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Upress\\EzCache\\FileOptimizer\\BaseFileOptimizer' not found in wp-content/plugins/ezcache/includes/FileOptimizer/CssMinifier.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/ezcache/vendor/matthiasmullie/minify/src/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/ezcache/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/ezcache/vendor/matthiasmullie/path-converter/src/Converter.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: cache, upress, boost, hosting, speed

ezcache/ezcache.php Passed 13 tests

The entry point to "ezCache" version 1.6.3 is a PHP file that has certain tags in its header comment area
104 characters long description:
ezCache is an easy and innovative cache plugin that will help you significantly improve your site speed.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin5,575 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP471,2242,4814,729
PO File14691,164582
JSON300181
Markdown121038
YAML10031
Dockerfile12011
CSS1112
JavaScript1021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity19.76
▷ Minimum class complexity1.00
▷ Maximum class complexity221.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces11
Interfaces1
Traits0
Classes36
▷ Abstract classes411.11%
▷ Concrete classes3288.89%
▷ Final classes00.00%
Methods260
▷ Static methods3111.92%
▷ Public methods16663.85%
▷ Protected methods8532.69%
▷ Private methods93.46%
Functions23
▷ Named functions417.39%
▷ Anonymous functions1982.61%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected