Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.76MB] [CPU: ▼57.08ms] Passed 4 tests
Server-side resources used by Themedy Widgets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.26 | 6.64 ▼38.19 |
Dashboard /wp-admin | 2.27 ▼1.08 | 11.38 ▼53.88 |
Posts /wp-admin/edit.php | 2.27 ▼1.09 | 10.48 ▼40.22 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 9.87 ▼96.02 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 11.30 ▼27.86 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_social_list_widget |
widget_themedy_ad300_widget |
widget_recent-posts |
widget_themedy_ad620_widget |
widget_themedy_video_widget |
widget_themedy_ad120x60_widget |
widget_themedy_ad300x600_widget |
theysaidso_admin_options |
widget_themedy_ad468_widget |
widget_featured-post |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Themedy Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.16 ▼1.59 | 1.81 ▼0.18 | 44.84 ▲3.01 |
Dashboard /wp-admin | 2,224 ▲18 | 4.86 ▼1.05 | 103.97 ▼0.85 | 35.87 ▼10.43 |
Posts /wp-admin/edit.php | 2,079 ▼21 | 2.01 ▲0.00 | 38.87 ▼3.17 | 31.74 ▼9.06 |
Add New Post /wp-admin/post-new.php | 1,540 ▲9 | 23.08 ▼0.10 | 629.66 ▲31.22 | 61.28 ▲0.97 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.01 | 116.15 ▲1.77 | 53.67 ▲4.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/themedy-widgets/includes/widgets/featured-post-widget.php+160
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 18 options
- db_upgraded
- widget_themedy_ad300_widget
- widget_themedy_video_widget
- widget_themedy_tab_widget
- widget_themedy_flickr_widget
- widget_social_list_widget
- widget_featured-post
- widget_themedy_ad300x600_widget
- widget_themedy_ad120x240_widget
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 12× 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 add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad468x60.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad620x100.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad120x240.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themedy-widgets/includes/widgets/widget-social.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad300x250.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-tabbed.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-video.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/featured-post-widget.php:160
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-flickr.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad300x600.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: themedy, genesis, ad widget, vimeo widget, video widget...
themedy-widgets/themedy-widgets.php Passed 13 tests
The main PHP file in "Themedy Widgets" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
A selection of widgets to extend your Themedy site even further.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,921 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 526 | 572 | 1,349 |
JavaScript | 3 | 72 | 192 | 352 |
CSS | 4 | 44 | 8 | 220 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 7.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
16 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/widgets/images/ad-300x250.png | 0.66KB | 0.62KB | ▼ 5.79% |
includes/widgets/images/icon-mail.png | 0.78KB | 0.66KB | ▼ 15.82% |
includes/widgets/images/icon-facebook.png | 0.67KB | 0.59KB | ▼ 11.89% |
includes/widgets/images/icon-smallquotes.png | 0.36KB | 0.27KB | ▼ 23.50% |
includes/widgets/images/ad-125x125.png | 0.37KB | 0.33KB | ▼ 10.67% |