Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/simple-ajax-auth/plugin.php+230
Methods with the same name as their class will not be constructors in a future version of PHP; simple_ajax_auth has a deprecated constructor
Server metrics [RAM: ▼2.24MB] [CPU: ▼358.21ms] Passed 4 tests
Analyzing server-side resources used by Simple Ajax Auth
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.40 | 8.02 ▼41.93 |
Dashboard /wp-admin | 2.15 ▼1.26 | 7.67 ▼26.42 |
Posts /wp-admin/edit.php | 2.15 ▼1.49 | 6.91 ▼33.28 |
Add New Post /wp-admin/post-new.php | 2.14 ▼4.83 | 6.71 ▼1,331.22 |
Media Library /wp-admin/upload.php | 2.15 ▼1.15 | 6.41 ▼18.86 |
Simple Ajax Auth /wp-admin/options-general.php?page=options-general.php_simple_ajax_auth | 2.15 | 7.30 |
Server storage [IO: ▲0.86MB] [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, 1 new option
New WordPress options |
---|
widget_simple_ajax_auth |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Ajax Auth
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.27 ▲0.59 | 6.15 ▲0.26 | 2.85 ▲0.24 |
Dashboard /wp-admin | 2,897 ▲36 | 5.98 ▼0.18 | 115.44 ▼26.56 | 155.51 ▼5.34 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.23 ▲0.01 | 64.50 ▲2.42 | 139.31 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,763 ▲5 | 22.59 ▲0.52 | 415.82 ▼8.72 | 160.88 ▲6.38 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.50 ▲0.00 | 143.39 ▼7.40 | 185.84 ▼6.25 |
Simple Ajax Auth /wp-admin/options-general.php?page=options-general.php_simple_ajax_auth | 1,989 | 3.16 | 63.38 | 157.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5409
The called constructor method for WP_Widget in simple_ajax_auth is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 1 option
- widget_simple_ajax_auth
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=options-general.php_simple_ajax_auth
- > User deprecated in wp-includes/functions.php+5409
The called constructor method for WP_Widget in simple_ajax_auth is deprecated since version 4.3.0! Use __construct() instead.
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-ajax-auth/plugin.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-ajax-auth/templates/ajax-auth.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
simple-ajax-auth/plugin.php 92% from 13 tests
"Simple Ajax Auth" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-ajax-auth.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected13,739 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 1,101 | 1,093 | 8,727 |
PHP | 4 | 443 | 1,392 | 2,302 |
CSS | 10 | 323 | 239 | 2,051 |
PO File | 4 | 276 | 352 | 659 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 194.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 380.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 131 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 128 | 97.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.29% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
25 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin-page-class/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
admin-page-class/images/edit.png | 1.54KB | 1.38KB | ▼ 10.34% |
admin-page-class/css/images/ui-icons_f6cf3b_256x240.png | 8.68KB | 4.11KB | ▼ 52.68% |
admin-page-class/css/images/ui-bg_glass_75_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 4.67% |
admin-page-class/css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |