89% ultra-menu-remove

Code Review | Ultra Menu Remove

WordPress plugin Ultra Menu Remove scored89%from 54 tests.

About plugin

  • Plugin page: ultra-menu-remove
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Jan 27, 2017
  • Latest release: Jan 27, 2017
  • Number of updates: 12
  • Update frequency: every 0.6 days
  • Top authors: mondal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /635 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▲2.62ms] Passed 4 tests

Analyzing server-side resources used by Ultra Menu Remove
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.89 ▲1.59
Dashboard /wp-admin3.32 ▲0.0148.32 ▲0.79
Posts /wp-admin/edit.php3.37 ▲0.0148.09 ▲4.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.59 ▲3.34
Media Library /wp-admin/upload.php3.24 ▲0.0137.88 ▲5.17
Settings Menu page /wp-admin/admin.php?page=remove_menu_setting3.2133.16

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

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

Browser metrics Passed 4 tests

Ultra Menu Remove: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.53 ▼1.122.05 ▼0.0047.87 ▲3.54
Dashboard /wp-admin2,233 ▲425.18 ▲0.18119.93 ▲3.0346.42 ▲4.98
Posts /wp-admin/edit.php2,116 ▲242.27 ▲0.2241.09 ▲6.1739.48 ▲8.41
Add New Post /wp-admin/post-new.php1,540 ▲723.75 ▲0.45639.43 ▼28.4161.84 ▲8.02
Media Library /wp-admin/upload.php1,418 ▲274.50 ▲0.3295.01 ▼3.7440.44 ▼5.25
Settings Menu page /wp-admin/admin.php?page=remove_menu_setting1,3682.4345.2928.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • 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 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: admin menu page remove, remove menu, remove menu page, remove dashbord

ultra-menu-remove/umpr_remove.php 85% from 13 tests

The main PHP script in "Ultra Menu Remove" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultra-menu-remove.php" instead of "umpr_remove.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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 plugin6,974 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS28156,661
PHP16313299
JavaScript321314

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected