Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▼6.25ms] Passed 4 tests
A check of server-side resources used by SideMenu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 44.42 ▲0.66 |
Dashboard /wp-admin | 3.58 ▲0.28 | 50.94 ▼1.68 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 45.24 ▼7.58 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 82.41 ▼16.40 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 42.62 ▲7.00 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
SideMenu: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲100 | 14.39 ▲0.04 | 3.07 ▲1.06 | 45.27 ▲1.71 |
Dashboard /wp-admin | 2,195 ▲17 | 5.62 ▼0.10 | 81.92 ▼22.15 | 39.93 ▼0.30 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.01 | 34.53 ▼2.18 | 33.14 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,686 ▲141 | 22.23 ▲3.90 | 651.18 ▲34.92 | 58.23 ▼6.22 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.22 ▲0.00 | 95.02 ▼4.38 | 40.72 ▼4.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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 everything seems fine, this is not 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sidemenu/sidemenu.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: side nav, vertical menu, slide menu, side menu
sidemenu/sidemenu.php Passed 13 tests
The principal PHP file in "SideMenu" v. 1.8 is loaded by WordPress automatically on each request
53 characters long description:
Injects a sliding side menu / sidebar into any theme!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,674 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 561 | 17 | 1,159 |
JavaScript | 5 | 26 | 3 | 369 |
CSS | 2 | 23 | 0 | 118 |
JSON | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 25 | 55.56% |
▷ Public methods | 45 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin