Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/simple-twitchtv-widget/simple_twitchtv_widget.php+49
Methods with the same name as their class will not be constructors in a future version of PHP; STTW_Twitch_Widget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼51.79ms] Passed 4 tests
This is a short check of server-side resources used by Simple Twitch.TV Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 10.30 ▼27.09 |
Dashboard /wp-admin | 2.08 ▼1.26 | 5.25 ▼52.38 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.95 ▼38.65 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.33 ▼89.02 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.19 ▼26.50 |
STTW Twitch Options /wp-admin/options-general.php?page=sttw_twitch_options | 2.08 | 7.02 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_sttw_twitch_widget |
can_compress_scripts |
sttw_twitch_users |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
sttw_twitch_number |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Twitch.TV Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.08 | 1.77 ▲0.04 | 44.73 ▲0.57 |
Dashboard /wp-admin | 2,204 ▲13 | 5.83 ▲0.98 | 98.57 ▼1.25 | 37.07 ▼5.85 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.01 | 39.29 ▼5.44 | 33.56 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.82 ▼4.20 | 638.88 ▼33.11 | 62.07 ▲4.42 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.20 ▼0.02 | 95.25 ▼3.58 | 39.31 ▼5.14 |
STTW Twitch Options /wp-admin/options-general.php?page=sttw_twitch_options | 804 | 2.03 | 23.96 | 25.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/simple-twitchtv-widget/simple_twitchtv_widget.php+49
Methods with the same name as their class will not be constructors in a future version of PHP; STTW_Twitch_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_sttw_twitch_widget
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=sttw_twitch_options
- > Deprecated in wp-content/plugins/simple-twitchtv-widget/simple_twitchtv_widget.php+49
Methods with the same name as their class will not be constructors in a future version of PHP; STTW_Twitch_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=sttw_twitch_options
- > Deprecated in wp-content/plugins/simple-twitchtv-widget/simple_twitchtv_widget.php+85
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=sttw_twitch_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in STTW_Twitch_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=sttw_twitch_options
- > Notice in wp-content/plugins/simple-twitchtv-widget/settings.php+4
Undefined index: sttw_twitch_number
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: sttw_twitch_number in wp-content/plugins/simple-twitchtv-widget/settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-twitchtv-widget/settings.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-twitchtv-widget/widget.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #2, #3 in simple-twitchtv-widget/assets to your readme.txt
simple-twitchtv-widget/simple_twitchtv_widget.php 85% from 13 tests
The primary PHP file in "Simple Twitch.TV Widget" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 178 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-twitchtv-widget.php" instead of "simple_twitchtv_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin186 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 23 | 14 | 186 |
PHP code Passed 2 tests
An overview 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.23 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 3.40KB | 0.47KB | ▼ 86.03% |