88% wc-confirm-shipping-address-before-placing-order

Code Review | WooCommerce - Confirm Shipping Address

WordPress plugin WooCommerce - Confirm Shipping Address scored88%from 54 tests.

About plugin

  • Plugin page: wc-confirm-shippi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2023
  • Latest release: Mar 17, 2023
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: renstillmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /156 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.01MB] [CPU: ▼5.19ms] Passed 4 tests

An overview of server-side resources used by WooCommerce - Confirm Shipping Address
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.37 ▲0.74
Dashboard /wp-admin3.32 ▲0.0151.04 ▲2.77
Posts /wp-admin/edit.php3.43 ▲0.0744.96 ▼6.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.91 ▼15.54
Media Library /wp-admin/upload.php3.24 ▲0.0138.69 ▲0.63

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WooCommerce - Confirm Shipping Address: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.101.69 ▼0.0743.32 ▲1.27
Dashboard /wp-admin2,195 ▲185.53 ▼0.1391.14 ▲0.1241.31 ▲0.38
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0033.10 ▼7.5135.66 ▼1.95
Add New Post /wp-admin/post-new.php1,526 ▼023.34 ▲0.17684.72 ▼10.7753.46 ▼5.79
Media Library /wp-admin/upload.php1,391 ▼64.25 ▲0.03106.44 ▲0.5843.30 ▼3.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wc-confirm-shipping-address-before-placing-order === )
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

wc-confirm-shipping-address-before-placing-order/wc-confirm-shipping-address-before-placing-order.php 69% from 13 tests

The principal PHP file in "WooCommerce - Confirm Shipping Address" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/i18n/languages/")
  • Description: The description should be shorter than 140 characters (currently 151 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "4.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected573 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1328350
JavaScript1018112
CSS100111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity107.00
▷ Minimum class complexity107.00
▷ Maximum class complexity107.00
Average method complexity6.89
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods18
▷ Static methods211.11%
▷ Public methods1372.22%
▷ Protected methods211.11%
▷ Private methods316.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin