84% wp-speed-booster

Code Review | Static Resource Cleanup by Removing Query Strings

WordPress plugin Static Resource Cleanup by Removing Query Strings scored84%from 54 tests.

About plugin

  • Plugin page: wp-speed-booster
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-4.7
  • WordPress version: 6.3.1
  • First release: Feb 10, 2017
  • Latest release: Feb 24, 2017
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: sayannaskar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.01ms] Passed 4 tests

Server-side resources used by Static Resource Cleanup by Removing Query Strings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.47 ▲1.98
Dashboard /wp-admin3.33 ▲0.0347.58 ▼0.17
Posts /wp-admin/edit.php3.38 ▲0.0244.20 ▼6.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.87 ▼3.83
Media Library /wp-admin/upload.php3.25 ▲0.0236.23 ▲3.20
Query String Cleanup Settings /wp-admin/tools.php?page=srcrqs_cleanup3.2230.86

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
srcrqs_query_string_remove_ques
db_upgraded
srcrqs_query_string_remove_amp
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Static Resource Cleanup by Removing Query Strings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.22 ▼1.152.00 ▲0.0344.05 ▲1.17
Dashboard /wp-admin2,213 ▲255.83 ▲0.96108.08 ▲3.3840.72 ▼1.39
Posts /wp-admin/edit.php2,090 ▲42.00 ▼0.0534.32 ▼6.0431.88 ▼6.41
Add New Post /wp-admin/post-new.php1,534 ▲123.13 ▼0.09620.30 ▼44.7459.10 ▼2.11
Media Library /wp-admin/upload.php1,392 ▲14.17 ▲0.0094.28 ▼4.3744.41 ▼1.92
Query String Cleanup Settings /wp-admin/tools.php?page=srcrqs_cleanup7892.0625.1823.95

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-speed-booster/includes/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-speed-booster/includes/cleanup.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-speed-booster/includes/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

wp-speed-booster/wp-speed-booster.php 92% from 13 tests

The principal PHP file in "Static Resource Cleanup by Removing Query Strings" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 228 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
Good job! No executable or dangerous file extensions detected73 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP322873

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions10
▷ Named functions10100.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 are no PNG files in this plugin