83% admin-management-xtended

Code Review | Admin Management Xtended

WordPress plugin Admin Management Xtended scored83%from 54 tests.

About plugin

  • Plugin page: admin-management-...
  • Plugin version: 2.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3.99
  • WordPress version: 6.3.1
  • First release: Apr 29, 2008
  • Latest release: Jul 25, 2023
  • Number of updates: 297
  • Update frequency: every 18.7 days
  • Top authors: Alphawolf (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

7,000+ active /441,107 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼9.82ms] Passed 4 tests

Analyzing server-side resources used by Admin Management Xtended
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.30 ▼3.63
Dashboard /wp-admin3.63 ▲0.2846.38 ▼14.32
Posts /wp-admin/edit.php3.75 ▲0.4049.93 ▲4.32
Add New Post /wp-admin/post-new.php6.21 ▲0.3293.14 ▼15.45
Media Library /wp-admin/upload.php3.56 ▲0.3335.79 ▼5.88

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 112 new files
Database: no new tables, 10 new options
New WordPress options
ame_imgset
widget_theysaidso_widget
can_compress_scripts
ame_show_orderoptions
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
ame_toggle_showinvisposts
ame_version
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Management Xtended
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.186.06 ▲4.3939.64 ▼3.28
Dashboard /wp-admin2,206 ▲155.86 ▲0.99107.27 ▼9.7442.85 ▼0.09
Posts /wp-admin/edit.php2,240 ▲1542.50 ▲0.4843.97 ▲4.6265.33 ▲31.25
Add New Post /wp-admin/post-new.php1,533 ▲1323.09 ▼0.32678.95 ▼27.0258.96 ▲2.56
Media Library /wp-admin/upload.php1,397 ▲124.22 ▲0.0596.44 ▼9.8943.14 ▼2.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 10 options in the database
    • ame_show_orderoptions
    • can_compress_scripts
    • ame_imgset
    • theysaidso_admin_options
    • widget_recent-comments
    • ame_toggle_showinvisposts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • ame_version

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-management-xtended/post-functions.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/admin-management-xtended/admin-management-xtended.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-management-xtended/page-functions.php:130
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-management-xtended/link-functions.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-management-xtended/media-functions.php:100
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/admin-management-xtended/admin-management-xtended.php on line 61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in admin-management-xtended/assets to your readme.txt
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

admin-management-xtended/admin-management-xtended.php 92% from 13 tests

"Admin Management Xtended" version 2.4.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 430 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected5,612 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PO File241,1142,6642,656
JavaScript121677691,644
PHP62286241,156
CSS2136156

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
20 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/set1/nosticky.png2.80KB0.13KB▼ 95.43%
img/set1/comments_open.png0.21KB0.16KB▼ 24.41%
img/set1/publish.png0.21KB0.16KB▼ 25.57%
img/set1/page_white_edit.png0.22KB0.16KB▼ 26.22%
img/set2/comments_closed.png0.65KB0.83KB0.00%