83% admin-management-xtended

Code Review | Admin Management Xtended

WordPress plugin Admin Management Xtended scored 83% from 54 tests.

About plugin

  • Plugin page: admin-management-...
  • Plugin version: 2.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9.9999
  • WordPress version: 5.8.1
  • First release: Apr 29, 2008
  • Latest release: Jan 29, 2022
  • Number of updates: 291
  • Update frequency: every 17.3 days
  • Top authors: Alphawolf (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

10,000+ active / 430,820 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼188.26ms] Passed 4 tests

An overview of server-side resources used by Admin Management Xtended
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0026.73 ▼1.82
Dashboard /wp-admin3.10 ▲0.0434.77 ▼5.93
Posts /wp-admin/edit.php3.22 ▲0.1133.74 ▼12.59
Add New Post /wp-admin/post-new.php5.47 ▲0.0374.66 ▼732.70
Media Library /wp-admin/upload.php3.05 ▲0.0524.36 ▲0.42

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin Management Xtended
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.58 ▼0.049.84 ▲3.6777.60 ▲3.85
Dashboard /wp-admin2,930 ▲316.12 ▼0.04117.28 ▼13.57164.45 ▼0.18
Posts /wp-admin/edit.php2,893 ▲1873.20 ▼0.0369.73 ▲4.88171.80 ▲35.76
Add New Post /wp-admin/post-new.php3,807 ▲6618.31 ▼0.72413.94 ▼61.04165.06 ▼1.56
Media Library /wp-admin/upload.php1,760 ▲115.58 ▲0.06125.25 ▼10.00178.21 ▼5.72

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 4 options in the database
    • ame_imgset
    • ame_version
    • ame_toggle_showinvisposts
    • ame_show_orderoptions

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 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/page-functions.php:130
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/admin-management-xtended/admin-management-xtended.php on line 61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-management-xtended/media-functions.php:100
    • > 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/post-functions.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-management-xtended/link-functions.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in admin-management-xtended/assets to your readme.txt
  • Tags: Please delete some tags, you are using 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

This is the main PHP file of "Admin Management Xtended" version 2.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (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,536 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PO File241,1142,6642,656

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions53100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.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
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/page_white_edit.png0.22KB0.16KB▼ 26.22%
img/set2/slug_edit.png0.27KB0.23KB▼ 12.09%
img/set1/publish.png0.21KB0.16KB▼ 25.57%
img/set2/nosticky.png1.22KB0.59KB▼ 51.44%