Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.09ms] Passed 4 tests
An overview of server-side resources used by Widget Bundle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.23 ▼3.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.81 ▼4.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.77 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 78.50 ▼12.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.56 ▲4.80 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_bundle_settings |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Widget Bundle
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲51 | 13.25 ▼1.06 | 1.70 ▼0.17 | 29.10 ▼14.86 |
Dashboard /wp-admin | 2,226 ▲38 | 5.94 ▲1.04 | 96.25 ▼19.29 | 46.93 ▲3.31 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.05 ▼0.01 | 35.19 ▼7.72 | 39.87 ▲8.20 |
Add New Post /wp-admin/post-new.php | 1,694 ▲175 | 25.01 ▲1.74 | 618.65 ▼76.24 | 65.83 ▲9.64 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.25 ▼0.02 | 97.85 ▼4.52 | 48.79 ▲2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-widget-bundle/widget-bundle.php
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-widget-bundle/includes/widget-form/widget-categories-form.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-widget-bundle/includes/widget-form/widget-login-register-form.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-widget-bundle/includes/widget/class-comments-widget.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-widget-bundle/includes/widget/class-social-widget.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-widget-bundle/includes/widget/class-posts-widget.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-widget-bundle/includes/widget/class-contact-widget.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-widget-bundle/includes/widget-form/widget-button-form.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-widget-bundle/includes/widget-form/widget-aboutme-form.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-widget-bundle/admin/view/widget-types.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-widget-bundle/includes/widget-form/widget-text-form.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: post, widget, image, button, social
wp-widget-bundle/widget-bundle.php 77% from 13 tests
The main PHP script in "Widget Bundle" version 2.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-widget-bundle.php" instead of "widget-bundle.php")
- Description: The description should be shorter than 140 characters (currently 173 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin14,128 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,325 | 25 | 9,908 |
PHP | 36 | 962 | 1,786 | 3,992 |
JavaScript | 9 | 93 | 72 | 228 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 23.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 8 | 7.62% |
▷ Public methods | 105 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/delete-icon.png | 18.37KB | 8.39KB | ▼ 54.31% |