Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/sidebar-menu-widget/sidebar-menu-widget.php+162
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▼0.01MB] [CPU: ▼14.52ms] Passed 4 tests
An overview of server-side resources used by Sidebar Menu Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.50 ▼6.13 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.15 ▼16.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.69 ▼1.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.08 ▼11.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.35 ▼24.47 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sidebar Menu Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.55 ▼0.86 | 4.79 ▲2.77 | 43.51 ▲1.45 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.98 | 114.37 ▼2.31 | 43.02 ▼2.96 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▲0.01 | 36.80 ▼4.07 | 34.22 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,533 ▼7 | 23.11 ▼0.06 | 680.49 ▼15.57 | 46.67 ▼28.00 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▲0.06 | 96.82 ▼19.07 | 43.40 ▼2.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/sidebar-menu-widget/sidebar-menu-widget.php on line 162
- > PHP Parse 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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: sidebar menu widget, sidebar menu plugin, sidebar vertical menu, sidebar menu
sidebar-menu-widget/sidebar-menu-widget.php Passed 13 tests
The main PHP script in "Sidebar Menu Widget" version 1.0 is automatically included on every request by WordPress
71 characters long description:
With this plugin you can display menu in sidebar according to nev menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin138 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 13 | 136 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
No PNG images were found in this plugin