90% wp-clean-admin-menu

Code Review | WP Clean Admin Menu

WordPress plugin WP Clean Admin Menu scored90%from 54 tests.

About plugin

  • Plugin page: wp-clean-admin-menu
  • Plugin version: 3.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 29, 2019
  • Latest release: Jun 22, 2023
  • Number of updates: 22
  • Update frequency: every 70.3 days
  • Top authors: raviry (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /20,625 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.73ms] Passed 4 tests

A check of server-side resources used by WP Clean Admin Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.65 ▼2.20
Dashboard /wp-admin3.43 ▲0.1341.95 ▼8.06
Posts /wp-admin/edit.php3.46 ▲0.1145.85 ▲1.47
Add New Post /wp-admin/post-new.php6.12 ▲0.2379.56 ▼16.04
Media Library /wp-admin/upload.php3.36 ▲0.1432.40 ▼0.63
WP Clean Admin Menu /wp-admin/options-general.php?page=wp-clean-admin-menu_options3.3237.39

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by WP Clean Admin Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.30 ▼1.081.69 ▼0.0040.36 ▲0.77
Dashboard /wp-admin2,226 ▲345.87 ▲0.9599.39 ▼11.4538.65 ▼4.31
Posts /wp-admin/edit.php2,112 ▲202.07 ▲0.0540.95 ▲1.5636.02 ▲3.08
Add New Post /wp-admin/post-new.php1,552 ▲2423.29 ▲4.79642.00 ▲30.2449.37 ▼8.05
Media Library /wp-admin/upload.php1,414 ▲234.26 ▲0.0397.54 ▼4.3242.38 ▼0.06
WP Clean Admin Menu /wp-admin/options-general.php?page=wp-clean-admin-menu_options2,0122.1126.4945.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: wp clean admin menu, wordpress clean admin menu, clean admin menu, wp hide admin menu

wp-clean-admin-menu/wp-clean-admin-menu.php Passed 13 tests

The main PHP script in "WP Clean Admin Menu" version 3.2.1 is automatically included on every request by WordPress
79 characters long description:
Simplify WordPress admin-menu by hiding the rarely used admin-menu items/links.

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
Everything looks great! No dangerous files found in this plugin484 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants00.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
1 PNG file occupies 0.43MB with 0.30MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wp-clean-admin-menu-pro.png442.30KB133.62KB▼ 69.79%