90% amount-left-free-shipping-woocommerce

Code Review | Free Shipping Over Amount Bar for WooCommerce

WordPress plugin Free Shipping Over Amount Bar for WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: amount-left-free-...
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Sep 25, 2023
  • Number of updates: 93
  • Update frequency: every 25.9 days
  • Top authors: algoritmika (56.99%)wpcodefactory (44.09%)

Code review

54 tests

User reviews

21 reviews

Install metrics

3,000+ active / 87,410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Free Shipping Over Amount Bar for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.16 ▼0.45
Dashboard /wp-admin3.31 ▲0.0150.03 ▲1.83
Posts /wp-admin/edit.php3.36 ▲0.0145.75 ▼4.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.11 ▼16.32
Media Library /wp-admin/upload.php3.23 ▲0.0037.42 ▲2.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Free Shipping Over Amount Bar for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.73 ▲0.121.66 ▲0.1542.49 ▼5.75
Dashboard /wp-admin2,209 ▲214.86 ▼0.17100.40 ▼6.7339.79 ▼4.28
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0636.78 ▼4.0332.03 ▼2.77
Add New Post /wp-admin/post-new.php1,514 ▼517.46 ▼5.78656.45 ▼39.1754.70 ▼10.72
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0597.04 ▼1.6441.42 ▼2.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: free shipping, left for free shipping, woocommerce, shipping

amount-left-free-shipping-woocommerce/left-to-free-shipping-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "Free Shipping Over Amount Bar for WooCommerce" version 2.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("amount-left-free-shipping-woocommerce.php" instead of "left-to-free-shipping-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,897 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP274491,0822,825
JSON30061
XML10011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes15.56%
Methods127
▷ Static methods1612.60%
▷ Public methods12598.43%
▷ Protected methods00.00%
▷ Private methods21.57%
Functions14
▷ Named functions857.14%
▷ Anonymous functions642.86%
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