84% woocommerce-simple-registration

Code Review | Simple Registration for WooCommerce

WordPress plugin Simple Registration for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-simpl...
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 22, 2014
  • Latest release: Aug 25, 2023
  • Number of updates: 26
  • Update frequency: every 122.0 days
  • Top authors: adampickering (80.77%)Astoundify (15.38%)erdanish4 (11.54%)

Code review

54 tests

User reviews

16 reviews

Install metrics

8,000+ active /166,143 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.04MB] [CPU: ▼2.40ms] Passed 4 tests

An overview of server-side resources used by Simple Registration for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.84 ▼0.44
Dashboard /wp-admin3.35 ▲0.0443.54 ▼3.59
Posts /wp-admin/edit.php3.40 ▲0.0452.01 ▲2.44
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.64 ▼6.92
Media Library /wp-admin/upload.php3.27 ▲0.0436.57 ▲1.36

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Simple Registration for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.38 ▼1.181.69 ▼0.0138.93 ▼4.07
Dashboard /wp-admin2,212 ▲245.14 ▲0.27114.11 ▲9.9446.41 ▲3.11
Posts /wp-admin/edit.php2,098 ▲92.30 ▲0.2838.24 ▲0.7734.18 ▲3.67
Add New Post /wp-admin/post-new.php1,529 ▼423.37 ▲0.35686.55 ▲11.3353.74 ▼5.16
Media Library /wp-admin/upload.php1,397 ▲124.42 ▲0.2394.51 ▼19.1340.42 ▼6.34

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-simple-registration/includes/wc-social-login.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-simple-registration/includes/display-role-admin.php:4

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce register, woocommerce registration form, woocommerce, woocommerce registration, woocommerce form

woocommerce-simple-registration/woocommerce-simple-registration.php Passed 13 tests

"Simple Registration for WooCommerce" version 1.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
121 characters long description:
A simple plugin to add a [woocommerce_simple_registration] shortcode to display the registration form on a separate page.

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
Success! There were no dangerous files found in this plugin414 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP4110177302
JavaScript34252
Markdown219034
JSON10025
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity20.50
▷ Minimum class complexity9.00
▷ Maximum class complexity32.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin