Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/twitch-tv-embed-suite/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; PlumwdTwitchStatusWidget has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼51.05ms] Passed 4 tests
This is a short check of server-side resources used by Twitch TV Embed Suite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 7.34 ▼29.09 |
Dashboard /wp-admin | 2.15 ▼1.15 | 5.99 ▼40.30 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 6.03 ▼40.22 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 6.13 ▼94.59 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 7.22 ▼27.17 |
Twitch Embed /wp-admin/admin.php?page=twitch-options | 2.15 | 6.78 |
Help /wp-admin/admin.php?page=twitch-help | 2.15 | 7.67 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 11 new options
New WordPress options |
---|
pte_streamheight |
pte_chatheight |
can_compress_scripts |
pte_chatwidth |
widget_recent-comments |
widget_plumwdtwitchstatuswidget |
theysaidso_admin_options |
widget_theysaidso_widget |
pte_streamwidth |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Twitch TV Embed Suite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲105 | 13.48 ▼1.19 | 1.94 ▲0.08 | 38.13 ▼6.78 |
Dashboard /wp-admin | 2,257 ▲69 | 5.04 ▼0.87 | 102.04 ▼10.94 | 77.23 ▲29.62 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.33 ▲0.32 | 34.46 ▼8.33 | 34.62 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,556 ▲37 | 23.11 ▼0.11 | 797.31 ▲130.13 | 39.25 ▼19.25 |
Media Library /wp-admin/upload.php | 1,439 ▲48 | 4.30 ▲0.13 | 97.77 ▼2.21 | 77.34 ▲33.98 |
Twitch Embed /wp-admin/admin.php?page=twitch-options | 918 | 1.91 | 28.35 | 39.08 |
Help /wp-admin/admin.php?page=twitch-help | 974 | 1.92 | 28.54 | 33.20 |
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
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/twitch-tv-embed-suite/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; PlumwdTwitchStatusWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_plumwdtwitchstatuswidget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twitch-help
- > Deprecated in wp-content/plugins/twitch-tv-embed-suite/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; PlumwdTwitchStatusWidget has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twitch-help
- > Deprecated in wp-content/plugins/twitch-tv-embed-suite/widget.php+126
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twitch-help
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in PlumwdTwitchStatusWidget is deprecated since version 4.3.0! Use __construct() instead.
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 items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitch-tv-embed-suite/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/twitch-tv-embed-suite/includes/help.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitch-tv-embed-suite/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #5 in twitch-tv-embed-suite/assets to your readme.txt
twitch-tv-embed-suite/index.php 92% from 13 tests
Analyzing the main PHP file in "Twitch TV Embed Suite" version 2.1.0
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("twitch-tv-embed-suite.php" instead of "index.php")
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
Good job! No executable or dangerous file extensions detected446 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 71 | 23 | 388 |
JavaScript | 3 | 1 | 4 | 29 |
CSS | 1 | 1 | 1 | 15 |
XML | 1 | 0 | 0 | 13 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing 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.12 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 15 | |
▷ Named functions | 15 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/offline.png | 1.25KB | 0.43KB | ▼ 65.47% |
images/chat.png | 1.41KB | 0.54KB | ▼ 61.79% |
images/online.png | 1.25KB | 0.43KB | ▼ 65.89% |
images/tv.png | 1.53KB | 0.82KB | ▼ 46.03% |
images/plumeria.png | 2.82KB | 1.54KB | ▼ 45.33% |