Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.12MB] [CPU: ▲32.48ms] 75% from 4 tests
This is a short check of server-side resources used by StreamWeasels Kick Integration
Please take the time to fix the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.12MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.42 | 66.94 ▲28.99 |
Dashboard /wp-admin | 8.91 ▲5.60 | 86.47 ▲35.49 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 92.58 ▲44.77 |
Add New Post /wp-admin/post-new.php | 9.77 ▲3.88 | 111.27 ▲21.82 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 78.32 ▲43.63 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.91 | 65.00 |
Server storage [IO: ▲4.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 256 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
theysaidso_admin_options |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for StreamWeasels Kick Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,122 ▲360 | 15.48 ▲1.20 | 5.62 ▲3.88 | 30.66 ▼12.86 |
Dashboard /wp-admin | 2,398 ▲220 | 6.54 ▲0.85 | 123.02 ▲24.84 | 44.64 ▲6.99 |
Posts /wp-admin/edit.php | 2,340 ▲243 | 3.67 ▲1.64 | 51.24 ▲13.83 | 31.85 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,747 ▲221 | 25.26 ▲2.03 | 632.81 ▼59.18 | 42.31 ▼10.89 |
Media Library /wp-admin/upload.php | 1,475 ▲78 | 4.48 ▲0.31 | 91.40 ▼15.61 | 48.24 ▲6.01 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,320 | 3.41 | 47.97 | 30.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/streamweasels-kick-integration/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- fs_accounts
- widget_recent-posts
- fs_active_plugins
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- fs_debug_mode
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/streamweasels-kick-integration/public/partials/streamweasels-kick-integration-public-display.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/streamweasels-kick-integration/public/partials/streamweasels-kick-status-public-display.php:18
- > PHP Warning
Use of undefined constant SWKI_PLUGIN_DIR - assumed 'SWKI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/streamweasels-kick-integration/admin/partials/streamweasels-kick-integration-admin-sidebar.php on line 54
- > PHP Fatal error
Uncaught Error: Class 'Streamweasels_Kick_Integration_Admin' not found in wp-content/plugins/streamweasels-kick-integration/admin/class-streamweasels-kick-integration-admin-feature.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/streamweasels-kick-integration/public/partials/streamweasels-kick-wall-public-display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/streamweasels-kick-integration/admin/partials/streamweasels-kick-integration-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/streamweasels-kick-integration/public/partials/streamweasels-kick-feature-public-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'Streamweasels_Kick_Integration_Admin' not found in wp-content/plugins/streamweasels-kick-integration/admin/class-streamweasels-kick-integration-admin-wall.php:3
- > PHP Fatal error
Uncaught Error: Class 'Streamweasels_Kick_Integration_Admin' not found in wp-content/plugins/streamweasels-kick-integration/admin/class-streamweasels-kick-integration-admin-status.php:23
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/streamweasels-kick-integration/admin/partials/streamweasels-kick-integration-admin-sidebar.php:70
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: kick, kick streams, kick integration, kick widget, kick embed...
streamweasels-kick-integration/streamweasels-kick-integration.php Passed 13 tests
The primary PHP file in "StreamWeasels Kick Integration" version 1.0.5 is used by WordPress to initiate all plugin functionality
67 characters long description:
StreamWeasels Kick Integration for embedding live streams from Kick
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin39,941 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 8,549 | 18,049 | 36,304 |
Sass | 10 | 61 | 69 | 2,132 |
JavaScript | 18 | 142 | 231 | 1,314 |
JSON | 4 | 0 | 0 | 170 |
CSS | 22 | 1 | 2 | 21 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 76.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,401 | |
▷ Static methods | 201 | 14.35% |
▷ Public methods | 996 | 71.09% |
▷ Protected methods | 17 | 1.21% |
▷ Private methods | 388 | 27.69% |
Functions | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.33MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/feature.png | 23.03KB | 10.89KB | ▼ 52.70% |
admin/img/twitch-logo.png | 2.30KB | 0.74KB | ▼ 67.87% |
admin/img/wall.png | 28.58KB | 13.82KB | ▼ 51.65% |
img/kick-icon.png | 1.33KB | 0.80KB | ▼ 40.07% |
public/img/sw-blank.png | 2.93KB | 0.54KB | ▼ 81.50% |