83% jigoshop-smart-send-shipping

Code Review | Jigoshop Smart Send Shipping

WordPress plugin Jigoshop Smart Send Shipping scored83%from 54 tests.

About plugin

  • Plugin page: jigoshop-smart-se...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Dec 4, 2012
  • Latest release: Jan 24, 2013
  • Number of updates: 9
  • Update frequency: every 5.6 days
  • Top authors: sp4cecat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,341 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.80ms] Passed 4 tests

An overview of server-side resources used by Jigoshop Smart Send Shipping
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.84 ▼5.10
Dashboard /wp-admin3.31 ▲0.0153.16 ▼12.86
Posts /wp-admin/edit.php3.36 ▲0.0054.77 ▼0.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.17 ▼12.03
Media Library /wp-admin/upload.php3.23 ▲0.0038.79 ▼1.19

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jigoshop Smart Send Shipping
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▲0.021.58 ▼0.0842.04 ▲2.26
Dashboard /wp-admin2,198 ▲275.63 ▲0.0691.15 ▼0.4339.73 ▼10.05
Posts /wp-admin/edit.php2,100 ▼32.03 ▼0.0139.39 ▼2.4034.97 ▼6.49
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▼0.02667.57 ▼10.3954.52 ▼10.86
Media Library /wp-admin/upload.php1,403 ▲34.24 ▼0.0099.51 ▼14.8143.86 ▼4.35

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/jigoshop-smart-send-shipping/smartsend-plugin.php on line 247
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jigoshop-smart-send-shipping/jigoshop-smartsend.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Pre-checkout, quick shipping calculator), #2 (Shipping options in the Jigoshop settings section)
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

jigoshop-smart-send-shipping/jigoshop-smartsend.php 92% from 13 tests

The principal PHP file in "Jigoshop Smart Send Shipping" v. 2.0.1 is loaded by WordPress automatically on each request
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-smart-send-shipping.php" instead of "jigoshop-smartsend.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected866 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP314196866

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity75.00
▷ Minimum class complexity34.00
▷ Maximum class complexity116.00
Average method complexity8.79
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1894.74%
▷ Protected methods15.26%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png33.68KB14.65KB▼ 56.51%
screenshot-2.png37.53KB15.92KB▼ 57.57%