10% easy-shipping-rate

Code Review | Easy Shipping for Woocommerce

WordPress plugin Easy Shipping for Woocommerce scored10%from 54 tests.

About plugin

  • Plugin page: easy-shipping-rate
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.8
  • WordPress version: 6.3.1
  • First release: May 25, 2021
  • Latest release: Jul 21, 2022
  • Number of updates: 26
  • Update frequency: every 16.2 days
  • Top authors: digitcode0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /607 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/easy-shipping-rate/esraw.php+63
    require(wp-content/plugins/easy-shipping-rate/../woocommerce/woocommerce.php): failed to open stream: No such file or directory

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

This is a short check of server-side resources used by Easy Shipping for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.90 ▼1.30
Dashboard /wp-admin3.31 ▲0.0049.04 ▼1.95
Posts /wp-admin/edit.php3.36 ▲0.0045.80 ▼2.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.96 ▼13.31
Media Library /wp-admin/upload.php3.23 ▲0.0038.04 ▲0.98

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Easy Shipping for Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.19 ▼1.104.60 ▲2.1642.25 ▼3.85
Dashboard /wp-admin2,203 ▲124.87 ▼1.04103.83 ▼1.2239.68 ▼7.45
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0134.91 ▼1.1136.57 ▲1.00
Add New Post /wp-admin/post-new.php1,533 ▲1323.02 ▼0.16658.60 ▼54.0164.32 ▲10.51
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.08102.11 ▼19.1844.31 ▼4.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
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
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: "#"
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt might help

easy-shipping-rate/esraw.php 85% from 13 tests

"Easy Shipping for Woocommerce" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-shipping-rate.php" instead of "esraw.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)

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
No dangerous file extensions were detected6,765 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript511,3513865,114
PHP121985941,218
CSS2574433

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity21.00
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods511.63%
▷ Public methods3786.05%
▷ Protected methods00.00%
▷ Private methods613.95%
Functions11
▷ Named functions872.73%
▷ Anonymous functions327.27%
Constants25
▷ Global constants14.00%
▷ Class constants2496.00%
▷ Public constants24100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected