Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.22ms] Passed 4 tests
A check of server-side resources used by Widget Master
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.47 ▼2.59 |
Dashboard /wp-admin | 3.42 ▲0.12 | 75.41 ▲26.53 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.00 ▲2.28 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.57 ▼2.13 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.11 ▲1.57 |
Widget Master /wp-admin/options-general.php?page=wp-widget-master/widget-master.php | 3.34 | 32.49 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 24 new options
New WordPress options |
---|
WidgetMaster_Open_Close_Main_Feature |
WidgetMaster_On_Homepage |
WidgetMaster_On_Pages |
WidgetMaster_On_Search |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
WidgetMaster_Icon_color |
WidgetMaster_Border_Radius |
WidgetMaster_Turn_On_Off_Features |
... |
Browser metrics Passed 4 tests
Widget Master: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.70 ▼1.12 | 6.07 ▲4.08 | 39.17 ▼12.91 |
Dashboard /wp-admin | 2,210 ▲31 | 4.82 ▼0.11 | 108.19 ▼11.40 | 43.35 ▼4.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.17 ▲0.17 | 41.00 ▲3.73 | 36.85 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,549 ▲7 | 18.39 ▲0.01 | 620.83 ▼27.02 | 58.31 ▲0.83 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.22 ▲0.03 | 97.52 ▼3.11 | 43.40 ▼0.42 |
Widget Master /wp-admin/options-general.php?page=wp-widget-master/widget-master.php | 1,271 | 2.08 | 32.15 | 43.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 24 options in the database
- widget_theysaidso_widget
- WidgetMaster_On_Pages
- can_compress_scripts
- WidgetMaster_Icon_padding
- WidgetMaster_Icon_size
- WidgetMaster_On_Search
- WidgetMaster_Icon_Close
- WidgetMaster_On_Archives
- WidgetMaster_Open_Close_Main_Feature
- WidgetMaster_fromemail
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 fix the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-widget-master/content-setting.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-widget-master/widgets_pack.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-widget-master/report.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-widget-master/includes/includes/wp-session.php:82
- > PHP Fatal error
Uncaught Error: Class 'Recursive_ArrayAccess' not found in wp-content/plugins/wp-widget-master/includes/includes/class-wp-session.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-widget-master/turn_on_off_features.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-widget-master/includes/includes/wp-session.php:82
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wp-widget-master/includes/includes/wp-cli.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-widget-master/features/hide-display-widgets.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-widget-master/includes/includes/wp-session.php:82
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
wp-widget-master/widget-master.php 85% from 13 tests
The main PHP script in "Widget Master" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 266 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-widget-master.php" instead of "widget-master.php")
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
No dangerous file extensions were detected3,215 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 398 | 508 | 1,405 |
SVG | 2 | 0 | 1 | 932 |
JavaScript | 2 | 2 | 9 | 478 |
CSS | 2 | 27 | 0 | 303 |
PO File | 1 | 39 | 40 | 96 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 36.60 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 51 | |
▷ Static methods | 6 | 11.76% |
▷ Public methods | 45 | 88.24% |
▷ Protected methods | 5 | 9.80% |
▷ Private methods | 1 | 1.96% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
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
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/colorpicker_submit.png | 0.96KB | 1.04KB | 0.00% |
images/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |
images/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
images/jetpack-logo.png | 1.03KB | 0.72KB | ▼ 30.15% |
images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |