78% table-rate-shipping-rates

Code Review | Table Rate Shipping Method for WooCommerce by Shipped - WooCommerce Table Rate Shipping

WordPress plugin Table Rate Shipping Method for WooCommerce by Shipped - WooCommerce Table Rate Shipping scored78%from 54 tests.

About plugin

  • Plugin page: table-rate-shippi...
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Sep 19, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 37
  • Update frequency: every 11.2 days
  • Top authors: sundayfanz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,674 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼7.32ms] Passed 4 tests

This is a short check of server-side resources used by Table Rate Shipping Method for WooCommerce by Shipped - WooCommerce Table Rate Shipping
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.93 ▼2.98
Dashboard /wp-admin3.59 ▲0.2546.65 ▼15.37
Posts /wp-admin/edit.php3.70 ▲0.3449.04 ▼0.34
Add New Post /wp-admin/post-new.php6.18 ▲0.3091.09 ▼10.58
Media Library /wp-admin/upload.php3.52 ▲0.2939.46 ▲2.75

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Table Rate Shipping Method for WooCommerce by Shipped - WooCommerce Table Rate Shipping
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10113.66 ▼0.441.71 ▲0.0243.90 ▲1.14
Dashboard /wp-admin2,268 ▲945.40 ▼0.19106.96 ▲3.7141.91 ▼2.88
Posts /wp-admin/edit.php2,183 ▲832.51 ▲0.5647.90 ▲9.3936.06 ▼0.35
Add New Post /wp-admin/post-new.php1,599 ▲7323.91 ▲0.68689.28 ▲68.5434.13 ▼15.60
Media Library /wp-admin/upload.php1,476 ▲734.95 ▲0.76106.08 ▲10.9741.96 ▲1.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/controls/controls-simple-repeater/view-head.php
    • > /wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/optionpage/option-page-content-header.php
    • > /wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/optionpage/option-page-content-footer.php
  • 83× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/optionpage/option-page.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/controls/controls-repeater/view-section-body.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/optionpage/option-page-content-footer.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/controls/controls-textblock/view.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/controls/controls-rangeslider/view.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/optionpage/option-page-content-header.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/fields/fields-option-page.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/controls/controls-simple-repeater/view-section.php on line 31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/optionpage/option-page-aside-menu.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/table-rate-shipping-rates/framework/reon/inc/controls/controls-repeater/view-section-head.php:43

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

table-rate-shipping-rates/table-rate-shipping-rates.php Passed 13 tests

The primary PHP file in "Table Rate Shipping Method for WooCommerce by Shipped - WooCommerce Table Rate Shipping" version 1.2.5 is used by WordPress to initiate all plugin functionality
89 characters long description:
Create multiple shipping rates & handling fees based on product rules and cart conditions

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 plugin65,332 lines of code in 407 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1214,1621,90218,140
PHP1974,87919715,291
CSS325,92115414,294
Sass36811719,492
LESS18548716,888
PO File1451654950
Markdown2500277

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity12.39
▷ Minimum class complexity1.00
▷ Maximum class complexity184.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes151
▷ Abstract classes00.00%
▷ Concrete classes151100.00%
▷ Final classes00.00%
Methods792
▷ Static methods30238.13%
▷ Public methods58874.24%
▷ Protected methods70.88%
▷ Private methods19724.87%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
extensions/shipped/assets/images/aside_logo.png2.26KB0.66KB▼ 70.93%
extensions/shipped/assets/images/aside_bg.png14.75KB7.11KB▼ 51.81%