93% ajax-admin

Code Review | Ajax Admin

WordPress plugin Ajax Admin scored 93% from 54 tests.

About plugin

  • Plugin page: ajax-admin
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.4
  • WordPress version: 5.9.2
  • First release: Mar 1, 2016
  • Latest release: Feb 11, 2018
  • Number of updates: 8
  • Update frequency: every 89.0 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 2,048 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼297.20ms] Passed 4 tests

A check of server-side resources used by Ajax Admin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0356.33 ▲4.12
Dashboard /wp-admin3.44 ▲0.0333.61 ▼0.04
Posts /wp-admin/edit.php3.67 ▲0.0337.67 ▼0.02
Add New Post /wp-admin/post-new.php6.91 ▼0.0692.92 ▼1,189.78
Media Library /wp-admin/upload.php3.32 ▲0.0224.91 ▲1.05

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Ajax Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲7116.01 ▲0.316.16 ▼0.412.47 ▲0.29
Dashboard /wp-admin2,918 ▲576.31 ▲0.12127.86 ▼9.22159.75 ▲4.08
Posts /wp-admin/edit.php2,717 ▲263.28 ▲0.0460.12 ▼3.12137.85 ▼0.92
Add New Post /wp-admin/post-new.php1,675 ▲716.02 ▼3.84428.28 ▲41.01149.07 ▼11.71
Media Library /wp-admin/upload.php1,727 ▲325.65 ▲0.18141.27 ▼8.04182.72 ▼2.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ajax-admin/settings.php
    • > /wp-content/plugins/ajax-admin/ajax-admin.php
    • > /wp-content/plugins/ajax-admin/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

ajax-admin/ajax-admin.php 85% from 13 tests

This is the main PHP file of "Ajax Admin" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

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
No dangerous file extensions were detected185 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4402868
CSS212961
JavaScript212828
PO File17928

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.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin