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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.84 ▼0.44 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.54 ▼3.59 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.01 ▲2.44 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.64 ▼6.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.38 ▼1.18 | 1.69 ▼0.01 | 38.93 ▼4.07 |
Dashboard /wp-admin | 2,212 ▲24 | 5.14 ▲0.27 | 114.11 ▲9.94 | 46.41 ▲3.11 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.30 ▲0.28 | 38.24 ▲0.77 | 34.18 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 23.37 ▲0.35 | 686.55 ▲11.33 | 53.74 ▼5.16 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.42 ▲0.23 | 94.51 ▼19.13 | 40.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 110 | 177 | 302 |
JavaScript | 3 | 4 | 2 | 52 |
Markdown | 2 | 19 | 0 | 34 |
JSON | 1 | 0 | 0 | 25 |
CSS | 1 | 0 | 0 | 1 |
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 code | 0.41 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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