89% post-checkout-registration-for-woocommerce

Code Review | One-Click Post Checkout Registration for WooCommerce

WordPress plugin One-Click Post Checkout Registration for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: post-checkout-reg...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2021
  • Latest release: Nov 12, 2023
  • Number of updates: 9
  • Update frequency: every 98.3 days
  • Top authors: alikhallad (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /1,079 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.07MB] [CPU: ▼8.96ms] Passed 4 tests

An overview of server-side resources used by One-Click Post Checkout Registration for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.93 ▼0.5417.92 ▼30.03
Dashboard /wp-admin3.40 ▲0.0945.47 ▼3.45
Posts /wp-admin/edit.php3.51 ▲0.1545.13 ▲0.65
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.12 ▼2.99
Media Library /wp-admin/upload.php3.32 ▲0.0834.78 ▲0.64

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

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

Browser metrics Passed 4 tests

A check of browser resources used by One-Click Post Checkout Registration for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,445 ▼31714.30 ▼0.460.50 ▼1.1516.54 ▼27.29
Dashboard /wp-admin2,195 ▲285.69 ▲0.0989.41 ▼25.5641.23 ▼1.00
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0139.46 ▲3.3633.58 ▼5.33
Add New Post /wp-admin/post-new.php1,526 ▼422.66 ▼0.52686.63 ▲3.7760.94 ▲3.22
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.0297.98 ▼0.7143.07 ▲0.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce marketing, post-checkout registration, woocommerce registration, woocommerce abandonment

post-checkout-registration-for-woocommerce/wc-post-checkout-registration.php 85% from 13 tests

The main PHP file in "One-Click Post Checkout Registration for WooCommerce" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-checkout-registration-for-woocommerce.php" instead of "wc-post-checkout-registration.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin418 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3116213418

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1470.00%
▷ Protected methods420.00%
▷ Private methods210.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected