89% easyship-woocommerce-shipping-rates

Code Review | Easyship WooCommerce Shipping Rates

WordPress plugin Easyship WooCommerce Shipping Rates scored89%from 54 tests.

About plugin

  • Plugin page: easyship-woocomme...
  • Plugin version: 0.9.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Nov 10, 2023
  • Number of updates: 112
  • Update frequency: every 21.8 days
  • Top authors: goeasyship (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

1,000+ active /49,715 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Easyship WooCommerce Shipping Rates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.41 ▼5.90
Dashboard /wp-admin3.32 ▼0.0344.69 ▼12.71
Posts /wp-admin/edit.php3.37 ▲0.0144.75 ▲0.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.44 ▼1.89
Media Library /wp-admin/upload.php3.24 ▲0.0137.51 ▲6.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easyship WooCommerce Shipping Rates
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5014.67 ▲0.031.61 ▼0.1838.91 ▼4.34
Dashboard /wp-admin2,205 ▲275.62 ▼0.0093.15 ▼16.4442.66 ▼1.02
Posts /wp-admin/edit.php2,107 ▲71.96 ▼0.0040.74 ▲0.5636.51 ▲2.52
Add New Post /wp-admin/post-new.php1,541 ▲1524.94 ▲1.82652.95 ▲8.2866.26 ▲16.55
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.04113.38 ▲13.3546.42 ▲2.63

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% 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 need to be fixed:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Share your Easyship access token to activate) image missing
Please take inspiration from this readme.txt

easyship-woocommerce-shipping-rates/easyship-shipping-rates.php 77% from 13 tests

"Easyship WooCommerce Shipping Rates" version 0.9.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easyship-woocommerce-shipping-rates.php" instead of "easyship-shipping-rates.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "2.4.0")

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
Good job! No executable or dangerous file extensions detected1,181 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9250560994
PO File13751143
JavaScript17244

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.29
▷ Minimum class complexity2.00
▷ Maximum class complexity60.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods54
▷ Static methods611.11%
▷ Public methods2953.70%
▷ Protected methods2240.74%
▷ Private methods35.56%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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