78% livemesh-table-rate-shipping

Code Review | Table Rate Shipping for WooCommerce

WordPress plugin Table Rate Shipping for WooCommerce scored 78% from 54 tests.

About plugin

  • Plugin page: livemesh-table-ra...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2022
  • Latest release: Jul 17, 2023
  • Number of updates: 15
  • Update frequency: every 32.5 days
  • Top authors: livemesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,000 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.34MB] [CPU: ▲22.82ms] 50% from 4 tests

A check of server-side resources used by Table Rate Shipping for WooCommerce
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,118.74ms on /wp-admin/admin.php?page=livemesh-table-rate-shipping)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.34MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.19 ▲5.7361.08 ▲20.42
Dashboard /wp-admin9.21 ▲5.9167.67 ▲7.89
Posts /wp-admin/edit.php9.21 ▲5.8676.47 ▲30.32
Add New Post /wp-admin/post-new.php9.76 ▲3.88121.67 ▲32.65
Media Library /wp-admin/upload.php9.21 ▲5.9871.78 ▲34.66
Table Rate Shipping for WooCommerce /wp-admin/admin.php?page=livemesh-table-rate-shipping9.211,118.74
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2156.40

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 261 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
fs_active_plugins
fs_accounts
db_upgraded
fs_debug_mode
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Table Rate Shipping for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.16 ▼1.211.63 ▼0.1227.33 ▼24.90
Dashboard /wp-admin2,227 ▲394.91 ▼0.93113.80 ▼12.7751.73 ▲6.41
Posts /wp-admin/edit.php2,113 ▲272.06 ▲0.0440.49 ▲5.7438.92 ▲4.19
Add New Post /wp-admin/post-new.php1,537 ▲1822.87 ▼0.29622.66 ▼53.4351.89 ▼4.48
Media Library /wp-admin/upload.php1,409 ▲214.20 ▲0.0296.46 ▲0.6344.56 ▼2.11
Table Rate Shipping for WooCommerce /wp-admin/admin.php?page=livemesh-table-rate-shipping9721.7123.6052.00
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0682.2025.3627.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/livemesh-table-rate-shipping/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • fs_active_plugins
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • fs_debug_mode
    • widget_recent-comments
    • widget_theysaidso_widget
    • fs_accounts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: table rate, conditional shipping, woocommerce shipping, woocommerce, table rate shipping

livemesh-table-rate-shipping/livemesh-table-rate-shipping.php 69% from 13 tests

The primary PHP file in "Table Rate Shipping for WooCommerce" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin39,263 lines of code in 211 files:
LanguageFilesBlank linesComment linesLines of code
PHP1799,19017,80436,416
PO File24768041,156
CSS172315576
Sass2837478
JavaScript99785422
Markdown1680214
SVG1001

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity47.48
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes100
▷ Abstract classes44.00%
▷ Concrete classes9696.00%
▷ Final classes11.04%
Methods1,489
▷ Static methods19813.30%
▷ Public methods1,09073.20%
▷ Protected methods191.28%
▷ Private methods38025.52%
Functions111
▷ Named functions111100.00%
▷ Anonymous functions00.00%
Constants154
▷ Global constants10769.48%
▷ Class constants4730.52%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/livemesh-table-rate-shipping.png3.12KB2.85KB▼ 8.43%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%