10% cdn-buster

Code Review | CDN Buster

WordPress plugin CDN Buster scored10%from 54 tests.

About plugin

  • Plugin page: cdn-buster
  • Plugin version: 1.50
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.8
  • WordPress version: 6.3.1
  • First release: Oct 17, 2015
  • Latest release: Aug 1, 2017
  • Number of updates: 22
  • Update frequency: every 29.8 days
  • Top authors: manojtd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,066 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/cdn-buster/EzOptions.php+480
    Methods with the same name as their class will not be constructors in a future version of PHP; EzMiniTab has a deprecated constructor

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.28ms] Passed 4 tests

An overview of server-side resources used by CDN Buster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.11 ▼0.20
Dashboard /wp-admin3.41 ▲0.1147.95 ▼0.69
Posts /wp-admin/edit.php3.46 ▲0.1148.19 ▲2.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.09 ▲2.51
Media Library /wp-admin/upload.php3.27 ▲0.0435.25 ▼0.20

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for CDN Buster
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.35 ▼1.231.71 ▼0.0443.27 ▼6.04
Dashboard /wp-admin2,210 ▲224.85 ▼0.04109.63 ▲2.4140.91 ▼1.69
Posts /wp-admin/edit.php2,093 ▲71.99 ▲0.0141.89 ▲4.3335.00 ▲0.81
Add New Post /wp-admin/post-new.php1,522 ▲222.98 ▼0.08573.46 ▼91.8755.73 ▲0.99
Media Library /wp-admin/upload.php1,395 ▲164.24 ▼0.0495.51 ▼9.9143.40 ▼0.18
CDN Buster Lite /wp-admin/cdn-buster.php260.440.0813.99

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 50% 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cdn-buster/EzOptions.php:544
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cdn-buster/myPlugins.php:300

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/cdn-buster.php
    • > Network (severe)
    wp-admin/cdn-buster.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (CDN Buster admin page.) image not found
You can take inspiration from this readme.txt

cdn-buster/cdn-buster.php Passed 13 tests

The primary PHP file in "CDN Buster" version 1.50 is used by WordPress to initiate all plugin functionality
66 characters long description:
A tool to invalidate the files cached on your CDN server en masse.

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 plugin2,917 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.38
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
▷ Static methods44.21%
▷ Public methods95100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
5 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png176.13KB44.53KB▼ 74.72%
img/ezpaypal.png9.22KB3.44KB▼ 62.72%
ezpaypal.png9.22KB3.44KB▼ 62.72%
img/ezsupport.png3.13KB2.01KB▼ 35.75%
ezsupport.png3.13KB2.01KB▼ 35.75%