10% admin-ajax-php-no-thank-you

Code Review | Admin Ajax dot php? No Thank You!

WordPress plugin Admin Ajax dot php? No Thank You! scored 10% from 54 tests.

About plugin

  • Plugin page: admin-ajax-php-no...
  • Plugin version: 0.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 5.8.1
  • First release: Jun 28, 2017
  • Latest release: Oct 6, 2017
  • Number of updates: 11
  • Update frequency: every 9.1 days
  • Top authors: postpostmodern (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 746 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼1.074.61 ▼29.07
Dashboard /wp-admin1.78 ▼1.288.60 ▼37.90
Posts /wp-admin/edit.php1.79 ▼1.336.62 ▼38.95
Add New Post /wp-admin/post-new.php1.78 ▼3.655.07 ▼651.89
Media Library /wp-admin/upload.php1.78 ▼1.227.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.93 ▲0.488.73 ▼2.1247.87 ▼4.14
Dashboard /wp-admin2,983 ▲495.90 ▼0.05141.09 ▼17.90107.63 ▼9.48
Posts /wp-admin/edit.php2,749 ▲102.70 ▼0.0070.96 ▼1.2782.41 ▼11.64
Add New Post /wp-admin/post-new.php1,689 ▲618.88 ▲0.09381.09 ▲5.45114.76 ▼0.54
Media Library /wp-admin/upload.php1,817 ▲75.02 ▼0.02167.67 ▲16.63120.43 ▼1.34
admin-ajax.php /wp-admin/admin-ajax.php-no-thank-you260.900.169.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP17145258632
JavaScript18041
JSON20023

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 code0.33
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods715.91%
▷ Public methods4397.73%
▷ Protected methods00.00%
▷ Private methods12.27%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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