94% woocommerce-free-shipping-remaining-cost

Code Review | Woocommerce Free Shipping Remaining Cost

WordPress plugin Woocommerce Free Shipping Remaining Cost scored 94% from 54 tests.

About plugin

  • Plugin page: woocommerce-free-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 5.8.1
  • First release: May 26, 2014
  • Latest release: May 29, 2014
  • Number of updates: 20
  • Update frequency: every 0.2 days
  • Top authors: borbismedia (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active / 2,735 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Woocommerce Free Shipping Remaining Cost
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.86 ▲8.75
Dashboard /wp-admin3.07 ▲0.0145.03 ▼0.59
Posts /wp-admin/edit.php3.12 ▲0.0143.84 ▼1.47
Add New Post /wp-admin/post-new.php5.43 ▼0.0188.65 ▼586.14
Media Library /wp-admin/upload.php3.01 ▲0.0132.99 ▲0.08

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce Free Shipping Remaining Cost
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,668 ▲7215.85 ▲0.048.41 ▲0.5062.29 ▲7.73
Dashboard /wp-admin2,970 ▲336.11 ▲0.17135.24 ▼13.83120.27 ▼0.32
Posts /wp-admin/edit.php2,736 ▼32.70 ▲0.0165.78 ▼4.8797.94 ▼0.52
Add New Post /wp-admin/post-new.php1,872 ▲26819.00 ▲0.22396.42 ▼2.52121.23 ▼3.58
Media Library /wp-admin/upload.php1,807 ▼04.97 ▼0.04155.55 ▼11.79118.11 ▼9.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-free-shipping-remaining-cost/plugin.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === woocommerce-free-shipping-remaining-cost === )
The official readme.txt is a good inspiration

woocommerce-free-shipping-remaining-cost/plugin.php 92% from 13 tests

The main file in "Woocommerce Free Shipping Remaining Cost" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-free-shipping-remaining-cost.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin53 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File24440
PHP1111013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin