Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.50MB] [CPU: ▼0.57ms] Passed 4 tests
Analyzing server-side resources used by Twitch Rail
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 46.61 ▲9.09 |
Dashboard /wp-admin | 3.84 ▲0.53 | 52.21 ▼4.04 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 50.62 ▲1.14 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 86.48 ▼8.47 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 45.72 ▲9.65 |
[StreamWeasels] Twitch Rail /wp-admin/options-general.php?page=twitch-tv-rail | 3.67 | 41.77 |
[Add-On] Rail /wp-admin/admin.php?page=streamweasels-rail | 3.64 | 63.88 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.86 | 36.35 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Twitch Rail
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲212 | 13.45 ▼1.31 | 8.87 ▲7.27 | 42.01 ▼1.61 |
Dashboard /wp-admin | 2,266 ▲59 | 5.81 ▲0.72 | 107.10 ▼9.77 | 48.23 ▲3.44 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 2.20 ▲0.17 | 39.49 ▼1.06 | 40.17 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,566 ▲26 | 23.41 ▲0.36 | 621.03 ▲17.02 | 79.32 ▲8.68 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.29 ▲0.05 | 113.73 ▲6.49 | 52.54 ▲2.39 |
[StreamWeasels] Twitch Rail /wp-admin/options-general.php?page=twitch-tv-rail | 1,564 | 9.29 | 314.35 | 96.60 |
[Add-On] Rail /wp-admin/admin.php?page=streamweasels-rail | 826 | 2.22 | 39.28 | 41.52 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,035 | 2.09 | 28.81 | 34.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=streamweasels-rail
- > Warning in wp-content/plugins/ttv-easy-embed/admin/class-streamweasels-rail-pro-admin.php+154
include(wp-content/plugins/admin/partials/streamweasels-admin-display.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=streamweasels-rail
- > Warning in wp-content/plugins/ttv-easy-embed/admin/class-streamweasels-rail-pro-admin.php+154
include(): Failed opening 'wp-content/plugins/admin/partials/streamweasels-admin-display.php' for inclusion (include_path='.:/usr/share/php')
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ttv-easy-embed/includes/class-streamweasels-tgmpa.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ttv-easy-embed/public/partials/streamweasels-rail-pro-public-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ttv-easy-embed/admin/partials/streamweasels-rail-pro-admin-display.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: twitch, twitch streams, twitch widget, twitchtv, twitch embed...
ttv-easy-embed/twitch-tv-easy-embed.php 85% from 13 tests
The entry point to "Twitch Rail" version 2.1.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ttv-easy-embed.php" instead of "twitch-tv-easy-embed.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected8,590 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 5,117 |
PHP | 12 | 641 | 2,149 | 2,250 |
Sass | 4 | 56 | 21 | 1,123 |
JavaScript | 6 | 14 | 2 | 98 |
CSS | 4 | 0 | 8 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 24.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 135 | |
▷ Static methods | 7 | 5.19% |
▷ Public methods | 107 | 79.26% |
▷ Protected methods | 23 | 17.04% |
▷ Private methods | 5 | 3.70% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/sw-full-logo.png | 62.43KB | 26.24KB | ▼ 57.97% |