84% menu-humility

Code Review | Menu Humility

WordPress plugin Menu Humility scored84%from 54 tests.

About plugin

  • Plugin page: menu-humility
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Jun 4, 2011
  • Latest release: Apr 18, 2018
  • Number of updates: 11
  • Update frequency: every 228.2 days
  • Top authors: markjaquith (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

400+ active /7,932 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 gracefully, with no errors

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

Analyzing server-side resources used by Menu Humility
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0144.75 ▲3.12
Dashboard /wp-admin3.58 ▲0.0156.60 ▲3.31
Posts /wp-admin/edit.php3.69 ▲0.0151.91 ▼4.14
Add New Post /wp-admin/post-new.php6.16 ▲0.0186.21 ▼17.08
Media Library /wp-admin/upload.php3.50 ▲0.0138.97 ▲2.08

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Menu Humility
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.29 ▼0.122.05 ▲0.2943.72 ▼2.88
Dashboard /wp-admin2,192 ▲215.58 ▼0.0991.61 ▲1.3535.44 ▼8.48
Posts /wp-admin/edit.php2,103 ▲61.99 ▼0.0334.59 ▼5.1432.93 ▼5.21
Add New Post /wp-admin/post-new.php1,551 ▲2023.42 ▲0.23688.08 ▼5.9760.05 ▲10.16
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.07101.64 ▼18.9044.66 ▼2.98

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/menu-humility/menu-humility.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: admin, annoyance, menus, reorder

menu-humility/menu-humility.php 92% from 13 tests

The main file in "Menu Humility" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

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
Success! There were no dangerous files found in this plugin27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181427

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin