Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼136.80ms] Passed 4 tests
Server-side resources used by LiveTwitch
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.16 | 40.68 ▲6.61 |
Dashboard /wp-admin | 3.29 ▲0.23 | 1,054.21 ▲1,007.68 |
Posts /wp-admin/edit.php | 3.33 ▲0.22 | 45.36 ▼0.74 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 97.07 ▼551.66 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 34.92 ▼1.40 |
LiveTwitch /wp-admin/options-general.php?page=twitch_live | 3.10 | 28.65 |
Add New /wp-admin/post-new.php?post_type=twitch | 3.19 | 43.51 |
Twitch /wp-admin/edit.php?post_type=twitch | 3.20 | 37.97 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_livetwitchwidget |
Browser metrics Passed 4 tests
A check of browser resources used by LiveTwitch
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,856 ▲284 | 16.24 ▲0.71 | 13.37 ▲4.03 | 51.69 ▲1.74 |
Dashboard /wp-admin | 3,013 ▲82 | 5.86 ▼0.28 | 144.41 ▼2.34 | 108.82 ▼1.54 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.71 ▼0.02 | 102.46 ▲31.61 | 88.84 ▲2.91 |
Add New Post /wp-admin/post-new.php | 1,698 ▲15 | 18.82 ▼0.02 | 390.10 ▼13.11 | 103.69 ▼7.73 |
Media Library /wp-admin/upload.php | 1,773 ▼34 | 5.03 ▲0.02 | 156.16 ▼7.23 | 115.38 ▼2.89 |
LiveTwitch /wp-admin/options-general.php?page=twitch_live | 1,108 | 2.09 | 51.18 | 82.23 |
Add New /wp-admin/post-new.php?post_type=twitch | 2,096 | 3.34 | 83.74 | 106.83 |
Twitch /wp-admin/edit.php?post_type=twitch | 1,436 | 2.63 | 68.43 | 71.25 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_livetwitchwidget
Smoke tests 25% 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)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitch_live
- > Notice in wp-content/plugins/livetwitch/admin/class-twitch-admin.php+117
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/livetwitch/admin/partials/twitch-admin-display.php
- 4× 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/livetwitch/includes/class-twitch-widget_old.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/livetwitch/includes/class-twitch.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/livetwitch/includes/class-twitch.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/livetwitch/includes/class-twitch-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== livetwitch ===
)
livetwitch/live-twitch.php 85% from 13 tests
"LiveTwitch" version 0.0.3'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:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: The principal plugin file should be the same as the plugin slug ("livetwitch.php" instead of "live-twitch.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,042 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 235 | 622 | 867 |
CSS | 2 | 10 | 8 | 172 |
JavaScript | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 9 | 14.52% |
▷ Public methods | 52 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 16.13% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin