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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.09ms] Passed 4 tests
Analyzing server-side resources used by Search box on Navigation Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.26 ▼5.42 |
Dashboard /wp-admin | 3.32 ▲0.02 | 59.01 ▲6.72 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 54.25 ▼1.38 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 101.20 ▼1.11 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.39 ▲3.55 |
Search box on Navigation Menu /wp-admin/options-general.php?page=search_box_to_menu | 3.20 | 38.08 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
search_box_to_menu |
Browser metrics Passed 4 tests
Checking browser requirements for Search box on Navigation Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▼7 | 13.55 ▼0.86 | 1.61 ▼0.43 | 43.12 ▲0.21 |
Dashboard /wp-admin | 2,210 ▲4 | 4.82 ▼1.05 | 108.14 ▲0.42 | 43.03 ▲4.63 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.03 | 39.12 ▼0.93 | 34.76 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.02 ▲4.70 | 634.04 ▲32.34 | 55.14 ▼6.06 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.33 ▲0.13 | 95.88 ▼3.42 | 46.80 ▲1.49 |
Search box on Navigation Menu /wp-admin/options-general.php?page=search_box_to_menu | 817 | 2.03 | 26.37 | 27.25 |
Uninstaller [IO: ✅] [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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- search_box_to_menu
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please describe screenshot #2 in search-box-on-navigation-menu/assets to your readme.txt
search-box-on-navigation-menu/search-box-to-menu.php 85% from 13 tests
"Search box on Navigation Menu" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("search-box-on-navigation-menu.php" instead of "search-box-to-menu.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected254 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 132 | 377 | 254 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.79% |
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
No PNG files were detected