94% admin-menus-fixed

Code Review | Admin Menus Fixed

WordPress plugin Admin Menus Fixed scored 94% from 54 tests.

About plugin

  • Plugin page: admin-menus-fixed
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.6
  • WordPress version: 5.9.2
  • First release: Mar 7, 2011
  • Latest release: Jun 23, 2018
  • Number of updates: 136
  • Update frequency: every 19.6 days
  • Top authors: spherical (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 17,790 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Admin Menus Fixed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0160.94 ▲4.91
Dashboard /wp-admin3.41 ▲0.0134.79 ▲1.90
Posts /wp-admin/edit.php3.64 ▲0.0138.80 ▲1.63
Add New Post /wp-admin/post-new.php6.89 ▼0.0897.67 ▼1,202.47
Media Library /wp-admin/upload.php3.30 ▲0.0024.02 ▼6.11

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Menus Fixed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,816 ▲9416.01 ▲0.846.12 ▲0.292.66 ▲0.59
Dashboard /wp-admin2,916 ▲626.17 ▼0.04118.75 ▼57.25189.66 ▲17.24
Posts /wp-admin/edit.php2,715 ▲273.27 ▲0.0361.56 ▼0.35137.86 ▼57.65
Add New Post /wp-admin/post-new.php1,665 ▲416.32 ▼0.01423.76 ▼5.90193.41 ▲13.33
Media Library /wp-admin/upload.php1,719 ▲275.57 ▲0.03147.30 ▲8.73234.18 ▲52.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/admin-menus-fixed/fixedadminmenus.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

admin-menus-fixed/fixedadminmenus.php 92% from 13 tests

The entry point to "Admin Menus Fixed" version 1.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-menus-fixed.php" instead of "fixedadminmenus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin92 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.74
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin