Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.83MB] [CPU: ▼55.07ms] Passed 4 tests
This is a short check of server-side resources used by jQuery Dropdown Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 4.70 ▼36.59 |
Dashboard /wp-admin | 2.18 ▼1.13 | 6.20 ▼48.10 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.36 ▼45.88 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 7.86 ▼89.72 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.71 ▼29.68 |
Dropdown Menu /wp-admin/options-general.php?page=jquery_drop_down_menu | 2.18 | 7.66 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 20 new options
New WordPress options |
---|
custom_menu_value |
theysaidso_admin_options |
fadeout |
widget_theysaidso_widget |
custom_menu_include |
fadein1 |
depth |
custom_menu |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for jQuery Dropdown Menu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲102 | 13.81 ▼0.54 | 8.95 ▲6.70 | 40.24 ▼5.33 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▼0.04 | 95.04 ▲3.67 | 39.80 ▼1.78 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▼0.00 | 39.95 ▼0.91 | 35.22 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,535 ▼10 | 23.25 ▼0.08 | 668.21 ▲23.02 | 54.46 ▼3.64 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.22 ▲0.03 | 98.98 ▼7.56 | 41.62 ▼6.01 |
Dropdown Menu /wp-admin/options-general.php?page=jquery_drop_down_menu | 1,411 | 1.71 | 23.24 | 38.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the down-menu-plugin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 20 options in the database
- theysaidso_admin_options
- pluginactive
- sort_order
- sort_by
- fadein
- home_link
- db_upgraded
- fadeout
- can_compress_scripts
- custom_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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the down-menu-plugin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+291
Undefined index: effecttype
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+300
Undefined index: speed
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+41
Undefined index: mode
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+64
Undefined index: jddm_location_enabled
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+76
Undefined index: jddm_location
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+105
Undefined index: menutupe
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+312
Undefined index: jddm_delay
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+327
Undefined index: sorting
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+335
Undefined index: sortingorder
- > GET request to /wp-admin/options-general.php?page=jquery_drop_down_menu
- > Notice in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php+368
Undefined index: customcss
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/jquery-drop-down-menu-plugin/jddm_adminpage.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (A preview of Black Style Menu), #2 (A preview of Blue Style Menu), #3 (Dropdown menu options page.)
jquery-drop-down-menu-plugin/jquery-drop-down-menu.php 85% from 13 tests
The primary PHP file in "jQuery Dropdown Menu" version 3.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jquery-drop-down-menu-plugin.php" instead of "jquery-drop-down-menu.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 detected5,378 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 13 | 378 | 30 | 1,383 |
PHP | 3 | 1,736 | 660 | 1,158 |
JavaScript | 3 | 47 | 24 | 166 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 35 | |
▷ Static methods | 9 | 25.71% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 2 | 5.71% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.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 are no PNG files in this plugin