84% remove-wp-menu

Code Review | Remove WP Menu

WordPress plugin Remove WP Menu scored84%from 54 tests.

About plugin

  • Plugin page: remove-wp-menu
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Feb 6, 2013
  • Latest release: Jun 18, 2017
  • Number of updates: 9
  • Update frequency: every 177.0 days
  • Top authors: aaronholbrook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,435 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.04ms] Passed 4 tests

Server-side resources used by Remove WP Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0137.51 ▼10.40
Dashboard /wp-admin3.30 ▼0.0044.20 ▼0.49
Posts /wp-admin/edit.php3.35 ▼0.0043.24 ▼2.90
Add New Post /wp-admin/post-new.php5.88 ▼0.0082.02 ▼18.37
Media Library /wp-admin/upload.php3.22 ▼0.0135.83 ▲5.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Remove WP Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,737 ▼913.24 ▼1.051.59 ▼0.5937.92 ▼14.25
Dashboard /wp-admin2,158 ▼305.88 ▼0.02110.93 ▼2.6642.72 ▼0.21
Posts /wp-admin/edit.php2,041 ▼481.99 ▲0.0239.98 ▲3.9333.96 ▲3.06
Add New Post /wp-admin/post-new.php1,511 ▼3123.31 ▲5.10605.39 ▼21.2954.09 ▼1.37
Media Library /wp-admin/upload.php1,337 ▼514.27 ▲0.0397.81 ▼8.3640.23 ▼3.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please 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/remove-wp-menu/remove-wp-menu.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

remove-wp-menu/remove-wp-menu.php Passed 13 tests

"Remove WP Menu" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
33 characters long description:
Remove the Admin Bar WP Menu/Icon

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15155
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin