Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼170.69ms] Passed 4 tests
A check of server-side resources used by Dropdown Menu Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.34 | 41.07 ▲19.29 |
Dashboard /wp-admin | 3.03 ▼0.03 | 29.69 ▼16.34 |
Posts /wp-admin/edit.php | 3.03 ▼0.08 | 29.92 ▼16.84 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.41 | 25.44 ▼633.99 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 26.18 ▼15.59 |
Dropdown Menu /wp-admin/options-general.php?page=dropdown-menu | 3.05 | 20.94 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 117 new files
Database: no new tables, 1 new option
New WordPress options |
---|
shailan_dropdown_menu |
Browser metrics Passed 4 tests
Checking browser requirements for Dropdown Menu Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,867 ▲271 | 16.40 ▲0.52 | 14.57 ▲5.85 | 49.58 ▲3.95 |
Dashboard /wp-admin | 2,992 ▲61 | 5.96 ▲0.04 | 142.99 ▼4.57 | 111.69 ▼19.84 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.74 ▲0.06 | 74.29 ▲4.61 | 102.14 ▲9.29 |
Add New Post /wp-admin/post-new.php | 1,517 ▼64 | 21.18 ▲4.93 | 377.40 ▼36.27 | 108.33 ▼20.63 |
Media Library /wp-admin/upload.php | 1,829 ▲25 | 5.08 ▼0.01 | 157.65 ▼49.13 | 124.33 ▼6.98 |
Dropdown Menu /wp-admin/options-general.php?page=dropdown-menu | 2,455 | 2.62 | 80.08 | 116.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/dropdown-menu-widget/shailan.DropDownMenu.php+72
Undefined index: page
- This plugin does not fully uninstall, leaving 1 option in the database
- shailan_dropdown_menu
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dropdown-menu
- > Notice in wp-content/plugins/dropdown-menu-widget/shailan.DropDownMenu.php+103
Undefined index: action
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/dropdown-menu-widget/shailan-page-walker.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/dropdown-menu-widget/stf-page-options.php:2
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/dropdown-menu-widget/shailan-category-walker.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dropdown-menu-widget/shailan-multi-dropdown.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dropdown-menu-widget/shailan.DropDownMenu.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/dropdown-menu-widget/shailan-dropdown-menu-options.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Brand new dropdown menu options page.) image required
- Tags: There are too many tags (15 tag instead of maximum 10)
dropdown-menu-widget/shailan.DropDownMenu.php 85% from 13 tests
The main file in "Dropdown Menu Widget" v. 1.9.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- 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: Name the main plugin file the same as the plugin slug ("dropdown-menu-widget.php" instead of "shailan.DropDownMenu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,005 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 27 | 485 | 330 | 1,451 |
PHP | 6 | 376 | 153 | 1,211 |
Markdown | 2 | 115 | 0 | 216 |
JavaScript | 4 | 30 | 67 | 127 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 5.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
52 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/grad1.png | 0.44KB | 0.44KB | 0.00% |
themes/default/images/nav-arrow-right.png | 0.11KB | 0.11KB | 0.00% |
themes/flickr.com/images/nav-arrow-left-on.png | 0.10KB | 0.10KB | 0.00% |
themes/default/images/nav-arrow-top.png | 0.10KB | 0.10KB | 0.00% |
themes/flickr.com/images/nav-arrow-up.png | 0.11KB | 0.11KB | 0.00% |