83% wp-booster

Code Review | WP Booster

WordPress plugin WP Booster scored83%from 54 tests.

About plugin

  • Plugin page: wp-booster
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: Apr 30, 2020
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: therajibhossain (75%)monim13 (50%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /831 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.11ms] Passed 4 tests

This is a short check of server-side resources used by WP Booster
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.83 ▼1.53
Dashboard /wp-admin3.39 ▲0.0947.34 ▼6.89
Posts /wp-admin/edit.php3.50 ▲0.1544.09 ▼4.75
Add New Post /wp-admin/post-new.php5.99 ▲0.1093.64 ▲5.19
Media Library /wp-admin/upload.php3.31 ▲0.0936.59 ▲0.74
WP Booster Settings /wp-admin/options-general.php?page=wp-booster3.2833.54

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

A short overview of filesystem and database impact
These are issues you should consider
  • The plugin illegally modified 1 file (0.51KB) outside of "wp-content/plugins/wp-booster/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
wpbooster_enqueued_scripts
theysaidso_admin_options
wpbooster_enqueued_styles
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Booster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.69 ▼0.761.84 ▼0.4041.10 ▼7.85
Dashboard /wp-admin2,214 ▲264.91 ▲0.05104.56 ▼10.8630.59 ▼12.21
Posts /wp-admin/edit.php2,097 ▲82.00 ▼0.0438.58 ▲3.3825.34 ▼8.19
Add New Post /wp-admin/post-new.php1,522 ▲323.31 ▲0.16613.25 ▼54.9254.45 ▼22.24
Media Library /wp-admin/upload.php1,399 ▲114.28 ▲0.0495.82 ▼3.6942.96 ▼3.08
WP Booster Settings /wp-admin/options-general.php?page=wp-booster8911.7327.3826.38

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-booster/wp-booster.php

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in wp-booster/assets to your readme.txt
Please take inspiration from this readme.txt

wp-booster/wp-booster.php 85% from 13 tests

The main PHP file in "WP Booster" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "5.0.0")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,038 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP173896551,945
JavaScript24560
CSS17733

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.29
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces2
Interfaces0
Traits1
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods107
▷ Static methods2220.56%
▷ Public methods5147.66%
▷ Protected methods1514.02%
▷ Private methods4138.32%
Functions12
▷ Named functions433.33%
▷ Anonymous functions866.67%
Constants20
▷ Global constants840.00%
▷ Class constants1260.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon.png1.04KB1.06KB0.00%