74% boostmyproducts

Code Review | Boostmyproducts

WordPress plugin Boostmyproducts scored74%from 54 tests.

About plugin

  • Plugin page: boostmyproducts
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2016
  • Latest release: Nov 17, 2016
  • Number of updates: 10
  • Update frequency: every 1.4 days
  • Top authors: siadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /685 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.92MB] [CPU: ▼35.77ms] Passed 4 tests

Server-side resources used by Boostmyproducts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0347.39 ▼1.54
Dashboard /wp-admin3.02 ▼0.2827.51 ▼24.59
Posts /wp-admin/edit.php3.03 ▼0.3324.64 ▼30.96
Add New Post /wp-admin/post-new.php3.02 ▼2.8625.98 ▼79.42
Media Library /wp-admin/upload.php3.03 ▼0.2026.97 ▼8.10
Boostmyproducts /wp-admin/options-general.php?page=silic-boostmyproducts3.0327.42

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Boostmyproducts: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.191.72 ▼0.4039.99 ▼5.25
Dashboard /wp-admin2,213 ▲284.86 ▼0.02101.95 ▼16.9039.44 ▼4.47
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0039.27 ▲1.9235.44 ▲1.14
Add New Post /wp-admin/post-new.php1,537 ▲423.15 ▼0.05636.80 ▲13.4059.20 ▼0.35
Media Library /wp-admin/upload.php1,389 ▲44.20 ▼0.01106.60 ▲3.7943.54 ▼3.43
Boostmyproducts /wp-admin/options-general.php?page=silic-boostmyproducts7902.0324.3127.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=silic-boostmyproducts
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === boostmyproducts === )
Please take inspiration from this readme.txt

boostmyproducts/silic-boostmyproducts.php 92% from 13 tests

"Boostmyproducts" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("boostmyproducts.php" instead of "silic-boostmyproducts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected320 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26132293
PO File17927

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin