Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 33.75 ▲10.44 |
Dashboard /wp-admin | 3.11 ▲0.06 | 37.05 ▼14.95 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 44.50 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 82.38 ▼572.98 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.33 ▼1.10 |
Dynamic Menu Item /wp-admin/themes.php?page=season-holiday | 3.00 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,696 ▲101 | 15.86 ▲0.39 | 9.77 ▲1.54 | 45.14 ▼7.07 |
Dashboard /wp-admin | 2,985 ▲51 | 5.98 ▲0.06 | 135.37 ▼12.00 | 112.55 ▲2.49 |
Posts /wp-admin/edit.php | 2,757 ▲18 | 2.72 ▲0.02 | 69.81 ▲2.48 | 87.93 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 18.44 ▼0.12 | 355.42 ▼37.39 | 106.10 ▼60.44 |
Media Library /wp-admin/upload.php | 1,828 ▲18 | 5.09 ▲0.08 | 144.79 ▼17.57 | 119.07 ▼8.12 |
Dynamic Menu Item /wp-admin/themes.php?page=season-holiday | 2,719 | 2.45 | 61.05 | 82.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 39 | 65 | 385 |
PHP | 1 | 50 | 43 | 274 |
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 code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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