Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▼2.46ms] Passed 4 tests
Server-side resources used by Twitch Live Status
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 43.34 ▼11.30 |
Dashboard /wp-admin | 3.90 ▲0.55 | 61.65 ▲0.26 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 57.75 ▲5.88 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 91.85 ▼4.48 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 43.94 ▲5.69 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.83 | 40.24 |
[Add-On] Status /wp-admin/admin.php?page=streamweasels-status | 3.70 | 32.80 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/stream-status-for-twitch/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Twitch Live Status
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 13.65 ▼0.73 | 5.62 ▲3.99 | 43.38 ▲5.66 |
Dashboard /wp-admin | 2,261 ▲55 | 5.89 ▲1.00 | 116.48 ▲1.46 | 50.35 ▲9.21 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.19 ▲0.16 | 38.40 ▼0.43 | 37.74 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,572 ▲39 | 23.12 ▼0.35 | 633.92 ▼47.26 | 59.77 ▲3.60 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.27 ▲0.03 | 100.06 ▼16.84 | 49.35 ▲0.46 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,034 | 2.09 | 27.87 | 33.51 |
[Add-On] Status /wp-admin/admin.php?page=streamweasels-status | 803 | 1.72 | 26.08 | 27.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=streamweasels-status
- > Warning in wp-content/plugins/stream-status-for-twitch/admin/class-streamweasels-status-pro-admin.php+411
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-status
- > Warning in wp-content/plugins/stream-status-for-twitch/admin/class-streamweasels-status-pro-admin.php+411
include(): Failed opening 'wp-content/plugins/admin/partials/streamweasels-admin-display.php' for inclusion (include_path='.:/usr/share/php')
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/stream-status-for-twitch/admin/partials/streamweasels-status-pro-admin-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/stream-status-for-twitch/includes/class-streamweasels-tgmpa.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/stream-status-for-twitch/public/partials/streamweasels-status-pro-public-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #5 in stream-status-for-twitch/assets to your readme.txt
stream-status-for-twitch/stream-status-for-twitch.php 92% from 13 tests
The principal PHP file in "Twitch Live Status" v. 2.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,098 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 5,124 |
PHP | 13 | 694 | 2,172 | 2,333 |
Sass | 2 | 23 | 0 | 555 |
JavaScript | 6 | 15 | 14 | 85 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 26.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.64 |
▷ 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 | 146 | |
▷ Static methods | 7 | 4.79% |
▷ Public methods | 118 | 80.82% |
▷ Protected methods | 23 | 15.75% |
▷ Private methods | 5 | 3.42% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin