89% pw-woocommerce-exclude-free-shipping

Code Review | PW WooCommerce Exclude Free Shipping

WordPress plugin PW WooCommerce Exclude Free Shipping scored89%from 54 tests.

About plugin

  • Plugin page: pw-woocommerce-ex...
  • Plugin version: 1.35
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 3, 2017
  • Latest release: Oct 25, 2023
  • Number of updates: 49
  • Update frequency: every 50.1 days
  • Top authors: pimwick (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /28,018 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.09ms] Passed 4 tests

Server-side resources used by PW WooCommerce Exclude Free Shipping
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.52 ▼1.62
Dashboard /wp-admin3.34 ▼0.0144.33 ▼16.58
Posts /wp-admin/edit.php3.39 ▲0.0342.84 ▼3.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.98 ▼20.09
Media Library /wp-admin/upload.php3.26 ▲0.0333.94 ▼8.48

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

PW WooCommerce Exclude Free Shipping: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.26 ▼0.091.58 ▼0.2241.09 ▲0.36
Dashboard /wp-admin2,192 ▲125.55 ▼0.0685.90 ▼0.4837.19 ▼4.93
Posts /wp-admin/edit.php2,100 ▲182.02 ▼0.0234.31 ▼3.0733.28 ▼2.78
Add New Post /wp-admin/post-new.php1,531 ▲523.30 ▲0.30651.39 ▼9.4954.26 ▼1.22
Media Library /wp-admin/upload.php1,394 ▼64.24 ▲0.0598.83 ▼21.9244.14 ▼11.31

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
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
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

pw-woocommerce-exclude-free-shipping/pw-woocommerce-exclude-free-shipping.php 92% from 13 tests

"PW WooCommerce Exclude Free Shipping" version 1.35's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.5" instead of "4.0")

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 detected142 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14529142

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin