84% woocommerce-free-shipping-to-the-lower-48-states

Code Review | WooCommerce - Free Shipping to Lower 48

WordPress plugin WooCommerce - Free Shipping to Lower 48 scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-free-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2015
  • Latest release: Apr 24, 2015
  • Number of updates: 7
  • Update frequency: every 32.7 days
  • Top authors: DunfordEnterprises (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /982 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.09ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce - Free Shipping to Lower 48
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0238.43 ▼3.38
Dashboard /wp-admin3.32 ▲0.0145.58 ▼0.59
Posts /wp-admin/edit.php3.37 ▲0.0148.08 ▲0.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.81 ▼12.60
Media Library /wp-admin/upload.php3.24 ▲0.0135.54 ▲2.36

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce - Free Shipping to Lower 48
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.77 ▲0.321.61 ▼0.5937.73 ▼11.34
Dashboard /wp-admin2,203 ▲185.79 ▼0.03101.41 ▼1.0238.12 ▼5.87
Posts /wp-admin/edit.php2,086 ▼32.03 ▼0.0239.62 ▼2.7535.06 ▼2.05
Add New Post /wp-admin/post-new.php1,533 ▲1623.41 ▲5.83658.81 ▲47.3562.26 ▲4.32
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0492.89 ▼14.4042.89 ▼0.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-free-shipping-to-the-lower-48-states/woocommerce-freeshipto48.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === woocommerce-free-shipping-to-the-lower-48-states === )
You can look at the official readme.txt

woocommerce-free-shipping-to-the-lower-48-states/woocommerce-freeshipto48.php 92% from 13 tests

"WooCommerce - Free Shipping to Lower 48" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-free-shipping-to-the-lower-48-states.php" instead of "woocommerce-freeshipto48.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1154434

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
No PNG files were detected