77% free-shipping-notification-woocommerce

Code Review | Free shipping bar WooCommerce, message, popup and alert or Free shipping progress bar

WordPress plugin Free shipping bar WooCommerce, message, popup and alert or Free shipping progress bar scored77%from 54 tests.

About plugin

  • Plugin page: free-shipping-not...
  • Plugin version: 2.1.67
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.0
  • WordPress version: 6.3.1
  • First release: Apr 23, 2019
  • Latest release: Nov 29, 2023
  • Number of updates: 218
  • Update frequency: every 7.7 days
  • Top authors: rajeshsingh520 (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

200+ active /43,561 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.62ms] Passed 4 tests

A check of server-side resources used by Free shipping bar WooCommerce, message, popup and alert or Free shipping progress bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.17 ▼7.80
Dashboard /wp-admin3.32 ▲0.0246.12 ▼4.01
Posts /wp-admin/edit.php3.37 ▲0.0147.70 ▲0.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.43 ▼6.47
Media Library /wp-admin/upload.php3.24 ▲0.0132.29 ▼0.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Free shipping bar WooCommerce, message, popup and alert or Free shipping progress bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲6014.34 ▲0.001.65 ▼0.0337.04 ▼6.79
Dashboard /wp-admin2,201 ▲295.66 ▼0.0197.20 ▼30.7043.74 ▼0.59
Posts /wp-admin/edit.php2,107 ▲251.94 ▼0.0441.01 ▲4.8938.48 ▲2.03
Add New Post /wp-admin/post-new.php1,532 ▲622.91 ▼0.23648.40 ▼27.4061.20 ▼0.34
Media Library /wp-admin/upload.php1,403 ▼04.16 ▼0.0297.31 ▲0.8843.72 ▲2.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/free-shipping-notification-woocommerce/includes/pisol.class.form.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/free-shipping-notification-woocommerce/admin/class-pisol-fsnw-cart-checkout.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-shipping-notification-woocommerce/includes/compatible-plugin-message.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-shipping-notification-woocommerce/includes/includes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/free-shipping-notification-woocommerce/public/class-cart-checkout-progress.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/free-shipping-notification-woocommerce/includes/banner-sample.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-shipping-notification-woocommerce/includes/conflict-fixer.php:5

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 83% from 29 tests

readme.txt 81% 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:
  • Donate link: Invalid URI found ("piwebsolution.com")
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #2, #3, #4, #6, #7, #9 in free-shipping-notification-woocommerce/assets to your readme.txt
The official readme.txt is a good inspiration

free-shipping-notification-woocommerce/pisol-fsnw.php 85% from 13 tests

The main PHP script in "Free shipping bar WooCommerce, message, popup and alert or Free shipping progress bar" version 2.1.67 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("free-shipping-notification-woocommerce.php" instead of "pisol-fsnw.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
No dangerous file extensions were detected15,978 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
CSS32,053209,443
SVG723664,215
PHP276672682,143
JavaScript43848177

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.95
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods142
▷ Static methods85.63%
▷ Public methods13494.37%
▷ Protected methods00.00%
▷ Private methods85.63%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants4
▷ Global constants4100.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
5 PNG files occupy 0.30MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/pi.png1.48KB1.11KB▼ 24.83%
admin/img/pi-web-solution.png21.25KB9.42KB▼ 55.67%
admin/img/close.png4.32KB3.39KB▼ 21.57%
includes/background.png74.27KB26.29KB▼ 64.60%
public/img/free-delivery.png200.80KB107.97KB▼ 46.23%