84% add-free-shipping-text-on-cart-page

Code Review | Add Free shipping text For WooCommerce Cart

WordPress plugin Add Free shipping text For WooCommerce Cart scored84%from 54 tests.

About plugin

  • Plugin page: add-free-shipping...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Dec 11, 2021
  • Number of updates: 9
  • Update frequency: every 76.6 days
  • Top authors: kinjaldalwadi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /617 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.41ms] Passed 4 tests

Server-side resources used by Add Free shipping text For WooCommerce Cart
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.46 ▼0.45
Dashboard /wp-admin3.31 ▲0.0146.56 ▼6.76
Posts /wp-admin/edit.php3.36 ▲0.0045.95 ▼4.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.48 ▼10.11
Media Library /wp-admin/upload.php3.23 ▲0.0036.54 ▲1.01

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Add Free shipping text For WooCommerce Cart
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.74 ▼0.641.63 ▼0.4039.21 ▼3.31
Dashboard /wp-admin2,208 ▲175.77 ▼0.0899.14 ▼24.3339.61 ▼3.88
Posts /wp-admin/edit.php2,094 ▲51.96 ▼0.0638.18 ▲2.0636.15 ▲0.70
Add New Post /wp-admin/post-new.php1,419 ▼10916.36 ▼1.68506.22 ▼146.6828.82 ▼23.75
Media Library /wp-admin/upload.php1,390 ▼14.18 ▼0.0499.26 ▼1.4739.88 ▼5.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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 | 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/add-free-shipping-text-on-cart-page/woocommerce-add-free-shipping-text-cart.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
Please fix the following attributes: The official readme.txt might help

add-free-shipping-text-on-cart-page/woocommerce-add-free-shipping-text-cart.php 92% from 13 tests

The primary PHP file in "Add Free shipping text For WooCommerce Cart" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("add-free-shipping-text-on-cart-page.php" instead of "woocommerce-add-free-shipping-text-cart.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221412

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin