84% easy-remove-item-menu

Code Review | Easy remove item menu

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

About plugin

  • Plugin page: easy-remove-item-...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 14, 2019
  • Latest release: Jan 10, 2021
  • Number of updates: 12
  • Update frequency: every 45.4 days
  • Top authors: camilo517 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

8,000+ active /34,507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Easy remove item menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.24 ▼1.70
Dashboard /wp-admin3.31 ▲0.0147.10 ▼6.68
Posts /wp-admin/edit.php3.36 ▲0.0150.68 ▲0.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.42 ▼10.89
Media Library /wp-admin/upload.php3.24 ▲0.0137.68 ▼1.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy remove item menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.65 ▼0.992.12 ▲0.3944.60 ▲1.61
Dashboard /wp-admin2,221 ▲185.86 ▲0.95107.29 ▼5.9441.74 ▲4.68
Posts /wp-admin/edit.php2,103 ▲32.06 ▲0.1038.43 ▼3.1334.33 ▼0.95
Add New Post /wp-admin/post-new.php1,526 ▼017.66 ▲0.14667.17 ▼1.0672.25 ▲6.79
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.0497.61 ▼11.1444.91 ▼5.18

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-remove-item-menu/easy-remove-item-menu.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: item-menu, remove-item-menu, easy-remove-item menu, menu, quick-remove-menu-item

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

The principal PHP file in "Easy remove item menu" v. 1.0.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin71 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript20043
PHP1141428

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.30
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.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 were not PNG files found in your plugin