90% woo-free-shipping-bar

Code Review | Free Shipping Bar for WooCommerce

WordPress plugin Free Shipping Bar for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-free-shipping...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2017
  • Latest release: Sep 29, 2023
  • Number of updates: 74
  • Update frequency: every 32.3 days
  • Top authors: mrt3vn (45.95%)thanhtd (25.68%)dragonlord47 (13.51%)kimvt1991 (13.51%)vietmike (6.76%)

Code review

54 tests

User reviews

39 reviews

Install metrics

2,000+ active /60,414 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Free Shipping Bar for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.74 ▼2.41
Dashboard /wp-admin3.31 ▼0.0443.10 ▼18.11
Posts /wp-admin/edit.php3.36 ▲0.0042.92 ▼9.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.35 ▼15.79
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▼4.45

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
wfspb-param
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Free Shipping Bar for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲7213.16 ▼1.221.89 ▼0.2140.38 ▼3.70
Dashboard /wp-admin2,206 ▲244.87 ▼1.03104.47 ▼8.4041.80 ▼5.93
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0738.37 ▼2.9333.43 ▼9.34
Add New Post /wp-admin/post-new.php1,534 ▲1523.15 ▼0.04696.90 ▲11.8851.81 ▼6.21
Media Library /wp-admin/upload.php1,379 ▼94.15 ▼0.0298.62 ▼76.3544.38 ▼14.86

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

woo-free-shipping-bar/woo-free-shipping-bar.php Passed 13 tests

"Free Shipping Bar for WooCommerce" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Display the total amounts of customer to reach minimum order amount Free Shipping system.

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
No dangerous file extensions were detected10,647 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript144452516,803
PHP53172742,431
SVG203604
CSS179999594
PO File186112215

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity51.17
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity5.85
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods62
▷ Static methods23.23%
▷ Public methods5893.55%
▷ Protected methods23.23%
▷ Private methods23.23%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-cancel.png0.59KB0.52KB▼ 12.27%
assets/images/position-top.png1.63KB0.98KB▼ 39.89%
assets/images/progress-style2.png6.57KB2.32KB▼ 64.75%
assets/images/free-delivery.png6.58KB3.02KB▼ 54.07%
assets/images/progress-style1.png6.12KB2.00KB▼ 67.32%