83% wp-performance-score-booster

Code Review | WP Performance Score Booster – Optimize Speed, Enable Cache & Page Preload

WordPress plugin WP Performance Score Booster – Optimize Speed, Enable Cache & Page Preload scored83%from 54 tests.

About plugin

  • Plugin page: wp-performance-sc...
  • Plugin version: 2.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 26, 2014
  • Latest release: May 19, 2023
  • Number of updates: 238
  • Update frequency: every 13.4 days
  • Top authors: dipakcg (100%)

Code review

54 tests

User reviews

331 reviews

Install metrics

20,000+ active /677,456 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼12.17ms] Passed 4 tests

Server-side resources used by WP Performance Score Booster – Optimize Speed, Enable Cache & Page Preload
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.18 ▼5.35
Dashboard /wp-admin3.33 ▲0.0349.02 ▼10.51
Posts /wp-admin/edit.php3.38 ▲0.0346.83 ▼12.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.64 ▼20.68
Media Library /wp-admin/upload.php3.26 ▲0.0334.67 ▼1.89
WP Performance Score Booster /wp-admin/options-general.php?page=wp-performance-score-booster3.2235.05

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

A short overview of filesystem and database impact
Please try to fix the following items
  • The plugin illegally modified 2 files (6.26KB) outside of "wp-content/plugins/wp-performance-score-booster/" and "wp-content/uploads/"
    • (new file) wp-content/wp-performance-score-booster/.htaccess.wppsb
    • (modified) .htaccess
Filesystem: 21 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-posts
wppsb_expire_caching
widget_recent-comments
wppsb_enable_gzip
widget_theysaidso_widget
wppsb_remove_query_strings
wppsb_review_notice
theysaidso_admin_options
wppsb_plugin_version
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for WP Performance Score Booster – Optimize Speed, Enable Cache & Page Preload
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲5014.24 ▼0.312.23 ▲0.3043.54 ▼2.11
Dashboard /wp-admin2,237 ▲665.60 ▼0.0593.00 ▼8.2042.16 ▼2.03
Posts /wp-admin/edit.php2,143 ▲432.14 ▲0.1639.81 ▲1.3437.56 ▲0.05
Add New Post /wp-admin/post-new.php1,562 ▲3423.28 ▲0.03632.52 ▼45.7351.71 ▼9.37
Media Library /wp-admin/upload.php1,442 ▲424.29 ▲0.05107.11 ▲8.6246.17 ▼0.07
WP Performance Score Booster /wp-admin/options-general.php?page=wp-performance-score-booster1,0321.8426.1034.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-performance-score-booster/admin-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-performance-score-booster/data-processing.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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 (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-performance-score-booster/wp-performance-score-booster.php 92% from 13 tests

This is the main PHP file of "WP Performance Score Booster – Optimize Speed, Enable Cache & Page Preload" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)

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
No dangerous file extensions were detected863 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6144135682
CSS217129
PO File1163251
JavaScript1011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wppsb-rate-this-16x16.png0.68KB0.82KB0.00%
assets/images/wppsb-twitter-16x16.png0.54KB0.62KB0.00%
assets/images/wppsb-icon-24x24.png1.39KB1.28KB▼ 8.01%
assets/images/wppsb-github-16x16.png0.25KB0.32KB0.00%
assets/images/wppsb-other-plugins-16x16.png0.49KB0.56KB0.00%