84% quick-remove-menu-item

Code Review | Quick remove menu item

WordPress plugin Quick remove menu item scored84%from 54 tests.

About plugin

  • Plugin page: quick-remove-menu...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Nov 10, 2013
  • Latest release: Feb 15, 2014
  • Number of updates: 7
  • Update frequency: every 13.9 days
  • Top authors: hptheme (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

5,000+ active /27,998 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.77ms] Passed 4 tests

Server-side resources used by Quick remove menu item
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.80 ▲3.47
Dashboard /wp-admin3.32 ▼0.0352.65 ▼12.77
Posts /wp-admin/edit.php3.37 ▲0.0151.60 ▼3.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.54 ▼16.94
Media Library /wp-admin/upload.php3.24 ▲0.0136.36 ▲2.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Quick remove menu item
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.371.96 ▼0.0543.85 ▼1.16
Dashboard /wp-admin2,198 ▲245.57 ▲0.0490.41 ▼10.9840.04 ▼3.37
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0138.45 ▼0.2935.26 ▲3.07
Add New Post /wp-admin/post-new.php1,526 ▼1123.75 ▲5.51654.73 ▲30.9760.72 ▼9.46
Media Library /wp-admin/upload.php1,403 ▲64.37 ▲0.1897.39 ▼11.4643.08 ▼0.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/quick-remove-menu-item/Pl_removemenu.php:41

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === quick-remove-menu-item === )
You can look at the official readme.txt

quick-remove-menu-item/Pl_removemenu.php 92% from 13 tests

This is the main PHP file of "Quick remove menu item" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quick-remove-menu-item.php" instead of "Pl_removemenu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin91 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16749
PHP1184641
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin