Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼135.80ms] Passed 4 tests
Analyzing server-side resources used by WP AJAX Login and Register
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 38.15 ▲14.66 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.81 ▼0.62 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 71.60 ▲22.99 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 107.71 ▼555.20 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.15 ▼2.04 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP AJAX Login and Register
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,861 ▲289 | 16.49 ▲1.14 | 18.91 ▲9.23 | 49.04 ▼0.25 |
Dashboard /wp-admin | 2,971 ▲40 | 5.94 ▲0.01 | 150.70 ▼9.95 | 127.31 ▼4.90 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.71 ▼0.00 | 77.25 ▲7.74 | 109.31 ▲14.79 |
Add New Post /wp-admin/post-new.php | 1,680 ▼3 | 18.78 ▲0.08 | 379.11 ▼0.63 | 113.19 ▲1.90 |
Media Library /wp-admin/upload.php | 1,808 ▲1 | 5.00 ▼0.04 | 160.37 ▲6.33 | 125.76 ▲5.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-ajax-login-and-register/admin/partials/wp-ajax-login-admin-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ajax-login-and-register/public/partials/wp-ajax-login-public-display.php:134
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Frontend appearance.) image not found
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-ajax-login-and-register ===
)
wp-ajax-login-and-register/wp-ajax-login.php 85% from 13 tests
This is the main PHP file of "WP AJAX Login and Register" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-ajax-login-and-register.php" instead of "wp-ajax-login.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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin750 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 197 | 595 | 395 |
CSS | 2 | 0 | 5 | 164 |
PO File | 1 | 36 | 43 | 97 |
JavaScript | 3 | 56 | 51 | 94 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 62.96KB | 23.71KB | ▼ 62.34% |