Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.53MB] [CPU: ▲1.53ms] Passed 4 tests
This is a short check of server-side resources used by Sidebar Manager Light
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 46.63 ▲3.85 |
Dashboard /wp-admin | 3.87 ▲0.57 | 50.81 ▲1.71 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 49.56 ▲5.81 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 88.85 ▼2.31 |
Media Library /wp-admin/upload.php | 3.73 ▲0.51 | 40.16 ▲2.85 |
License Manager /wp-admin/admin.php?page=otw-sml-lm | 3.77 | 258.05 |
Plugin Options /wp-admin/admin.php?page=otw-sml-options | 3.70 | 39.06 |
Manage widget /wp-admin/admin.php?page=otw-sml-action | 3.71 | 37.30 |
otwfcr /wp-admin/admin.php?page=otwfcr | 3.70 | 36.93 |
Add Sidebar /wp-admin/admin.php?page=otw-sml-add | 3.80 | 37.28 |
Sidebars /wp-admin/admin.php?page=otw-sml | 3.71 | 38.72 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
otw_widget_settings |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Sidebar Manager Light: 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,844 ▲87 | 13.79 ▼0.56 | 1.95 ▼0.22 | 42.80 ▼1.05 |
Dashboard /wp-admin | 2,231 ▲46 | 4.94 ▼0.96 | 96.62 ▼19.26 | 81.78 ▲33.93 |
Posts /wp-admin/edit.php | 2,134 ▲42 | 2.00 ▲0.01 | 35.90 ▼1.62 | 34.70 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,442 ▼92 | 20.21 ▼2.92 | 709.48 ▼70.28 | 62.74 ▼12.19 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.21 ▲0.05 | 95.37 ▼21.55 | 86.64 ▲36.27 |
License Manager /wp-admin/admin.php?page=otw-sml-lm | 945 | 2.03 | 24.64 | 24.33 |
Plugin Options /wp-admin/admin.php?page=otw-sml-options | 904 | 2.17 | 24.71 | 38.01 |
Manage widget /wp-admin/admin.php?page=otw-sml-action | 699 | 1.53 | 6.68 | 16.26 |
otwfcr /wp-admin/admin.php?page=otwfcr | 803 | 2.02 | 24.25 | 19.96 |
Add Sidebar /wp-admin/admin.php?page=otw-sml-add | 1,798 | 2.13 | 39.58 | 35.93 |
Sidebars /wp-admin/admin.php?page=otw-sml | 860 | 2.01 | 25.75 | 30.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% 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
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- otw_widget_settings
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=otw-sml-add
- > POST request to /wp-admin/admin-ajax.php?action=otw_sml_items_by_type
- > Notice in wp-content/plugins/sidebar-manager-light/include/otw_sbm_items_by_type.php+272
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sidebar-manager-light/include/otw_components/otw_factory/views/action_message.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sidebar-manager-light/include/otw_list_sidebars.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_get() in wp-content/plugins/sidebar-manager-light/include/otw_sidebar_action.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sidebar-manager-light/include/otw_components/otw_factory/views/license_manager.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sidebar-manager-light/include/otw_sbm_items_by_type.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sidebar-manager-light/include/otw_functions.php:210
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sidebar-manager-light/include/otw_labels/otw_sml_factory_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sidebar-manager-light/include/otw_sidebar_info.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sidebar-manager-light/otw_sidebar_manager.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sidebar-manager-light/include/otw_sidebar_options.php:9
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/sidebar-manager-light/include/otw_components/otw_factory/otw_factory.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Create a custom sidebar(widget area), replace existing sidebar, select pages to display the new custom sidebar), #2 (Go to your widgets section (Appearance -> Widgets) and drop some widgets in your new sidebar)
sidebar-manager-light/otw_sidebar_manager.php 92% from 13 tests
The primary PHP file in "Sidebar Manager Light" version 1.18 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sidebar-manager-light.php" instead of "otw_sidebar_manager.php")
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
Everything looks great! No dangerous files found in this plugin10,034 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 1,109 | 349 | 4,282 |
CSS | 4 | 2 | 11 | 2,751 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 1 | 80 | 1 | 330 |
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.70 |
Average class complexity | 148.50 |
▷ Minimum class complexity | 104.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 8.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 81.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.42% |
Functions | 65 | |
▷ Named functions | 65 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.20MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/swm-notselected.png | 3.76KB | 0.21KB | ▼ 94.34% |
images/application_side_boxes.png | 0.47KB | 0.46KB | ▼ 1.45% |
screenshot-1.png | 131.59KB | 42.61KB | ▼ 67.62% |
images/swm-selected.png | 3.81KB | 0.25KB | ▼ 93.36% |
images/otw-sbm-icon.png | 0.13KB | 0.14KB | 0.00% |