Benchmarks
Plugin footprint 58% 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
- Install procedure had errors
- > Notice in wp-content/plugins/sidenav/includes/sidenav-editor.php+81
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.69ms] Passed 4 tests
A check of server-side resources used by SideNav
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.07 | 42.23 ▼3.05 |
Dashboard /wp-admin | 3.62 ▼0.02 | 48.76 ▼24.26 |
Posts /wp-admin/edit.php | 3.73 ▲0.05 | 54.00 ▲0.71 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.05 | 104.45 ▼8.17 |
Media Library /wp-admin/upload.php | 3.54 ▲0.05 | 42.02 ▲4.50 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
sidenav_settings |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SideNav
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲164 | 13.38 ▼0.99 | 8.37 ▲6.54 | 49.78 ▲4.97 |
Dashboard /wp-admin | 2,211 ▲34 | 5.66 ▲0.05 | 90.10 ▲0.19 | 40.55 ▼6.84 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.01 ▲0.01 | 39.78 ▼2.20 | 35.71 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.37 ▲5.73 | 626.06 ▼43.65 | 52.23 ▼15.92 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.21 ▼0.09 | 96.68 ▼6.42 | 43.31 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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)
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sidenav/includes/sidenav-editor.php:81
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidenav/includes/sidenav-adminpage.php:10
- > PHP Fatal error
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: menu builder, pullout menu, menu, html, sidebar...
sidenav/sidenav.php Passed 13 tests
This is the main PHP file of "SideNav" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Slide-out navigation for pull-out left or right side slide out menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected403 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 99 | 131 | 302 |
CSS | 1 | 12 | 6 | 94 |
JavaScript | 1 | 3 | 12 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
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 | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 26.34KB | 12.82KB | ▼ 51.35% |
screenshot-1.png | 38.58KB | 16.11KB | ▼ 58.24% |
screenshot-2.png | 39.71KB | 16.17KB | ▼ 59.27% |