Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/admin-ajax-php-no-thank-you/_plugin.php+13
Function create_function() is deprecated
Server metrics [RAM: ▼1.87MB] [CPU: ▼189.45ms] Passed 4 tests
An overview of server-side resources used by Admin Ajax dot php? No Thank You!
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼1.07 | 4.61 ▼29.07 |
Dashboard /wp-admin | 1.78 ▼1.28 | 8.60 ▼37.90 |
Posts /wp-admin/edit.php | 1.79 ▼1.33 | 6.62 ▼38.95 |
Add New Post /wp-admin/post-new.php | 1.78 ▼3.65 | 5.07 ▼651.89 |
Media Library /wp-admin/upload.php | 1.78 ▼1.22 | 7.57 ▼27.95 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Admin Ajax dot php? No Thank You!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.93 ▲0.48 | 8.73 ▼2.12 | 47.87 ▼4.14 |
Dashboard /wp-admin | 2,983 ▲49 | 5.90 ▼0.05 | 141.09 ▼17.90 | 107.63 ▼9.48 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.70 ▼0.00 | 70.96 ▼1.27 | 82.41 ▼11.64 |
Add New Post /wp-admin/post-new.php | 1,689 ▲6 | 18.88 ▲0.09 | 381.09 ▲5.45 | 114.76 ▼0.54 |
Media Library /wp-admin/upload.php | 1,817 ▲7 | 5.02 ▼0.02 | 167.67 ▲16.63 | 120.43 ▼1.34 |
admin-ajax.php /wp-admin/admin-ajax.php-no-thank-you | 26 | 0.90 | 0.16 | 9.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/admin-ajax-php-no-thank-you/_plugin.php+13
Function create_function() is deprecated
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/admin-ajax-php-no-thank-you/views/admin/options-general_footer.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/admin-ajax-php-no-thank-you/views/admin/options-general.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/admin-ajax-php-no-thank-you/_plugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/admin-ajax-php-no-thank-you/views/admin/options-general-enabled.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function Admin_Ajax\\get_option() in wp-content/plugins/admin-ajax-php-no-thank-you/lib/Admin_Ajax/No_Thank_You.php:71
- > PHP Notice
Undefined variable: version in wp-content/plugins/admin-ajax-php-no-thank-you/views/admin/options-general_footer.php on line 1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin-ajax.php-no-thank-you
- > Network (severe)
wp-admin/admin-ajax.php-no-thank-you - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
3 plugin tags: admin-ajaxphp, ajax, javascript
admin-ajax-php-no-thank-you/_plugin.php 85% from 13 tests
The principal PHP file in "Admin Ajax dot php? No Thank You!" v. 0.6.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("admin-ajax-php-no-thank-you.php" instead of "_plugin.php")
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
Good job! No executable or dangerous file extensions detected696 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 145 | 258 | 632 |
JavaScript | 1 | 8 | 0 | 41 |
JSON | 2 | 0 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review 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.33 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 7 | 15.91% |
▷ Public methods | 43 | 97.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.27% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
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
PNG images were not found in this plugin