84% menu-description

Code Review | Menu Description

WordPress plugin Menu Description scored84%from 54 tests.

About plugin

  • Plugin page: menu-description
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Feb 6, 2021
  • Number of updates: 4
  • Update frequency: every 31.8 days
  • Top authors: jamesdlow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /813 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Menu Description
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.76 ▼2.09
Dashboard /wp-admin3.31 ▲0.0142.42 ▼4.77
Posts /wp-admin/edit.php3.36 ▲0.0140.91 ▼8.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.88 ▼9.76
Media Library /wp-admin/upload.php3.24 ▲0.0135.48 ▲0.54

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Menu Description
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.261.67 ▼0.1938.11 ▼6.43
Dashboard /wp-admin2,198 ▲215.64 ▼0.0394.96 ▲2.2541.74 ▲3.30
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0232.77 ▼2.9831.91 ▼2.75
Add New Post /wp-admin/post-new.php1,531 ▲123.19 ▼0.06641.67 ▼24.8251.83 ▼9.52
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0297.36 ▲2.5043.17 ▼1.21

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-description/menu-description.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: js, javascript, redirect

menu-description/menu-description.php Passed 13 tests

The entry point to "Menu Description" version 1.0.4 is a PHP file that has certain tags in its header comment area
60 characters long description:
Add the description from menu items when the item is display

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin90 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121490

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods13100.00%
▷ Public methods13100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin