Benchmarks
Plugin footprint 65% 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: ▼1.90MB] [CPU: ▼56.42ms] Passed 4 tests
Server-side resources used by Wp Login with Ajax
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.16 ▼37.76 |
Dashboard /wp-admin | 2.11 ▼1.19 | 7.07 ▼45.03 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.54 ▼46.59 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.27 ▼96.31 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.44 ▼31.04 |
Wp Ajax Login Manage /wp-admin/options-general.php?page=wpajaxwithlogin_manage | 2.11 | 6.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Login with Ajax
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲103 | 13.43 ▼1.32 | 8.92 ▲6.25 | 41.51 ▼3.21 |
Dashboard /wp-admin | 2,204 ▲27 | 5.67 ▲0.01 | 89.71 ▼2.84 | 41.26 ▲1.85 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▼0.01 | 36.81 ▼5.64 | 33.39 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.19 ▼0.10 | 659.13 ▲19.61 | 53.90 ▲1.77 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.29 ▼0.03 | 101.17 ▼1.39 | 44.39 ▼2.53 |
Wp Ajax Login Manage /wp-admin/options-general.php?page=wpajaxwithlogin_manage | 928 | 1.89 | 30.04 | 66.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wlwa-ALogin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wpajaxwithlogin_manage
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wlwa-ALogin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-with-ajax/loginClass.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-with-ajax/loginClass.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-login-with-ajax/ajaxCall.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: login ajax form, ajax login, ajax, sidebar, redirect redirect...
wp-login-with-ajax/wp-login-with-ajax.php Passed 13 tests
The main file in "Wp Login with Ajax" v. 0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Add ajax login functionality without refreshing the 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
No dangerous file extensions were detected451 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 19 | 285 |
JavaScript | 1 | 12 | 0 | 87 |
CSS | 1 | 0 | 0 | 79 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected