99% woo-product-shipping-table

Code Review | Woocommerce Product Shipping Table Rates

WordPress plugin Woocommerce Product Shipping Table Rates scored 99% from 54 tests.

About plugin

  • Plugin page: woo-product-shipp...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.3
  • WordPress version: 5.9.2
  • First release: Oct 25, 2017
  • Latest release: Jan 24, 2020
  • Number of updates: 35
  • Update frequency: every 23.5 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,990 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼295.50ms] Passed 4 tests

Analyzing server-side resources used by Woocommerce Product Shipping Table Rates
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.36 ▲0.1663.43 ▼10.31
Dashboard /wp-admin4.18 ▲0.1537.83 ▼3.15
Posts /wp-admin/edit.php4.48 ▲0.1560.99 ▲17.62
Add New Post /wp-admin/post-new.php7.71 ▲0.12101.63 ▼1,173.91
Media Library /wp-admin/upload.php4.13 ▲0.1532.15 ▲5.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Product Shipping Table Rates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1015.98 ▲0.826.32 ▼0.572.23 ▼0.11
Dashboard /wp-admin2,892 ▲386.11 ▼0.06121.85 ▼21.60160.44 ▲1.76
Posts /wp-admin/edit.php2,688 ▼03.23 ▲0.0168.02 ▲5.87182.17 ▲34.79
Add New Post /wp-admin/post-new.php1,758 ▲9721.99 ▲5.60461.81 ▲45.14181.28 ▼45.37
Media Library /wp-admin/upload.php1,698 ▲35.44 ▼0.05144.26 ▼2.82195.49 ▼46.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 83% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

woo-product-shipping-table/main.php 69% from 13 tests

This is the main PHP file of "Woocommerce Product Shipping Table Rates" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-shipping-table.php" instead of "main.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.6.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 740 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin5,997 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity104.00
▷ Minimum class complexity104.00
▷ Maximum class complexity104.00
Average method complexity8.36
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There were not PNG files found in your plugin