Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.70ms] Passed 4 tests
Server-side resources used by Main Menu HTML Sitemap
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 35.58 ▲0.50 |
Dashboard /wp-admin | 3.43 ▲0.13 | 42.94 ▼3.86 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 44.05 ▼0.58 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 90.02 ▼4.87 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 34.38 ▼5.50 |
Main menu Sitemap /wp-admin/options-general.php?page=mmh_sitemap | 3.30 | 40.95 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
mmh_sitemap_display_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Main Menu HTML Sitemap
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲94 | 13.44 ▼1.02 | 7.49 ▲5.61 | 39.27 ▲0.58 |
Dashboard /wp-admin | 2,206 ▲32 | 5.59 ▲0.08 | 91.55 ▲3.66 | 40.33 ▼2.12 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.00 ▲0.02 | 40.42 ▲5.54 | 35.22 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.30 ▼4.71 | 604.69 ▼79.78 | 65.81 ▲13.96 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.19 ▼0.03 | 97.67 ▼4.42 | 41.61 ▼3.52 |
Main menu Sitemap /wp-admin/options-general.php?page=mmh_sitemap | 891 | 2.05 | 27.05 | 30.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- mmh_sitemap_display_options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=mmh_sitemap
- > Notice in wp-content/plugins/main-menu-html-site-map/admin/class-mmh-sitemap-settings.php+385
Undefined index: sitemap-blog
- > GET request to /wp-admin/options-general.php?page=mmh_sitemap
- > Notice in wp-content/plugins/main-menu-html-site-map/admin/class-mmh-sitemap-settings.php+475
Undefined index: exclude_menu_items
- > GET request to /wp-admin/options-general.php?page=mmh_sitemap
- > Notice in wp-content/plugins/main-menu-html-site-map/admin/class-mmh-sitemap-settings.php+488
Undefined index: exclude_post_cat
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/main-menu-html-site-map/public/partials/mmh-sitemap-public-display.php
- > /wp-content/plugins/main-menu-html-site-map/admin/partials/mmh-sitemap-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in main-menu-html-site-map/assets to your readme.txt
main-menu-html-site-map/main-menu-html-sitemap.php 85% from 13 tests
Analyzing the main PHP file in "Main Menu HTML Sitemap" version 2.0.2
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("main-menu-html-site-map.php" instead of "main-menu-html-sitemap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected608 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 280 | 697 | 570 |
JavaScript | 2 | 12 | 61 | 32 |
CSS | 2 | 0 | 8 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 44 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin