84% admin-menu-filter

Code Review | Admin Menu Filter

WordPress plugin Admin Menu Filter scored84%from 54 tests.

About plugin

  • Plugin page: admin-menu-filter
  • Plugin version: 0.2.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2019
  • Latest release: Jan 17, 2023
  • Number of updates: 12
  • Update frequency: every 97.0 days
  • Top authors: alejandro.moreno.mvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /718 total downloads


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.00MB] [CPU: ▼4.92ms] Passed 4 tests

An overview of server-side resources used by Admin Menu Filter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.51 ▼5.15
Dashboard /wp-admin3.31 ▲0.0143.04 ▼5.01
Posts /wp-admin/edit.php3.36 ▲0.0048.75 ▲1.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.91 ▼8.20
Media Library /wp-admin/upload.php3.23 ▲0.0032.09 ▼1.31

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin Menu Filter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.23 ▼1.521.71 ▼0.1643.86 ▼0.98
Dashboard /wp-admin2,194 ▲65.90 ▼0.00106.22 ▲5.4040.17 ▼3.78
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0241.70 ▲4.2334.81 ▼1.71
Add New Post /wp-admin/post-new.php1,548 ▲3123.43 ▲5.71669.52 ▲1.6555.89 ▲4.43
Media Library /wp-admin/upload.php1,379 ▼124.34 ▲0.13101.98 ▲2.0540.65 ▼1.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/admin-menu-filter/admin-menu-filter.php

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: menu, admin

admin-menu-filter/admin-menu-filter.php Passed 13 tests

The primary PHP file in "Admin Menu Filter" version 0.2.3 is used by WordPress to initiate all plugin functionality
54 characters long description:
Add filter functionallity on the left menu in WP Admin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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 constants1100.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
No PNG files were detected