Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.40ms] Passed 4 tests
A check of server-side resources used by Live Stream Badger
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.54 ▼2.03 |
Dashboard /wp-admin | 3.33 ▼0.01 | 51.68 ▼16.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.79 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.90 ▼9.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.62 ▲6.75 |
Live Stream Badger /wp-admin/options-general.php?page=live-stream-badger | 3.20 | 32.97 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_lsb_stream_status_widget |
live-stream-badger:version |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Live Stream Badger
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.38 ▲0.08 | 1.69 ▼0.35 | 44.15 ▲0.11 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.05 | 97.13 ▲0.86 | 41.40 ▲1.43 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.01 ▲0.02 | 41.15 ▲2.53 | 37.15 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.02 ▲5.52 | 676.54 ▲13.81 | 62.35 ▲5.27 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.26 ▲0.02 | 110.25 ▲0.92 | 46.23 ▲3.78 |
Live Stream Badger /wp-admin/options-general.php?page=live-stream-badger | 872 | 2.02 | 24.74 | 31.78 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- live-stream-badger:version
- theysaidso_admin_options
- can_compress_scripts
- widget_lsb_stream_status_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=live-stream-badger
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=live-stream-badger
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-stream-badger/live-stream-badger-plugin.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/live-stream-badger/stream-status-widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'livestreambadger\\LSB_API' not found in wp-content/plugins/live-stream-badger/apis/twitch-api-v3.php:4
- > PHP Fatal error
Uncaught Error: Class 'livestreambadger\\LSB_View' not found in wp-content/plugins/live-stream-badger/view/class-embedded-twitch-view.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: widget, menu, live stream, twitch, stream status
live-stream-badger/live-stream-badger-plugin.php 92% from 13 tests
The entry point to "Live Stream Badger" version 1.4.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("live-stream-badger.php" instead of "live-stream-badger-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,043 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 239 | 301 | 897 |
Markdown | 1 | 48 | 0 | 110 |
CSS | 1 | 14 | 2 | 36 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 8 | 12.90% |
▷ Public methods | 55 | 88.71% |
▷ Protected methods | 4 | 6.45% |
▷ Private methods | 3 | 4.84% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 13 | |
▷ Global constants | 3 | 23.08% |
▷ Class constants | 10 | 76.92% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin