88% dynamic-menu-item

Code Review | Dynamic Menu Item

WordPress plugin Dynamic Menu Item scored 88% from 54 tests.

About plugin

  • Plugin page: dynamic-menu-item
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 5.8.1
  • First release: Mar 8, 2013
  • Latest release: Feb 1, 2014
  • Number of updates: 11
  • Update frequency: every 30.1 days
  • Top authors: whatleycc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,957 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼147.56ms] Passed 4 tests

A check of server-side resources used by Dynamic Menu Item
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1633.75 ▲10.44
Dashboard /wp-admin3.11 ▲0.0637.05 ▼14.95
Posts /wp-admin/edit.php3.16 ▲0.0544.50 ▼1.22
Add New Post /wp-admin/post-new.php5.47 ▲0.0382.38 ▼572.98
Media Library /wp-admin/upload.php3.05 ▲0.0533.33 ▼1.10
Dynamic Menu Item /wp-admin/themes.php?page=season-holiday3.0026.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic Menu Item
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,696 ▲10115.86 ▲0.399.77 ▲1.5445.14 ▼7.07
Dashboard /wp-admin2,985 ▲515.98 ▲0.06135.37 ▼12.00112.55 ▲2.49
Posts /wp-admin/edit.php2,757 ▲182.72 ▲0.0269.81 ▲2.4887.93 ▼3.14
Add New Post /wp-admin/post-new.php1,696 ▲1318.44 ▼0.12355.42 ▼37.39106.10 ▼60.44
Media Library /wp-admin/upload.php1,828 ▲185.09 ▲0.08144.79 ▼17.57119.07 ▼8.12
Dynamic Menu Item /wp-admin/themes.php?page=season-holiday2,7192.4561.0582.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/themes.php?page=season-holiday
    • > Notice in wp-content/plugins/dynamic-menu-item/dynamic-menu-item.php+45
    Undefined index: submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please 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/dynamic-menu-item/dynamic-menu-item.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: appearance, menu

dynamic-menu-item/dynamic-menu-item.php 92% from 13 tests

The entry point to "Dynamic Menu Item" version 0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 266 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected659 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin