84% blizhost-cache-purge

Code Review | Blizhost CloudCache Purge

WordPress plugin Blizhost CloudCache Purge scored 84% from 54 tests.

About plugin

  • Plugin page: blizhost-cache-purge
  • Plugin version: 4.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 6, 2018
  • Latest release: Jul 21, 2023
  • Number of updates: 38
  • Update frequency: every 48.5 days
  • Top authors: rodrigogomes (97.37%)blizhost (5.26%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,466 total downloads

Benchmarks

Plugin footprint 83% 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.12MB] [CPU: ▼4.30ms] Passed 4 tests

An overview of server-side resources used by Blizhost CloudCache Purge
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.79 ▼10.33
Dashboard /wp-admin3.42 ▲0.1247.94 ▼1.74
Posts /wp-admin/edit.php3.53 ▲0.1850.11 ▲2.34
Add New Post /wp-admin/post-new.php6.00 ▲0.1296.86 ▼6.52
Media Library /wp-admin/upload.php3.34 ▲0.1236.23 ▲1.38

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Blizhost CloudCache Purge
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9814.47 ▲0.042.11 ▲0.0941.04 ▼2.21
Dashboard /wp-admin2,234 ▲465.86 ▼0.02110.32 ▲7.6643.07 ▲5.63
Posts /wp-admin/edit.php2,107 ▲182.04 ▲0.0340.25 ▼0.0435.46 ▲0.07
Add New Post /wp-admin/post-new.php1,548 ▲1518.22 ▼4.88605.66 ▼31.5259.14 ▼3.15
Media Library /wp-admin/upload.php1,406 ▲184.25 ▲0.0998.21 ▼5.6344.99 ▲0.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blizhost-cache-purge/blizhost-cache-purge.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: host, cloudcache, redis, hospedagem, blizhost...

blizhost-cache-purge/blizhost-cache-purge.php Passed 13 tests

The principal PHP file in "Blizhost CloudCache Purge" v. 4.0.4 is loaded by WordPress automatically on each request
131 characters long description:
Automatically empty your site cache when a post is published or when content is modified. And it improves CloudCache compatibility.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin540 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2125253431
CSS14284
SVG10025

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity54.00
▷ Minimum class complexity8.00
▷ Maximum class complexity100.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods2592.59%
▷ Protected methods27.41%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin