89% advanced-easy-shipping-for-wc-lite

Code Review | Advanced Easy Shipping For WooCommerce Lite

WordPress plugin Advanced Easy Shipping For WooCommerce Lite scored 89% from 54 tests.

About plugin

  • Plugin page: advanced-easy-shi...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 5.9.2
  • First release: Jun 16, 2020
  • Latest release: Jun 28, 2021
  • Number of updates: 15
  • Update frequency: every 25.1 days
  • Top authors: idomit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 441 total downloads


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.02MB] [CPU: ▼294.23ms] Passed 4 tests

Analyzing server-side resources used by Advanced Easy Shipping For WooCommerce Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.68 ▲2.94
Dashboard /wp-admin3.41 ▲0.0032.52 ▼1.77
Posts /wp-admin/edit.php3.64 ▲0.0036.24 ▼3.05
Add New Post /wp-admin/post-new.php6.91 ▼0.09100.25 ▼1,173.43
Media Library /wp-admin/upload.php3.29 ▲0.0026.18 ▲1.35

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Easy Shipping For WooCommerce Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲4316.01 ▲0.356.27 ▼0.072.62 ▼0.23
Dashboard /wp-admin2,888 ▲306.14 ▲0.05119.68 ▼17.59153.21 ▼7.63
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0166.07 ▼0.76139.96 ▼11.93
Add New Post /wp-admin/post-new.php1,661 ▼3516.10 ▼4.93399.03 ▼57.86162.58 ▲3.26
Media Library /wp-admin/upload.php1,698 ▼35.48 ▼0.05143.93 ▼1.67184.30 ▼3.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • asw_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser issues were found


Plugin configuration 86% from 29 tests

readme.txt Passed 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
9 plugin tags: woocommerce shipping, shipping, cart shipping, table rate shipping, extra shipping...

advanced-easy-shipping-for-wc-lite/advanced-easy-shipping-for-wc.php 69% from 13 tests

The main PHP script in "Advanced Easy Shipping For WooCommerce Lite" version 1.4 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 229 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-easy-shipping-for-wc-lite.php" instead of "advanced-easy-shipping-for-wc.php")
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.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 detected4,359 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File23001,158660

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity63.00
▷ Minimum class complexity8.00
▷ Maximum class complexity136.00
Average method complexity5.96
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods1013.33%
▷ Public methods7194.67%
▷ Protected methods34.00%
▷ Private methods11.33%
▷ Named functions21100.00%
▷ Anonymous functions00.00%
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected