Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/login-with-ajax/lwa-install.php+39
Undefined index: notification_subject
Server metrics [RAM: ▲0.47MB] [CPU: ▼4.31ms] Passed 4 tests
An overview of server-side resources used by Login With Ajax
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 45.49 ▲3.79 |
Dashboard /wp-admin | 3.86 ▲0.56 | 54.93 ▼0.28 |
Posts /wp-admin/edit.php | 3.91 ▲0.56 | 49.22 ▼5.76 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 85.59 ▼13.78 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 37.48 ▲2.58 |
Login With Ajax /wp-admin/options-general.php?page=login-with-ajax | 3.80 | 36.89 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
lwa_version |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
lwa_data |
widget_theysaidso_widget |
widget_loginwithajaxwidget |
Browser metrics Passed 4 tests
Checking browser requirements for Login With Ajax
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲212 | 13.64 ▼0.71 | 9.23 ▲7.64 | 43.45 ▼1.24 |
Dashboard /wp-admin | 2,230 ▲56 | 5.70 ▲0.10 | 89.58 ▼1.84 | 42.66 ▲1.97 |
Posts /wp-admin/edit.php | 2,133 ▲36 | 2.14 ▲0.14 | 38.28 ▲1.79 | 33.70 ▲3.35 |
Add New Post /wp-admin/post-new.php | 6,396 ▲4,870 | 27.75 ▲4.24 | 872.76 ▲182.51 | 40.06 ▼16.03 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.29 ▼0.12 | 98.76 ▲2.15 | 44.07 ▼5.03 |
Login With Ajax /wp-admin/options-general.php?page=login-with-ajax | 2,204 | 2.41 | 53.13 | 87.60 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- lwa_version
- lwa_data
- widget_loginwithajaxwidget
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/login-with-ajax/templates/classic/login.php
- > /wp-content/plugins/login-with-ajax/templates/classic-vanilla/login.php
- > /wp-content/plugins/login-with-ajax/admin/settings/go-pro.php
- 37× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/login-with-ajax/login-with-ajax-widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/login-with-ajax/admin/settings/security.php:4
- > PHP Warning
Use of undefined constant LOGIN_WITH_AJAX_PATH - assumed 'LOGIN_WITH_AJAX_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/login-with-ajax/templates/classic/login.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function Login_With_AJAX\\add_action() in wp-content/plugins/login-with-ajax/admin/notices/admin-notices.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/login-with-ajax/widget/modal/widget_out.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Login_With_AJAX\\add_action() in wp-content/plugins/login-with-ajax/admin/notices/notices.php:266
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/login-with-ajax/templates/legacy-default/widget_in.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/login-with-ajax/templates/default/logged-in.php:10
- > PHP Notice
Undefined variable: lwa in wp-content/plugins/login-with-ajax/templates/modal/login.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'LoginWithAjax' not found in wp-content/plugins/login-with-ajax/templates/legacy-modal/widget_out.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
login-with-ajax/login-with-ajax.php Passed 13 tests
The primary PHP file in "Login With Ajax" version 4.1 is used by WordPress to initiate all plugin functionality
115 characters long description:
Ajax driven login widget. Customisable from within your template folder, and advanced settings from the admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin6,952 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 281 | 814 | 3,582 |
CSS | 10 | 122 | 697 | 1,760 |
Sass | 3 | 138 | 14 | 802 |
JavaScript | 9 | 42 | 121 | 693 |
SVG | 1 | 0 | 0 | 72 |
JSON | 2 | 0 | 0 | 43 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 51.22 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 139 | |
▷ Static methods | 77 | 55.40% |
▷ Public methods | 134 | 96.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.60% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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