90% so-customizer-hide-menu

Code Review | Customizer Hide Menu

WordPress plugin Customizer Hide Menu scored 90% from 54 tests.

About plugin

  • Plugin page: so-customizer-hid...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Jul 30, 2023
  • Number of updates: 38
  • Update frequency: every 77.4 days
  • Top authors: senlin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,205 total downloads


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

A check of server-side resources used by Customizer Hide Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.81 ▼2.98
Dashboard /wp-admin3.31 ▲0.0146.39 ▼3.95
Posts /wp-admin/edit.php3.36 ▲0.0049.68 ▲1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.37 ▼7.58
Media Library /wp-admin/upload.php3.23 ▲0.0035.64 ▲0.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Customizer Hide Menu: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.191.64 ▼0.0338.10 ▼4.21
Dashboard /wp-admin2,206 ▲154.86 ▼0.05108.48 ▲2.7538.82 ▼4.91
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0339.83 ▲0.2335.77 ▲0.71
Add New Post /wp-admin/post-new.php1,514 ▼2817.69 ▼0.58672.81 ▲70.8255.69 ▲0.33
Media Library /wp-admin/upload.php1,382 ▼94.20 ▼0.0597.58 ▼3.3244.21 ▼1.66

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
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: customizer, hide, navigation menu, menu, remove...

so-customizer-hide-menu/so-customizer-hide-menu.php 92% from 13 tests

The main PHP script in "Customizer Hide Menu" version 1.2.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin