83% ajax-admin

Code Review | Ajax Admin

WordPress plugin Ajax Admin scored83%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: 6.3.1
  • 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,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.28ms] Passed 4 tests

This is a short check of server-side resources used by Ajax Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.98 ▼6.40
Dashboard /wp-admin3.33 ▲0.0347.36 ▼7.49
Posts /wp-admin/edit.php3.38 ▲0.0348.25 ▼0.22
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.62 ▲1.01
Media Library /wp-admin/upload.php3.25 ▲0.0240.10 ▲6.72

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ajax Admin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.141.65 ▼0.2346.76 ▲4.15
Dashboard /wp-admin2,223 ▲565.72 ▲0.0496.12 ▼15.3443.34 ▼1.26
Posts /wp-admin/edit.php2,125 ▲252.32 ▲0.2941.42 ▲2.6434.18 ▼4.75
Add New Post /wp-admin/post-new.php1,540 ▲1122.97 ▼0.41675.69 ▲2.7452.57 ▼9.53
Media Library /wp-admin/upload.php1,422 ▲254.30 ▲0.17106.38 ▲5.5045.22 ▲2.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ajax-admin/uninstall.php
    • > /wp-content/plugins/ajax-admin/settings.php
    • > /wp-content/plugins/ajax-admin/ajax-admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (30 tag instead of maximum 10)
The official readme.txt might help

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

The primary PHP file in "Ajax Admin" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin185 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4402868
CSS212961
JavaScript212828
PO File17928

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin