Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼308.05ms] Passed 4 tests
Analyzing server-side resources used by Ajax Login/Register for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.25 | 77.75 ▲23.62 |
Dashboard /wp-admin | 3.58 ▲0.18 | 37.05 ▼0.38 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 43.96 ▲0.94 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.08 | 102.50 ▼1,201.23 |
Media Library /wp-admin/upload.php | 3.46 ▲0.17 | 25.96 ▼31.54 |
Ajax Login/Register /wp-admin/admin.php?page=ajax_login_register | 3.36 | 26.93 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax Login/Register for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,886 ▲132 | 16.34 ▲0.76 | 10.91 ▲5.26 | 19.96 ▲17.26 |
Dashboard /wp-admin | 2,895 ▲41 | 6.26 ▲0.11 | 116.31 ▼19.61 | 221.80 ▼17.22 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.37 ▲0.12 | 66.01 ▼7.42 | 140.59 ▼21.45 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 16.12 ▼0.21 | 426.44 ▼29.06 | 213.41 ▲50.10 |
Media Library /wp-admin/upload.php | 1,698 ▲7 | 5.53 ▼0.00 | 141.57 ▼9.76 | 247.46 ▲60.77 |
Ajax Login/Register /wp-admin/admin.php?page=ajax_login_register | 55 | 0.94 | 0.07 | 47.02 |
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 1 option in the database
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=ajax_login_register
- > Error in wp-content/plugins/woo-ajax-loginregister/woocommerce-ajax-login-register.php+121
Uncaught Error: Call to undefined function WC() in wp-content/plugins/woo-ajax-loginregister/woocommerce-ajax-login-register.php:121
Stack trace:
#0 wp-includes/class-wp-hook.php(307): Zorem_AJAX_Login_Register->wc_alr_enqueue()
#1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(474): WP_Hook->do_action()
#3 wp-admin/admin-header.php(118): do_action()
#4 wp-admin/admin.php(239): require_once('/var/www/wordpr...')
#5 {main}
thrown
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-ajax-loginregister/includes/views/alr_setting_tab.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=ajax_login_register
- > Network (severe)
wp-admin/admin.php?page=ajax_login_register - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in woo-ajax-loginregister/assets to your readme.txt
woo-ajax-loginregister/woocommerce-ajax-login-register.php 85% from 13 tests
The main file in "Ajax Login/Register for WooCommerce" v. 2.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("woo-ajax-loginregister.php" instead of "woocommerce-ajax-login-register.php")
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 plugin7,149 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 852 | 5,520 | 5,612 |
PHP | 5 | 144 | 144 | 823 |
JavaScript | 3 | 53 | 22 | 518 |
PO File | 3 | 56 | 83 | 196 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.21MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/backgrounds/stitched-wool.png | 15.58KB | 0.70KB | ▼ 95.51% |
assets/images/alr-logo.png | 19.93KB | 2.83KB | ▼ 85.79% |
assets/images/backgrounds/45-degree-fabric.png | 24.26KB | 5.58KB | ▼ 77.02% |
assets/images/input_checkbox_rtl.png | 1.21KB | 0.31KB | ▼ 74.47% |
assets/images/smswoo-icon.png | 23.49KB | 3.63KB | ▼ 84.57% |