84% speed-booster-pack

Code Review | Speed Booster Pack ⚡ PageSpeed Optimization Suite

WordPress plugin Speed Booster Pack ⚡ PageSpeed Optimization Suite scored84%from 54 tests.

About plugin

  • Plugin page: speed-booster-pack
  • Plugin version: 4.5.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: May 20, 2014
  • Latest release: Oct 20, 2023
  • Number of updates: 301
  • Update frequency: every 11.4 days
  • Top authors: tiguan (54.82%)optimocha (28.9%)machothemes (11.63%)ShortPixel (5.65%)

Code review

54 tests

User reviews

176 reviews

Install metrics

20,000+ active /1,431,715 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲2.53MB] [CPU: ▲14.12ms] Passed 4 tests

A check of server-side resources used by Speed Booster Pack ⚡ PageSpeed Optimization Suite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.83 ▲1.3745.49 ▲6.43
Dashboard /wp-admin6.22 ▲2.8767.70 ▲7.77
Posts /wp-admin/edit.php6.37 ▲3.0081.84 ▲36.61
Add New Post /wp-admin/post-new.php8.84 ▲2.94100.64 ▲5.66
Media Library /wp-admin/upload.php6.15 ▲2.9273.06 ▲41.23

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

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (0.51KB) outside of "wp-content/plugins/speed-booster-pack/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 218 new files
Database: no new tables, 10 new options
New WordPress options
woocommerce_allow_tracking
can_compress_scripts
woocommerce_analytics_enabled
sbp_public_post_types
sbp_options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Speed Booster Pack ⚡ PageSpeed Optimization Suite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲19114.73 ▲0.381.31 ▼0.3539.31 ▼1.57
Dashboard /wp-admin2,328 ▲1485.60 ▼0.0893.99 ▲8.7075.22 ▲32.87
Posts /wp-admin/edit.php2,464 ▲3644.20 ▲2.2083.80 ▲48.9234.59 ▼1.41
Add New Post /wp-admin/post-new.php1,980 ▲43920.23 ▼2.52690.46 ▲25.7177.39 ▲14.21
Media Library /wp-admin/upload.php1,592 ▲1925.26 ▲0.85100.09 ▼10.3087.13 ▲41.06
Optimize CSS /wp-admin/admin.php?page=sbp-settings#tab=optimize-css3,2654.9097.7687.62
Tools /wp-admin/admin.php?page=sbp-settings#tab=tools3,0923.8853.1880.21
Assets /wp-admin/admin.php?page=sbp-settings#tab=assets3,1084.7884.9474.59
Dashboard /wp-admin/admin.php?page=sbp-settings#tab=dashboard3,1153.9553.9785.57
CDN & Proxy /wp-admin/admin.php?page=sbp-settings#tab=cdn-proxy3,0994.6883.8691.40
General /wp-admin/admin.php?page=sbp-settings#tab=general3,2484.8374.4884.54
Optimize Database /wp-admin/admin.php?page=sbp-settings#tab=optimize-database3,1103.9559.8973.23
WooCommerce /wp-admin/admin.php?page=sbp-settings#tab=woocommerce3,1484.3164.0198.02
Caching /wp-admin/admin.php?page=sbp-settings#tab=caching3,1905.2889.6674.27
About /wp-admin/admin.php?page=sbp-settings#tab=about3,1044.0353.4778.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • woocommerce_analytics_enabled
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • sbp_public_post_types
    • woocommerce_allow_tracking

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speed-booster-pack/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'SpeedBooster\\SBP_Abstract_Module' not found in wp-content/plugins/speed-booster-pack/includes/classes/class-sbp-image-dimensions.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'SpeedBooster\\SBP_Abstract_Module' not found in wp-content/plugins/speed-booster-pack/includes/classes/class-sbp-base-cache.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/speed-booster-pack/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: You can take inspiration from this readme.txt

speed-booster-pack/speed-booster-pack.php Passed 13 tests

"Speed Booster Pack ⚡ PageSpeed Optimization Suite" version 4.5.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
135 characters long description:
PageSpeed optimization is vital for SEO: A faster website equals better conversions. Optimize & cache your site with this smart plugin!

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
Everything looks great! No dangerous files found in this plugin40,660 lines of code in 185 files:
LanguageFilesBlank linesComment linesLines of code
PHP1254,4113,10015,855
JavaScript91,3355296,880
PO File203,1983,5916,500
Sass1697035,674
CSS64105125,090
Markdown2840457
JSON400201
SVG3003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity26.85
▷ Minimum class complexity1.00
▷ Maximum class complexity270.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes108
▷ Abstract classes54.63%
▷ Concrete classes10395.37%
▷ Final classes00.00%
Methods682
▷ Static methods9814.37%
▷ Public methods53478.30%
▷ Protected methods476.89%
▷ Private methods10114.81%
Functions65
▷ Named functions5178.46%
▷ Anonymous functions1421.54%
Constants72
▷ Global constants5373.61%
▷ Class constants1926.39%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendor/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%