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: ▼7.68ms] Passed 4 tests
This is a short check of server-side resources used by Nav Menu search for admin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 44.14 ▲7.89 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.06 ▼1.77 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.86 ▼4.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.13 ▼22.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.74 ▼2.60 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Nav Menu search for admin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.35 ▲1.08 | 1.81 ▲0.13 | 47.41 ▲5.76 |
Dashboard /wp-admin | 2,197 ▲20 | 5.66 ▲0.07 | 91.31 ▲1.21 | 42.92 ▼1.52 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.99 ▼0.03 | 32.93 ▼4.98 | 36.55 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.64 ▲0.67 | 670.86 ▼8.78 | 51.39 ▼8.87 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.21 ▲0.01 | 96.60 ▼1.03 | 45.33 ▲1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/navmenusearchadmin/navMenuSearchAdmin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== navmenusearchadmin ===
) - Donate link: Invalid url: "#"
navmenusearchadmin/navMenuSearchAdmin.php 92% from 13 tests
"Nav Menu search for admin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("navmenusearchadmin.php" instead of "navMenuSearchAdmin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,302 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 41 | 48 | 1,222 |
PHP | 2 | 23 | 21 | 80 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin