Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/bait-stream/baitStream.php+102
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.85ms] Passed 4 tests
Analyzing server-side resources used by Bait Stream for Twitch TV
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.97 ▲0.53 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.83 ▼4.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 55.05 ▲5.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.50 ▼19.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.04 ▼8.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Bait Stream for Twitch TV
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.49 | 1.66 ▼0.06 | 42.61 ▼3.99 |
Dashboard /wp-admin | 2,198 ▲18 | 5.66 ▼0.06 | 86.94 ▼5.19 | 39.80 ▼6.24 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.01 | 38.30 ▲1.53 | 33.20 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 17.73 ▼5.31 | 666.71 ▼41.37 | 53.01 ▼10.78 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▼0.01 | 97.06 ▼18.64 | 47.22 ▼0.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bait-stream/pages/settings.php:3
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/bait-stream/baitStream.php on line 102
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
bait-stream/baitStream.php 92% from 13 tests
"Bait Stream for Twitch TV" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bait-stream.php" instead of "baitStream.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected173 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 22 | 83 |
CSS | 1 | 9 | 0 | 75 |
JavaScript | 1 | 0 | 2 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/closeButton.png | 1.62KB | 0.53KB | ▼ 67.35% |
images/background.png | 0.90KB | 0.09KB | ▼ 89.71% |
images/taTwitchLogo.png | 5.92KB | 2.76KB | ▼ 53.42% |