78% jigoshop-store-toolkit

Code Review | Jigoshop - Store Toolkit

WordPress plugin Jigoshop - Store Toolkit scored78%from 54 tests.

About plugin

  • Plugin page: jigoshop-store-to...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.5.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2012
  • Latest release: May 4, 2016
  • Number of updates: 29
  • Update frequency: every 53.7 days
  • Top authors: visser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /9,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼3.80ms] Passed 4 tests

A check of server-side resources used by Jigoshop - Store Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1839.02 ▼0.73
Dashboard /wp-admin3.86 ▲0.5545.81 ▼1.17
Posts /wp-admin/edit.php3.61 ▲0.2547.53 ▼0.45
Add New Post /wp-admin/post-new.php6.08 ▲0.1983.18 ▼12.84
Media Library /wp-admin/upload.php3.42 ▲0.1935.46 ▲2.75
Store Toolkit /wp-admin/admin.php?page=jigo_st3.3936.23

Server storage [IO: ▲0.23MB] [DB: ▲0.05MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
recovery_mode_email_last_sent
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Jigoshop - Store Toolkit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,267 ▼50412.41 ▼2.171.84 ▲0.1538.19 ▼5.93
Dashboard /wp-admin1,673 ▼5121.38 ▼4.6212.89 ▼90.2538.68 ▼3.85
Posts /wp-admin/edit.php2,094 ▲22.04 ▲0.0038.93 ▼2.3242.70 ▲7.49
Add New Post /wp-admin/post-new.php1,526 ▼218.02 ▼0.16620.56 ▼8.3834.18 ▼22.14
Media Library /wp-admin/upload.php1,393 ▲54.19 ▲0.0193.96 ▼2.1540.66 ▼2.19
Store Toolkit /wp-admin/admin.php?page=jigo_st8682.0124.5925.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • recovery_mode_email_last_sent

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st-orders_downloads.php
  • 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: post_meta in wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st-orders_data.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st_aioseop.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st-dashboard_right_now.php:3
    • > PHP Notice
      Undefined variable: current_month_offset in wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st-dashboard_monthly_report.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Jigoshop_Base' not found in wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st-dashboard_stock_report.php:5
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st-orders_downloads.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jigoshop-store-toolkit/templates/admin/tabs-nuke.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st-orders_download_permissions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/jigoshop-store-toolkit/templates/admin/tabs-overview.php:1
    • > PHP Notice
      Undefined variable: order_downloads in wp-content/plugins/jigoshop-store-toolkit/templates/admin/jigo-admin_st-orders_downloads.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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 require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Store Toolkit overview screen.), #2 (The Nuke WooCommerce screen with 'nuke' options.), #3 (Additional 'nuke' options for WordPress details.), #4 (A set of tools for Jigoshop store maintainers.)
Please take inspiration from this readme.txt

jigoshop-store-toolkit/store-toolkit.php 92% from 13 tests

The main PHP file in "Jigoshop - Store Toolkit" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("jigoshop-store-toolkit.php" instead of "store-toolkit.php")

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 plugin2,347 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP17392752,081
CSS183191
PO File1242560
JavaScript12015

PHP code Passed 2 tests

A brief analysis 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.34
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%
Functions46
▷ Named functions46100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
4 compressed PNG files occupy 0.10MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.97KB21.58KB▼ 6.06%
screenshot-4.png28.54KB27.37KB▼ 4.12%
screenshot-3.png20.03KB19.04KB▼ 4.95%
screenshot-2.png33.03KB32.18KB▼ 2.57%