84% store-booster-lite

Code Review | Store Booster Lite

WordPress plugin Store Booster Lite scored84%from 54 tests.

About plugin

  • Plugin page: store-booster-lite
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 7, 2021
  • Latest release: Jul 7, 2021
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: wpoperations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /344 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.14MB] [CPU: ▼12.97ms] Passed 4 tests

A check of server-side resources used by Store Booster Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1639.87 ▼4.71
Dashboard /wp-admin3.45 ▲0.1151.81 ▼24.52
Posts /wp-admin/edit.php3.56 ▲0.2152.83 ▼5.17
Add New Post /wp-admin/post-new.php6.03 ▲0.1587.90 ▼17.48
Media Library /wp-admin/upload.php3.37 ▲0.1441.34 ▲4.69

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Store Booster Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17413.58 ▼0.736.54 ▲4.8539.06 ▼1.67
Dashboard /wp-admin2,202 ▲144.92 ▼0.98108.64 ▼7.7777.61 ▲36.10
Posts /wp-admin/edit.php2,100 ▲82.01 ▼0.0139.41 ▼1.4734.41 ▼3.24
Add New Post /wp-admin/post-new.php1,678 ▲15922.23 ▼1.03799.60 ▲118.0455.07 ▲4.34
Media Library /wp-admin/upload.php1,393 ▲144.23 ▲0.03104.11 ▲4.5170.21 ▲23.35

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

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
The following issues need your attention
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/store-booster-lite/admin/settings-search.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-booster-lite/admin/sb-functions/single-product.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_print_styles() in wp-content/plugins/store-booster-lite/admin/logins/login-form.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_print_styles() in wp-content/plugins/store-booster-lite/admin/search/search-form.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Store_Booster_Lite_Settings' not found in wp-content/plugins/store-booster-lite/admin/counters/product-counter-functions.php:40
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/store-booster-lite/admin/settings-login-signup.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-booster-lite/admin/logins/login-hooks.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/store-booster-lite/admin/settings-counters.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/store-booster-lite/admin/search/embed-menu.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-booster-lite/admin/sb-functions/quick-view.php:8

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: addon, sales count, store, woocommerce, ecommerce...

store-booster-lite/store-booster-lite.php 85% from 13 tests

The entry point to "Store Booster Lite" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: The description should be shorter than 140 characters (currently 290 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,355 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP154841971,200
CSS56639939
JavaScript48518216

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.60
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods32
▷ Static methods515.62%
▷ Public methods3196.88%
▷ Protected methods00.00%
▷ Private methods13.12%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/boost.png3.25KB0.82KB▼ 74.65%
admin/assets/img/bl-boost.png3.34KB0.82KB▼ 75.35%