Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.79ms] Passed 4 tests
An overview of server-side resources used by Bop Search Box Item Type For Nav Menus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.22 ▼2.34 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.83 ▼8.54 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.17 ▲5.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.67 ▼6.18 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.93 ▲1.89 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Bop Search Box Item Type For Nav Menus
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.31 ▼1.06 | 1.57 ▼0.31 | 42.32 ▼2.39 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.01 | 98.19 ▼7.70 | 39.48 ▼2.82 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 38.99 ▲4.15 | 35.11 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.07 ▲5.57 | 604.82 ▼80.96 | 47.10 ▼6.96 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.28 ▲0.06 | 95.09 ▼7.59 | 40.19 ▼8.87 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 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)
Everything seems fine, however 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 take a closer look at the following
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/plugin-keeping.php
- > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/plugin.php
- > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/init.php
- > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/updates/1.5.0/update.php
- > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/deactivate.php
- > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/uninstall.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 93% from 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
10 plugin tags: customizer, nav menu item type, nav menu, nav menus, navigation...
bop-search-box-item-type-for-nav-menus/init.php 85% from 13 tests
The main PHP file in "Bop Search Box Item Type For Nav Menus" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("bop-search-box-item-type-for-nav-menus.php" instead of "init.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
Everything looks great! No dangerous files found in this plugin378 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 124 | 273 | 362 |
CSS | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin