Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼9.42ms] Passed 4 tests
An overview of server-side resources used by WP Home Page Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.48 ▼6.38 |
Dashboard /wp-admin | 3.41 ▲0.07 | 46.25 ▼10.48 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.59 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 81.66 ▼20.41 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.53 ▲2.30 |
WP Home Page Menu /wp-admin/options-general.php?page=wp_home_page_menu | 3.29 | 34.35 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wp_home_page_menu |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Home Page Menu: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.56 ▲0.21 | 1.51 ▼0.10 | 37.82 ▲0.85 |
Dashboard /wp-admin | 2,221 ▲44 | 5.60 ▲0.06 | 82.12 ▼4.11 | 40.30 ▼1.49 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.03 ▲0.02 | 39.36 ▲3.81 | 37.67 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.78 ▲0.58 | 681.62 ▲32.41 | 62.78 ▲10.51 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.24 ▲0.10 | 109.02 ▲8.87 | 49.89 ▲4.90 |
WP Home Page Menu /wp-admin/options-general.php?page=wp_home_page_menu | 884 | 2.04 | 22.52 | 25.71 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- wp_home_page_menu
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: home menu, home page menu, menu, home page navigation menu, navigation bar home menu
wp-home-page-menu/wp-home-page-menu.php Passed 13 tests
"WP Home Page Menu" version 3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
This plugin displays home page menu in the navigation bar which can be configured from the admin area.
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 detected418 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 148 | 428 | 335 |
PO File | 1 | 24 | 29 | 70 |
JavaScript | 1 | 1 | 4 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin