Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.64MB] [CPU: ▼1.31ms] Passed 4 tests
An overview of server-side resources used by Widgets Bundle
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.68 | 47.14 ▲3.21 |
Dashboard /wp-admin | 3.97 ▲0.67 | 53.21 ▼0.06 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 52.82 ▲2.21 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 86.35 ▼10.60 |
Media Library /wp-admin/upload.php | 3.83 ▲0.61 | 41.47 ▲4.63 |
Widgets Bundle /wp-admin/options-general.php?page=widgetsbundle_options | 3.83 | 37.19 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, 16 new options
New WordPress options |
---|
widget_recent-comments |
widget_widgetsbundle_quote |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
as_widgetsbundle |
widget_widgetsbundle_twitter |
widget_widgetsbundle_subscribe |
widget_widgetsbundle_ads |
widget_widgetsbundle_facebook |
... |
Browser metrics Passed 4 tests
Widgets Bundle: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.21 ▼1.16 | 2.22 ▲0.22 | 42.52 ▼1.42 |
Dashboard /wp-admin | 2,211 ▲23 | 5.89 ▲0.85 | 103.74 ▼7.16 | 42.03 ▼1.82 |
Posts /wp-admin/edit.php | 2,103 ▲17 | 2.04 ▲0.06 | 42.56 ▲4.79 | 35.84 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.69 ▲0.60 | 612.05 ▼91.57 | 52.64 ▼14.40 |
Media Library /wp-admin/upload.php | 1,402 ▲20 | 4.21 ▲0.08 | 95.30 ▼4.74 | 42.67 ▼2.23 |
Widgets Bundle /wp-admin/options-general.php?page=widgetsbundle_options | 1,118 | 2.07 | 38.73 | 36.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 15 options in the database
- widget_widgetsbundle_posts
- widget_widgetsbundle_facebook
- theysaidso_admin_options
- widget_widgetsbundle_instagram
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_widgetsbundle_ads
- widget_widgetsbundle_twitter
- widget_widgetsbundle_personal
- ...
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/widgets-bundle/inc/admin/views/footer.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AkshitSethi\\Plugins\\WidgetsBundle\\Config' not found in wp-content/plugins/widgets-bundle/inc/admin/views/header.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/widgets-bundle/inc/admin/views/settings-about.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-bundle/inc/widgets/ads.php:13
- > PHP Fatal error
Uncaught Error: Class 'AkshitSethi\\Plugins\\WidgetsBundle\\Config' not found in wp-content/plugins/widgets-bundle/inc/admin/views/header.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-bundle/inc/widgets/posts.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-bundle/inc/widgets/quote.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-bundle/inc/widgets/personal.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function AkshitSethi\\Plugins\\WidgetsBundle\\plugin_dir_url() in wp-content/plugins/widgets-bundle/inc/class-config.php:40
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-bundle/inc/widgets/social.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-bundle/inc/widgets/twitter.php:13
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: widgets, wp widgets, wordpress widgets, wp widgets plugin
widgets-bundle/widgets-bundle.php 85% from 13 tests
The entry point to "Widgets Bundle" version 2.0.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/i18n")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("i18n")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,775 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 638 | 1,000 | 2,336 |
CSS | 3 | 47 | 98 | 861 |
JavaScript | 3 | 63 | 70 | 190 |
Markdown | 2 | 80 | 0 | 162 |
SVG | 1 | 103 | 0 | 115 |
JSON | 3 | 2 | 0 | 100 |
Bourne Shell | 1 | 4 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 12.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 18 | 14.40% |
▷ Public methods | 102 | 81.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 18.40% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/close.png | 0.43KB | 0.33KB | ▼ 24.43% |
assets/admin/images/facebook.png | 1.82KB | 0.59KB | ▼ 67.51% |
assets/admin/images/toggle.png | 0.97KB | 0.11KB | ▼ 89.07% |
assets/admin/images/wd-icon.png | 1.36KB | 0.38KB | ▼ 72.26% |
assets/admin/images/twitter.png | 2.07KB | 0.63KB | ▼ 69.73% |