Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.19MB] [CPU: ▼25.94ms] Passed 4 tests
Analyzing server-side resources used by Twitch Team Select
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.06 | 26.98 ▼16.16 |
Dashboard /wp-admin | 3.14 ▼0.21 | 32.12 ▼34.75 |
Posts /wp-admin/edit.php | 3.28 ▼0.09 | 33.84 ▼20.30 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.42 | 76.03 ▼32.55 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 31.53 ▼2.41 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Twitch Team Select
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲44 | 14.39 ▲0.10 | 2.18 ▲0.15 | 42.84 ▲2.94 |
Dashboard /wp-admin | 2,233 ▲59 | 5.59 ▲0.02 | 92.40 ▲4.18 | 41.00 ▲1.42 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.03 ▲0.05 | 36.36 ▲1.01 | 36.24 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,547 ▲18 | 23.08 ▼0.12 | 674.98 ▲26.26 | 63.08 ▲7.45 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.20 ▼0.06 | 111.50 ▲12.57 | 51.49 ▲5.69 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/select-twitch-team/twitch-team-select.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/select-twitch-team/includes/twitch-team-select-options.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: twitchtv, twitch, widget, team, embed...
select-twitch-team/twitch-team-select.php 92% from 13 tests
The main PHP script in "Twitch Team Select" version 0.0.4 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("select-twitch-team.php" instead of "twitch-team-select.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,025 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 35 | 44 | 344 |
HTML | 1 | 2 | 0 | 282 |
JSON | 1 | 0 | 0 | 106 |
PHP | 2 | 40 | 50 | 106 |
PO File | 1 | 33 | 51 | 85 |
JavaScript | 2 | 22 | 0 | 75 |
SVG | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.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 | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/teir2subteam.png | 8.63KB | 3.91KB | ▼ 54.74% |
assets/teir3subteam.png | 8.11KB | 3.68KB | ▼ 54.65% |
assets/teir1subteam.png | 8.14KB | 3.76KB | ▼ 53.77% |