Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/optimized-dropdown-menus/optimized-dm.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; Optimized_Dropdown_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼47.27ms] Passed 4 tests
Analyzing server-side resources used by Optimized Dropdown Menus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.84 ▼31.38 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.95 ▼40.33 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.44 ▼38.15 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.47 ▼77.73 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.36 ▼32.86 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_optimzed_dd_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Optimized Dropdown Menus
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲39 | 14.63 ▲0.28 | 1.96 ▲0.28 | 45.55 ▲1.78 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.06 | 87.48 ▼6.39 | 42.03 ▼5.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.06 | 36.79 ▲0.51 | 33.71 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.37 ▼4.62 | 647.56 ▼20.87 | 60.79 ▼15.35 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.13 ▼0.03 | 97.59 ▲2.67 | 43.63 ▲2.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/optimized-dropdown-menus/optimized-dm.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; Optimized_Dropdown_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_optimzed_dd_widget
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/optimized-dropdown-menus/optimized-dm.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Widget Settings), #2 (How it looks on the front-end)
optimized-dropdown-menus/optimized-dm.php 85% from 13 tests
"Optimized Dropdown Menus" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("optimized-dropdown-menus.php" instead of "optimized-dm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected179 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 28 | 39 | 127 |
PO File | 2 | 12 | 16 | 52 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin