89% wc-easypost-shipping

Code Review | Multi-Carrier EasyPost Shipping Methods & Address Validation for WooCommerce

WordPress plugin Multi-Carrier EasyPost Shipping Methods & Address Validation for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-easypost-shipping
  • Plugin version: 1.6.10
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 18, 2020
  • Latest release: Aug 21, 2023
  • Number of updates: 74
  • Update frequency: every 15.7 days
  • Top authors: oneteamsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /12,718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Multi-Carrier EasyPost Shipping Methods & Address Validation for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.10 ▼0.36
Dashboard /wp-admin3.31 ▼0.0344.30 ▼13.29
Posts /wp-admin/edit.php3.43 ▲0.0747.00 ▼4.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.91 ▼3.69
Media Library /wp-admin/upload.php3.24 ▲0.0136.01 ▼1.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Multi-Carrier EasyPost Shipping Methods & Address Validation 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 ▲5414.45 ▲0.141.74 ▲0.1238.81 ▼2.08
Dashboard /wp-admin2,209 ▲604.81 ▼0.8299.75 ▼3.3340.82 ▲0.37
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0237.84 ▼4.2134.22 ▼0.59
Add New Post /wp-admin/post-new.php1,543 ▲2418.30 ▼5.01634.87 ▼41.2156.71 ▼3.32
Media Library /wp-admin/upload.php1,391 ▲94.26 ▼0.0496.82 ▼10.8241.42 ▼6.68

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt might help

wc-easypost-shipping/wc-easypost-shipping.php 92% from 13 tests

The principal PHP file in "Multi-Carrier EasyPost Shipping Methods & Address Validation for WooCommerce" v. 1.6.10 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Plugin Name: A shorter plugin name is better (currently 76 characters long instead of max. 70)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin5,760 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,0932395,760

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity32.05
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes19
▷ Abstract classes526.32%
▷ Concrete classes1473.68%
▷ Final classes00.00%
Methods309
▷ Static methods20.65%
▷ Public methods17857.61%
▷ Protected methods12540.45%
▷ Private methods61.94%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/1TeamSoftware-logo.png14.55KB4.50KB▼ 69.05%
assets/images/1TeamSoftware-icon.png0.59KB0.75KB0.00%