78% jigoshop-exporter

Code Review | Jigoshop - Store Exporter

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

About plugin

  • Plugin page: jigoshop-exporter
  • Plugin version: 1.5.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.5.1
  • WordPress version: 6.3.1
  • First release: Aug 2, 2012
  • Latest release: May 4, 2016
  • Number of updates: 47
  • Update frequency: every 29.5 days
  • Top authors: visser (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /8,766 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.74MB] [CPU: ▼0.91ms] Passed 4 tests

A check of server-side resources used by Jigoshop - Store Exporter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6740.97 ▼1.30
Dashboard /wp-admin4.61 ▲1.3153.11 ▲0.49
Posts /wp-admin/edit.php4.16 ▲0.8049.71 ▲1.78
Add New Post /wp-admin/post-new.php6.63 ▲0.7492.51 ▼4.60
Media Library /wp-admin/upload.php3.97 ▲0.7438.14 ▲5.19
Store Export /wp-admin/admin.php?page=jigo_ce3.9943.78

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-posts
jigo_ce_category_separator
widget_theysaidso_widget
jigo_ce_date_format
jigo_ce_bom
widget_recent-comments
can_compress_scripts
jigo_ce_delete_file
db_upgraded
jigo_ce_delimiter
...

Browser metrics Passed 4 tests

Checking browser requirements for Jigoshop - Store Exporter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16914.79 ▲0.211.75 ▼0.0639.44 ▼2.89
Dashboard /wp-admin2,321 ▲1335.81 ▲0.6997.22 ▼19.1442.80 ▼1.79
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0333.67 ▼2.2135.37 ▲0.60
Add New Post /wp-admin/post-new.php1,542 ▲2818.22 ▲0.58619.64 ▼85.4655.61 ▼1.45
Media Library /wp-admin/upload.php1,393 ▲24.21 ▲0.0197.79 ▼2.1639.75 ▼5.14
Store Export /wp-admin/admin.php?page=jigo_ce1,0231.9231.7228.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 14 options
    • jigo_ce_bom
    • jigo_ce_category_separator
    • can_compress_scripts
    • jigo_ce_delimiter
    • jigo_ce_escape_formatting
    • widget_recent-posts
    • jigo_ce_encoding
    • jigo_ce_delete_file
    • widget_recent-comments
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 items
  • 49× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include_once(JIGO_CE_PATHincludes/legacy.php): failed to open stream: No such file or directory in wp-content/plugins/jigoshop-exporter/includes/functions.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jigoshop-exporter/includes/admin.php:101
    • > PHP Warning
      include_once(JIGO_CE_PATHincludes/order.php): failed to open stream: No such file or directory in wp-content/plugins/jigoshop-exporter/includes/functions.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/jigoshop-exporter/includes/coupon.php:2
    • > PHP Warning
      include_once(): Failed opening 'JIGO_CE_PATHincludes/formatting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/jigoshop-exporter/includes/functions.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/jigoshop-exporter/includes/tag.php:2
    • > PHP Warning
      Use of undefined constant JIGO_CE_PATH - assumed 'JIGO_CE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jigoshop-exporter/includes/functions.php on line 15
    • > PHP Warning
      include_once(JIGO_CE_PATHincludes/customer.php): failed to open stream: No such file or directory in wp-content/plugins/jigoshop-exporter/includes/functions.php on line 6
    • > PHP Warning
      include_once(): Failed opening 'JIGO_CE_PATHincludes/category.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/jigoshop-exporter/includes/functions.php on line 3
    • > PHP Warning
      Use of undefined constant JIGO_CE_PATH - assumed 'JIGO_CE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jigoshop-exporter/includes/functions.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=jigo_ce
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'msie')" "TypeError: Cannot read properties of undefined (reading 'msie')\n at e.\u003Ccomputed>.chosen (/wp-content/plugins/jigoshop-exporter/js/jquery.chosen.js?ver=6.3.1:283:21)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/jigoshop-exporter/templates/admin/export.js?ver=6.3.1:23:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=jigo_ce
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can take inspiration from this readme.txt

jigoshop-exporter/exporter.php 92% from 13 tests

The main PHP file in "Jigoshop - Store Exporter" ver. 1.5.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jigoshop-exporter.php" instead of "exporter.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
There were no executable files found in this plugin7,071 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP279553505,146
JavaScript31241331,172
CSS44665753

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions145
▷ Named functions14499.31%
▷ Anonymous functions10.69%
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
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/admin/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
templates/admin/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
templates/admin/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
templates/admin/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
templates/admin/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%