10% boost-online-sales

Code Review | Boost Online Sales

WordPress plugin Boost Online Sales scored10%from 54 tests.

About plugin

  • Plugin page: boost-online-sales
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2021
  • Latest release: Oct 18, 2021
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: ccrd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /287 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/boost-online-sales/Code/Flash_sbWoo.php+31
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.75ms] Passed 4 tests

Analyzing server-side resources used by Boost Online Sales
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.27 ▼39.94
Dashboard /wp-admin2.05 ▼1.267.61 ▼40.76
Posts /wp-admin/edit.php2.05 ▼1.316.43 ▼40.72
Add New Post /wp-admin/post-new.php2.05 ▼3.846.17 ▼85.56
Media Library /wp-admin/upload.php2.05 ▼1.186.31 ▼29.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Boost Online Sales
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲8013.32 ▼1.364.92 ▲3.0139.25 ▼7.71
Dashboard /wp-admin2,222 ▲345.94 ▲0.04100.49 ▼3.8942.36 ▼1.72
Posts /wp-admin/edit.php2,111 ▲222.02 ▼0.0435.67 ▼1.2135.34 ▲0.89
Add New Post /wp-admin/post-new.php1,530 ▼1217.36 ▼0.74657.93 ▲51.4550.31 ▼0.45
Media Library /wp-admin/upload.php1,404 ▲164.17 ▼0.1293.50 ▼3.2342.70 ▼0.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/boost-online-sales/Code/Flash_sbWoo.php+31
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/boost-online-sales/Code/Flash_sbWooUnstall.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 90% 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 need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (**Settings**), #2 (**Products page**), #3 (**Product page**)
The official readme.txt is a good inspiration

boost-online-sales/index.php 85% from 13 tests

The principal PHP file in "Boost Online Sales" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("boost-online-sales.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin735 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods1017.86%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin