84% remove-free-in-shipment-for-woocommerce

Code Review | Remove "Free" in shipment for WooCommerce

WordPress plugin Remove "Free" in shipment for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: remove-free-in-sh...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5
  • WordPress version: 6.3.1
  • First release: Feb 14, 2016
  • Latest release: Feb 12, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: YurchenkoEV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Remove "Free" in shipment for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.63 ▼2.25
Dashboard /wp-admin3.31 ▲0.0153.97 ▼2.04
Posts /wp-admin/edit.php3.36 ▲0.0057.10 ▲3.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.70 ▼18.27
Media Library /wp-admin/upload.php3.23 ▲0.0042.93 ▼1.36

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Remove "Free" in shipment for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.122.26 ▲0.6343.05 ▼5.07
Dashboard /wp-admin2,203 ▲155.84 ▼0.0499.10 ▲1.3839.34 ▼5.66
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0135.23 ▼2.9832.23 ▼5.45
Add New Post /wp-admin/post-new.php1,523 ▲423.19 ▼0.17646.64 ▼10.5961.80 ▼0.65
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0393.52 ▼28.6744.39 ▼3.39

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_filter() in wp-content/plugins/remove-free-in-shipment-for-woocommerce/woo-remove-free-in-ship.php:42

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === remove-free-in-shipment-for-woocommerce === )
Please take inspiration from this readme.txt

remove-free-in-shipment-for-woocommerce/woo-remove-free-in-ship.php 92% from 13 tests

"Remove "Free" in shipment for WooCommerce" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remove-free-in-shipment-for-woocommerce.php" instead of "woo-remove-free-in-ship.php")

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
Success! There were no dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192310

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods150.00%
▷ Protected methods150.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin