90% cache-buster

Code Review | Cache Buster

WordPress plugin Cache Buster scored90%from 54 tests.

About plugin

  • Plugin page: cache-buster
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 29, 2019
  • Latest release: Jun 12, 2019
  • Number of updates: 6
  • Update frequency: every 2.3 days
  • Top authors: danmemememe (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /6,804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼2.54ms] Passed 4 tests

Server-side resources used by Cache Buster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.19 ▼2.02
Dashboard /wp-admin3.31 ▼0.0345.55 ▼14.33
Posts /wp-admin/edit.php3.36 ▲0.0148.81 ▲2.91
Add New Post /wp-admin/post-new.php6.01 ▲0.1295.77 ▲3.27
Media Library /wp-admin/upload.php3.24 ▲0.0136.23 ▲3.62

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Cache Buster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲4212.94 ▼1.624.64 ▲2.5941.79 ▲1.08
Dashboard /wp-admin2,218 ▲275.81 ▲0.9187.99 ▼13.7139.61 ▼4.33
Posts /wp-admin/edit.php2,098 ▲92.03 ▲0.0336.83 ▲1.4834.36 ▼2.69
Add New Post /wp-admin/post-new.php1,539 ▲2018.46 ▼4.73565.33 ▼113.8435.72 ▼17.04
Media Library /wp-admin/upload.php1,401 ▲134.09 ▼0.0785.95 ▼13.7645.03 ▲0.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
2 plugin tags: cache buster, cache

cache-buster/pb-cache-buster.php 92% from 13 tests

The main PHP file in "Cache Buster" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cache-buster.php" instead of "pb-cache-buster.php")

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
Good job! No executable or dangerous file extensions detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111323

PHP code Passed 2 tests

This is a short overview 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 complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin