78% next-wc-product-toolbox

Code Review | Next Product Toolbox for WooCommerce

WordPress plugin Next Product Toolbox for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: next-wc-product-t...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Aug 31, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 41
  • Update frequency: every 8.4 days
  • Top authors: nxtweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.43ms] Passed 4 tests

This is a short check of server-side resources used by Next Product Toolbox for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0228.23 ▼14.46
Dashboard /wp-admin3.44 ▲0.1346.95 ▼1.09
Posts /wp-admin/edit.php3.55 ▲0.1953.54 ▲6.51
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.80 ▼8.66
Media Library /wp-admin/upload.php3.36 ▲0.1340.75 ▲6.63
Misc /wp-admin/admin.php?page=wcptb-acp&tab=wcptb_misc3.6039.89
Toolbox /wp-admin/admin.php?page=wcptb-acp&tab=wcptb_box3.6038.44
Next Toolbox /wp-admin/admin.php?page=wcptb-acp3.6037.27
SEO /wp-admin/admin.php?page=wcptb-acp&tab=wcptb_seo3.6039.40

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
wcptbCurrentType
theysaidso_admin_options
wcptbCurrentVersion

Browser metrics Passed 4 tests

Checking browser requirements for Next Product Toolbox for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,512 ▼25914.45 ▼0.130.87 ▼1.1714.10 ▼34.42
Dashboard /wp-admin2,245 ▲544.90 ▲0.0399.25 ▼2.2271.27 ▲27.27
Posts /wp-admin/edit.php2,125 ▲361.97 ▼0.0538.39 ▲1.6737.85 ▲1.74
Add New Post /wp-admin/post-new.php1,698 ▲17921.94 ▼1.36680.48 ▼1.1174.14 ▲13.98
Media Library /wp-admin/upload.php1,415 ▲244.32 ▲0.1197.34 ▼2.4377.23 ▲30.90
Misc /wp-admin/admin.php?page=wcptb-acp&tab=wcptb_misc8742.0523.4452.49
Toolbox /wp-admin/admin.php?page=wcptb-acp&tab=wcptb_box9152.0525.2035.00
Next Toolbox /wp-admin/admin.php?page=wcptb-acp9182.0524.9432.38
SEO /wp-admin/admin.php?page=wcptb-acp&tab=wcptb_seo1,0592.2025.9437.68

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • wcptbCurrentType
    • theysaidso_admin_options
    • can_compress_scripts
    • wcptbCurrentVersion
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wcptb-acp&tab=wcptb_seo
    • > Notice in wp-content/plugins/next-wc-product-toolbox/includes/wcptb-acp-page.php+75
    Undefined index: section
    • > GET request to /wp-admin/admin.php?page=wcptb-acp
    • > Notice in wp-content/plugins/next-wc-product-toolbox/includes/wcptb-acp-page.php+73
    Undefined index: tab

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/next-wc-product-toolbox/includes/wcptb-acp-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/next-wc-product-toolbox/includes/wcptb-functions.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/next-wc-product-toolbox/next-wc-product-toolbox.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: Version format is invalid
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

next-wc-product-toolbox/next-wc-product-toolbox.php 92% from 13 tests

The main file in "Next Product Toolbox for WooCommerce" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 425 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,247 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP417316919
PO File1266444216
CSS2135112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.34KB1.06KB▼ 20.32%