78% woocommerce-store-toolkit

Code Review | Store Toolkit for WooCommerce – Boost WooCommerce with useful tools, nuking/deleting, reports, order filters & more!

WordPress plugin Store Toolkit for WooCommerce – Boost WooCommerce with useful tools, nuking/deleting, reports, order filters & more! scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-store...
  • Plugin version: 2.3.10
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-6.3
  • WordPress version: 6.3.1
  • First release: Aug 30, 2012
  • Latest release: Oct 31, 2023
  • Number of updates: 140
  • Update frequency: every 29.2 days
  • Top authors: visser (88.57%)byronkeet (7.86%)jkohlbach (5%)

Code review

54 tests

User reviews

40 reviews

Install metrics

10,000+ active /276,004 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.47MB] [CPU: ▼10.61ms] Passed 4 tests

Analyzing server-side resources used by Store Toolkit for WooCommerce – Boost WooCommerce with useful tools, nuking/deleting, reports, order filters & more!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3040.19 ▼7.23
Dashboard /wp-admin4.39 ▲1.0551.52 ▼6.24
Posts /wp-admin/edit.php3.74 ▲0.3833.98 ▼15.63
Add New Post /wp-admin/post-new.php6.48 ▲0.6083.33 ▼13.34
Media Library /wp-admin/upload.php3.83 ▲0.6038.03 ▲1.58

Server storage [IO: ▲1.48MB] [DB: ▲0.04MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Store Toolkit for WooCommerce – Boost WooCommerce with useful tools, nuking/deleting, reports, order filters & more!
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14714.41 ▼0.151.71 ▼0.1337.36 ▼8.27
Dashboard /wp-admin2,317 ▲1375.68 ▲0.0291.78 ▼2.6940.04 ▼0.78
Posts /wp-admin/edit.php45 ▼2,0550.42 ▼1.540.09 ▼35.5011.20 ▼23.86
Add New Post /wp-admin/post-new.php1,538 ▲1218.13 ▼4.93588.75 ▼101.6763.95 ▼5.25
Media Library /wp-admin/upload.php1,403 ▲34.24 ▼0.0697.52 ▼6.3140.83 ▼4.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woocommerce-store-toolkit/templates/admin/product_data.php
  • 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-store-toolkit/templates/admin/brand_data.php:2
    • > PHP Notice
      Undefined variable: post_meta in wp-content/plugins/woocommerce-store-toolkit/templates/admin/scheduled_export_data.php on line 1
    • > PHP Warning
      include_once(): Failed opening 'WOO_ST_PATHincludes/admin/meta_box.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-store-toolkit/includes/admin/meta_box.php on line 5
    • > PHP Warning
      include_once(WOO_ST_PATHincludes/admin/meta_box.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-store-toolkit/includes/admin/meta_box.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-store-toolkit/templates/admin/product_vendor_data.php:2
    • > PHP Notice
      Undefined variable: post_meta in wp-content/plugins/woocommerce-store-toolkit/templates/admin/membership_plan_data.php on line 1
    • > PHP Warning
      include_once(): Failed opening 'WOO_ST_PATHincludes/admin/meta_box.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-store-toolkit/includes/admin.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-store-toolkit/templates/admin/order_item_data.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woocommerce-store-toolkit/templates/admin/order_related_orders.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woocommerce-store-toolkit/templates/admin/tabs.php:4

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: You can look at the official readme.txt

woocommerce-store-toolkit/store-toolkit.php 85% from 13 tests

The main PHP file in "Store Toolkit for WooCommerce – Boost WooCommerce with useful tools, nuking/deleting, reports, order filters & more!" ver. 2.3.10 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.2" instead of "2.3")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-store-toolkit.php" instead of "store-toolkit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,785 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP421,1243825,483
JavaScript22172911,819
CSS33949415
PO File1171746
XML16822

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity3.50
▷ Minimum method complexity3.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions103
▷ Named functions103100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/admin/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
templates/admin/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
templates/admin/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
templates/admin/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
templates/admin/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%