Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/dynamic-sidebar-menu/dynawidgetplugin.php+113
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼53.38ms] Passed 4 tests
This is a short check of server-side resources used by Dynamic Sidebar Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.51 ▼30.60 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.33 ▼51.58 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.09 ▼39.30 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.33 ▼92.05 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.37 ▼30.22 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_dynasidebarmenuwidget |
Browser metrics Passed 4 tests
A check of browser resources used by Dynamic Sidebar Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.36 | 4.56 ▲2.81 | 45.47 ▲6.51 |
Dashboard /wp-admin | 2,206 ▲14 | 4.84 ▼0.12 | 106.33 ▲1.73 | 37.54 ▼1.69 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.02 ▼0.02 | 34.20 ▼1.22 | 35.86 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 21.62 ▼1.56 | 672.14 ▲16.24 | 57.05 ▲9.29 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.23 ▼0.14 | 95.93 ▼11.97 | 41.33 ▼6.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/dynamic-sidebar-menu/dynawidgetplugin.php+113
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_dynasidebarmenuwidget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dynamic-sidebar-menu/dynawidgetplugin.php:11
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== dynamic-sidebar-menu ===
) - Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: Screenshot #1 (shows sidebar widget created by plugin) image missing
dynamic-sidebar-menu/dynawidgetplugin.php 92% from 13 tests
"Dynamic Sidebar Menu" version 0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("dynamic-sidebar-menu.php" instead of "dynawidgetplugin.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
Good job! No executable or dangerous file extensions detected91 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 20 | 91 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin