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/links-dropdown-widget/plugin.php+143
Function create_function() is deprecated
Server metrics [RAM: ▼1.92MB] [CPU: ▼49.57ms] Passed 4 tests
An overview of server-side resources used by Dropdown Links Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 3.98 ▼33.62 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.30 ▼40.63 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 5.44 ▼41.12 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.62 ▼82.90 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.57 ▼29.03 |
Add New /wp-admin/link-add.php | 2.09 | 5.71 |
All Links /wp-admin/link-manager.php | 2.10 | 6.21 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 2.09 | 5.80 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_links-dropdown-widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Dropdown Links Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.29 ▼1.36 | 1.52 ▼0.17 | 40.00 ▼6.07 |
Dashboard /wp-admin | 2,234 ▲49 | 5.79 ▼0.07 | 98.31 ▼5.67 | 40.03 ▼4.57 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.00 ▼0.00 | 37.40 ▲1.87 | 33.60 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,572 ▲35 | 23.50 ▲0.27 | 667.77 ▼10.53 | 55.89 ▼3.74 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.26 ▲0.00 | 99.58 ▼2.07 | 40.75 ▼3.91 |
Add New /wp-admin/link-add.php | 1,641 | 2.26 | 51.02 | 35.55 |
All Links /wp-admin/link-manager.php | 1,056 | 1.68 | 27.58 | 29.32 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 1,302 | 2.14 | 25.72 | 29.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/links-dropdown-widget/plugin.php+143
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_links-dropdown-widget
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
- > Deprecated in wp-content/plugins/links-dropdown-widget/plugin.php+143
Function create_function() is deprecated
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
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/links-dropdown-widget/plugin.php:30
- > PHP Notice
Undefined variable: link_cat in wp-content/plugins/links-dropdown-widget/views/widget.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bookmarks() in wp-content/plugins/links-dropdown-widget/views/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function linkdrop_categories_to_array() in wp-content/plugins/links-dropdown-widget/views/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
links-dropdown-widget/plugin.php 85% from 13 tests
Analyzing the main PHP file in "Dropdown Links Widget" version 1.1
Please make the necessary changes and fix the following:
- 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 ("links-dropdown-widget.php" instead of "plugin.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
There were no executable files found in this plugin129 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 46 | 55 | 117 |
CSS | 1 | 1 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 4.29KB | 2.04KB | ▼ 52.52% |
screenshot-1.png | 18.14KB | 6.08KB | ▼ 66.47% |