84% clean-wp-admin-menu

Code Review | Clean WP Admin Menu

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

About plugin

  • Plugin page: clean-wp-admin-menu
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jan 8, 2016
  • Latest release: Jun 21, 2016
  • Number of updates: 7
  • Update frequency: every 23.6 days
  • Top authors: borantula (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active /8,100 total downloads

Benchmarks

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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.93ms] Passed 4 tests

An overview of server-side resources used by Clean WP Admin Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.07 ▲5.66
Dashboard /wp-admin3.36 ▲0.0651.77 ▲0.66
Posts /wp-admin/edit.php3.48 ▲0.1248.03 ▼2.96
Add New Post /wp-admin/post-new.php5.96 ▲0.0885.44 ▼19.09
Media Library /wp-admin/upload.php3.28 ▲0.0639.67 ▲6.12
Clean Admin Menu /wp-admin/options-general.php?page=clean-wp-admin-menu_options3.2834.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Clean WP Admin Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.48 ▲0.132.43 ▲0.6746.85 ▲2.85
Dashboard /wp-admin2,218 ▲415.67 ▲0.0794.87 ▼5.1342.25 ▼0.75
Posts /wp-admin/edit.php2,120 ▲202.01 ▲0.0137.39 ▲1.8733.36 ▼3.10
Add New Post /wp-admin/post-new.php1,544 ▲1723.21 ▲0.12700.34 ▲5.2770.94 ▼0.81
Media Library /wp-admin/upload.php1,420 ▲234.22 ▲0.09110.73 ▲5.6846.76 ▲0.62
Clean Admin Menu /wp-admin/options-general.php?page=clean-wp-admin-menu_options9672.0124.2830.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/clean-wp-admin-menu/admin/partials/clean-wp-admin-menu-admin-display.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: menu, design, interface, admin, dashboard...

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

Analyzing the main PHP file in "Clean WP Admin Menu" version 1.0.1
56 characters long description:
You can make rarely used items in the admin menu hidden.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected354 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10148453295
Sass15027
CSS12120
JavaScript18812

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin