83% easy-table-rate-shipping-for-woocommerce

Code Review | Easy Table Rate Shipping for WooCommmerce

WordPress plugin Easy Table Rate Shipping for WooCommmerce scored83%from 54 tests.

About plugin

  • Plugin page: easy-table-rate-s...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: Aug 8, 2022
  • Number of updates: 17
  • Update frequency: every 84.7 days
  • Top authors: aazztech (64.71%)armanul94 (35.29%)rafiq91 (11.76%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /8,779 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼2.41ms] Passed 4 tests

An overview of server-side resources used by Easy Table Rate Shipping for WooCommmerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.49 ▼4.53
Dashboard /wp-admin3.31 ▲0.0053.27 ▲1.38
Posts /wp-admin/edit.php3.36 ▲0.0050.59 ▼2.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.52 ▲5.91
Media Library /wp-admin/upload.php3.23 ▲0.0034.41 ▼4.37

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Table Rate Shipping for WooCommmerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.81 ▲0.431.72 ▲0.0940.17 ▲0.38
Dashboard /wp-admin2,221 ▲184.82 ▼0.09110.11 ▲3.3741.31 ▲1.31
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0239.75 ▼0.3635.97 ▼0.01
Add New Post /wp-admin/post-new.php1,550 ▼523.16 ▲4.94659.90 ▼22.6957.58 ▲0.30
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.0599.26 ▼13.3950.06 ▲1.58

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-table-rate-shipping-for-woocommerce/aazz-wc-main.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
5 plugin tags: free shipping, woocommerce shipping, table rate shipping, conditional shipping, woocommerce table rate shipping

easy-table-rate-shipping-for-woocommerce/aazz-wc-main.php 77% from 13 tests

This is the main PHP file of "Easy Table Rate Shipping for WooCommmerce" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-table-rate-shipping-for-woocommerce.php" instead of "aazz-wc-main.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0")
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,658 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP126708742,639
JavaScript12216
CSS1403

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.38
Average class complexity38.17
▷ Minimum class complexity8.00
▷ Maximum class complexity76.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods118
▷ Static methods43.39%
▷ Public methods8471.19%
▷ Protected methods65.08%
▷ Private methods2823.73%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin