Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/podcast-player-widget/plugin.php+292
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.04ms] Passed 4 tests
An overview of server-side resources used by JPlayer Podcast Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.79 ▼35.08 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.28 ▼43.08 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.88 ▼43.68 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.08 ▼82.32 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.38 ▼27.52 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_jplayer-podcast |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JPlayer Podcast Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 13.45 ▼0.75 | 9.81 ▲8.17 | 41.48 ▼0.73 |
Dashboard /wp-admin | 2,199 ▲22 | 5.55 ▼0.10 | 84.32 ▼4.18 | 39.15 ▼5.34 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.01 | 38.94 ▼3.43 | 38.33 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,408 ▼120 | 18.61 ▼4.47 | 679.91 ▲23.14 | 57.00 ▲5.77 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.17 ▼0.07 | 98.75 ▼3.57 | 42.70 ▼3.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/podcast-player-widget/plugin.php+292
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_jplayer-podcast
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/podcast-player-widget/assets/podparser.php
- 30× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to get property 'image' of non-object in wp-content/plugins/podcast-player-widget/assets/podparser.php on line 12
- > PHP Notice
Undefined index: callback in wp-content/plugins/podcast-player-widget/assets/podparser.php on line 60
- > PHP Warning
Creating default object from empty value in wp-content/plugins/podcast-player-widget/assets/podparser.php on line 7
- > PHP Notice
Trying to get property 'channel' of non-object in wp-content/plugins/podcast-player-widget/assets/podparser.php on line 17
- > PHP Notice
Trying to get property 'author' of non-object in wp-content/plugins/podcast-player-widget/assets/podparser.php on line 17
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/podcast-player-widget/assets/podparser.php on line 14
- > PHP Notice
Undefined variable: widgetId in wp-content/plugins/podcast-player-widget/views/widget.php on line 14
- > PHP Notice
Trying to get property 'channel' of non-object in wp-content/plugins/podcast-player-widget/assets/podparser.php on line 12
- > PHP Notice
Undefined variable: widgetId in wp-content/plugins/podcast-player-widget/views/widget.php on line 12
- > PHP Notice
Undefined variable: widgetId in wp-content/plugins/podcast-player-widget/views/widget.php on line 48
- > PHP Notice
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 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Widget Settings) image not found
podcast-player-widget/plugin.php 85% from 13 tests
"JPlayer Podcast Widget" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("podcast-player-widget.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected7,084 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 401 | 492 | 4,300 |
CSS | 8 | 233 | 109 | 1,186 |
HTML | 11 | 18 | 2 | 654 |
LESS | 14 | 170 | 132 | 576 |
PHP | 4 | 90 | 112 | 257 |
JSON | 2 | 0 | 0 | 96 |
Markdown | 1 | 8 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot 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.17 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jplayer/skin/blue.monday/image/jplayer.blue.monday.video.play.png | 17.28KB | 4.28KB | ▼ 75.21% |
screenshot-1.png | 25.41KB | 6.17KB | ▼ 75.71% |
jplayer/skin/pixels/images/bg-shadow.png | 91.61KB | 57.75KB | ▼ 36.95% |
jplayer/skin/pink.flag/image/jplayer.pink.flag.video.play.png | 17.28KB | 4.28KB | ▼ 75.21% |