84% jigoshop-basic-bundle-shipping

Code Review | Jigoshop Basic Bundle Shipping

WordPress plugin Jigoshop Basic Bundle Shipping scored 84% from 54 tests.

About plugin

  • Plugin page: jigoshop-basic-bu...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-3.4
  • WordPress version: 6.3.1
  • First release: Jul 19, 2012
  • Latest release: Feb 5, 2013
  • Number of updates: 11
  • Update frequency: every 18.3 days
  • Top authors: polevaultweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 4,786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Jigoshop Basic Bundle Shipping
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.87 ▼3.84
Dashboard /wp-admin3.31 ▲0.0044.10 ▼5.25
Posts /wp-admin/edit.php3.36 ▲0.0048.37 ▼1.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.73 ▼9.64
Media Library /wp-admin/upload.php3.23 ▲0.0033.52 ▲0.92

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Jigoshop Basic Bundle Shipping
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.20 ▼1.371.74 ▼0.0137.08 ▼8.12
Dashboard /wp-admin2,206 ▲185.86 ▲0.00109.76 ▲9.3839.78 ▼5.39
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0438.53 ▼1.1233.10 ▼3.28
Add New Post /wp-admin/post-new.php1,533 ▲1923.11 ▼0.65631.45 ▼33.7254.07 ▼9.09
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0692.86 ▼9.2041.88 ▼3.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jigoshop-basic-bundle-shipping/jigoshop-basic-bundle-shipping.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ecommerce, jigoshop, method, bundle, shipping

jigoshop-basic-bundle-shipping/jigoshop-basic-bundle-shipping.php Passed 13 tests

Analyzing the main PHP file in "Jigoshop Basic Bundle Shipping" version 1.0.2
70 characters long description:
Plugin to extend the Jigoshop shipping rates with a basic bundle rate.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin160 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14333160

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods120.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin