90% hide-admin-menu-items

Code Review | Hide Admin Menu Items

WordPress plugin Hide Admin Menu Items scored90%from 54 tests.

About plugin

  • Plugin page: hide-admin-menu-i...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 3, 2022
  • Latest release: Jan 3, 2022
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: charlesalexandrelaurent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.43ms] Passed 4 tests

This is a short check of server-side resources used by Hide Admin Menu Items
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.46 ▼5.08
Dashboard /wp-admin3.34 ▲0.0351.30 ▼5.54
Posts /wp-admin/edit.php3.39 ▲0.0352.32 ▼1.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.70 ▲2.41
Media Library /wp-admin/upload.php3.27 ▲0.0339.44 ▲2.04
Hide items /wp-admin/options-general.php?page=hide-admin-menu-items3.2440.06

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
hami_menu_items
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide Admin Menu Items
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.201.92 ▼0.3544.46 ▼2.82
Dashboard /wp-admin2,196 ▲195.53 ▼0.0485.47 ▼21.9340.89 ▼14.61
Posts /wp-admin/edit.php2,104 ▲42.07 ▲0.1140.80 ▲2.2035.54 ▲0.84
Add New Post /wp-admin/post-new.php1,529 ▲323.11 ▼0.03630.55 ▼27.0856.97 ▲5.58
Media Library /wp-admin/upload.php1,407 ▲104.20 ▼0.00100.72 ▼4.7442.68 ▼6.54
Hide items /wp-admin/options-general.php?page=hide-admin-menu-items9192.0625.3140.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: dashboard, items, admin-area, admin menu, menu...

hide-admin-menu-items/hide-admin-menu-items.php Passed 13 tests

The entry point to "Hide Admin Menu Items" version 1.0.0 is a PHP file that has certain tags in its header comment area
34 characters long description:
Hide unnecessary admin menu items.

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
Everything looks great! No dangerous files found in this plugin228 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP23757128
CSS26044
PO File15829
JavaScript25027

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin