Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼6.04ms] Passed 4 tests
Server-side resources used by Twitch Status
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 42.41 ▼1.33 |
Dashboard /wp-admin | 3.45 ▲0.10 | 44.71 ▼17.66 |
Posts /wp-admin/edit.php | 3.57 ▲0.20 | 49.51 ▲1.04 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 92.89 ▼6.19 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 37.83 ▲3.17 |
Twitch status /wp-admin/options-general.php?page=twitch_status | 3.34 | 33.13 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_twitch-status_widget |
twitch_status_token |
widget_recent-comments |
twitch_status_token_expiration |
twitch_status_token_type |
widget_theysaidso_widget |
widget_recent-posts |
twitch_status_channels |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Twitch Status
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.15 ▼0.14 | 2.66 ▲0.77 | 45.14 ▲5.05 |
Dashboard /wp-admin | 2,218 ▲48 | 5.63 ▲0.08 | 81.77 ▼18.97 | 38.01 ▼3.08 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 1.99 ▼0.03 | 38.46 ▲3.61 | 34.93 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 22.94 ▼0.19 | 575.04 ▼80.69 | 59.29 ▲10.55 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.19 ▲0.01 | 96.51 ▲1.76 | 41.25 ▲1.22 |
Twitch status /wp-admin/options-general.php?page=twitch_status | 882 | 1.99 | 21.70 | 35.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 11 options in the database
- db_upgraded
- widget_recent-comments
- twitch_status_token
- widget_recent-posts
- twitch_status_channels
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_twitch-status_widget
- twitch_status_token_expiration
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitch-status/includes/twitch-status-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitch-status/includes/twitch-status-options.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/twitch-status/twitch-status.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
twitch-status/twitch-status.php Passed 13 tests
The main PHP file in "Twitch Status" ver. 1.5.1 adds more information about the plugin and also serves as the entry point for this plugin
43 characters long description:
Insert Twitch.tv online status in WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,645 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 130 | 159 | 552 |
CSS | 7 | 65 | 53 | 382 |
HTML | 1 | 2 | 0 | 282 |
JavaScript | 2 | 58 | 42 | 182 |
PO File | 1 | 40 | 57 | 113 |
JSON | 2 | 0 | 0 | 107 |
SVG | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 5.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 23 | 71.88% |
▷ Anonymous functions | 9 | 28.12% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/live-button.png | 2.28KB | 1.11KB | ▼ 51.20% |
assets/GlitchBadge_Purple_256px.png | 15.26KB | 0.84KB | ▼ 94.46% |
assets/GlitchBadge_White_256px.png | 15.25KB | 0.75KB | ▼ 95.12% |