Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲2.86ms] Passed 4 tests
Server-side resources used by Widget Manager Light
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 48.87 ▲7.99 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.39 ▼3.82 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.95 ▲0.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 96.45 ▲9.82 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.49 ▲7.19 |
Set up widget appearance /wp-admin/admin.php?page=otw-wml-widget-dialog | 3.59 | 33.99 |
License Manager /wp-admin/admin.php?page=otw-wml-lm | 3.34 | 259.22 |
otwfcr /wp-admin/admin.php?page=otwfcr | 3.25 | 35.47 |
Options /wp-admin/admin.php?page=otw-wml | 3.30 | 39.66 |
Server storage [IO: ▲1.55MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
otw_widget_settings |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Widget Manager Light
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.22 ▼0.96 | 2.10 ▲0.25 | 43.43 ▼1.67 |
Dashboard /wp-admin | 2,235 ▲44 | 5.87 ▼0.19 | 105.63 ▼9.87 | 71.10 ▲23.47 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.01 ▼0.04 | 38.12 ▼5.48 | 36.84 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,707 ▲193 | 24.66 ▲7.19 | 702.25 ▲64.69 | 68.01 ▲18.04 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.24 ▼0.04 | 102.15 ▲3.19 | 45.74 ▲2.08 |
Set up widget appearance /wp-admin/admin.php?page=otw-wml-widget-dialog | 693 | 1.14 | 6.77 | 13.61 |
License Manager /wp-admin/admin.php?page=otw-wml-lm | 934 | 2.02 | 24.21 | 25.88 |
otwfcr /wp-admin/admin.php?page=otwfcr | 795 | 2.01 | 40.00 | 22.34 |
Options /wp-admin/admin.php?page=otw-wml | 910 | 2.14 | 30.79 | 44.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- otw_widget_settings
- db_upgraded
Smoke tests 50% 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)
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/widget-manager-light/include/otw_components/otw_factory/views/action_message.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_get() in wp-content/plugins/widget-manager-light/include/otw_widget_dialog.php:8
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/widget-manager-light/include/otw_components/otw_factory/otw_factory.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/widget-manager-light/include/otw_sidebar_options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/widget-manager-light/include/otw_wml_items_by_type.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widget-manager-light/include/otw_functions.php:273
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/widget-manager-light/include/otw_sidebar_info.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/widget-manager-light/include/otw_process_actions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/widget-manager-light/otw_widget_manager.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/widget-manager-light/include/otw_components/otw_factory/views/license_manager.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/widget-manager-light/include/otw_labels/otw_wml_factory_object.labels.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add images for these screenshots: #1 (Enable widget management), #2 (Select Widget), #3 (Select pages to display on)
widget-manager-light/otw_widget_manager.php 85% from 13 tests
The entry point to "Widget Manager Light" version 1.18 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("widget-manager-light.php" instead of "otw_widget_manager.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected10,377 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,244 | 368 | 4,513 |
CSS | 4 | 3 | 11 | 2,799 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 4 | 116 | 1 | 377 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
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 | 70 | |
▷ Named functions | 70 | 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
7 PNG files occupy 0.25MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/otw-sbm-icon.png | 0.13KB | 0.14KB | 0.00% |
screenshot-1.png | 39.75KB | 13.46KB | ▼ 66.14% |
images/swm-selected.png | 3.81KB | 0.25KB | ▼ 93.36% |
images/swm-notselected.png | 3.76KB | 0.21KB | ▼ 94.34% |
screenshot-3.png | 96.96KB | 33.79KB | ▼ 65.15% |