94% admin-menu-search

Code Review | Admin Menu Search

WordPress plugin Admin Menu Search scored 94% from 54 tests.

About plugin

  • Plugin page: admin-menu-search
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Aug 18, 2019
  • Latest release: Aug 13, 2021
  • Number of updates: 15
  • Update frequency: every 48.4 days
  • Top authors: herchen (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active / 4,289 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by Admin Menu Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0152.48 ▼0.75
Dashboard /wp-admin3.41 ▲0.0132.37 ▼3.38
Posts /wp-admin/edit.php3.64 ▲0.0139.84 ▲2.41
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.73 ▼1,184.39
Media Library /wp-admin/upload.php3.30 ▼0.0023.48 ▼6.06

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

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

Browser metrics Passed 4 tests

Admin Menu Search: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲5516.01 ▲0.346.31 ▲0.112.08 ▼0.54
Dashboard /wp-admin2,906 ▲456.09 ▼0.10119.84 ▼16.03160.65 ▲0.42
Posts /wp-admin/edit.php2,705 ▲113.25 ▲0.0163.85 ▲1.28140.59 ▲0.66
Add New Post /wp-admin/post-new.php1,673 ▼116.73 ▼4.59410.25 ▼0.85153.92 ▼5.35
Media Library /wp-admin/upload.php1,712 ▲175.58 ▲0.11137.59 ▼26.22186.39 ▼22.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-menu-search/admin-menu-search.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: search admin menu, admin menu, menu, filter, admin menu search...

admin-menu-search/admin-menu-search.php 92% from 13 tests

The main file in "Admin Menu Search" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected41 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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 functions2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings