Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.86ms] Passed 4 tests
Analyzing server-side resources used by Different Menu in Different Pages and Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.46 ▼3.55 |
Dashboard /wp-admin | 3.36 ▲0.02 | 48.03 ▼14.05 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.86 ▲2.61 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 95.79 ▼5.81 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.24 ▼0.04 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Different Menu in Different Pages and Posts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲166 | 13.42 ▼1.18 | 8.17 ▲6.52 | 39.90 ▼11.77 |
Dashboard /wp-admin | 2,199 ▲19 | 5.58 ▼0.02 | 92.74 ▼7.46 | 44.08 ▲1.15 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.06 | 38.27 ▲3.18 | 37.41 ▲0.21 |
Add New Post /wp-admin/post-new.php | 6,232 ▲4,704 | 25.99 ▲3.06 | 932.90 ▲283.67 | 50.78 ▼12.60 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.11 ▼0.06 | 104.33 ▼0.94 | 47.41 ▲3.67 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/different-menu-in-different-pages-and-posts/admin/partials/different-menu-in-different-pages-and-posts-admin-display.php
- > /wp-content/plugins/different-menu-in-different-pages-and-posts/public/partials/different-menu-in-different-pages-and-posts-public-display.php
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #3 (Frontend Screen showing the chosen Menu)
different-menu-in-different-pages-and-posts/different-menu-in-different-pages-and-posts.php Passed 13 tests
"Different Menu in Different Pages and Posts" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
This plugin gives you an option for showing the custom header menu for your post or page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected219 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 120 | 557 | 213 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin