Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▲3.24ms] 75% from 4 tests
Server-side resources used by WpStream - Live Streaming, Video on Demand, Pay Per View
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,414.47ms on /wp-admin/admin.php?page=wpstream_recordings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 45.52 ▲5.23 |
Dashboard /wp-admin | 3.64 ▲0.29 | 53.15 ▼2.36 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 56.01 ▲7.43 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 92.73 ▲2.67 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 40.41 ▲7.58 |
Movie Ratings /wp-admin/edit-tags.php?taxonomy=wpstream_movie_rating&post_type=wpstream_product | 3.53 | 36.15 |
Settings /wp-admin/admin.php?page=wpstream_settings | 3.51 | 41.31 |
All Free-To-View Live Channels /wp-admin/edit.php?post_type=wpstream_product | 3.63 | 42.99 |
Credentials /wp-admin/admin.php?page=wpstream_credentials | 3.50 | 475.32 |
All Free-To-View VODs /wp-admin/edit.php?post_type=wpstream_product_vod | 3.63 | 42.97 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wpstream_product_vod | 3.56 | 38.97 |
Add New /wp-admin/post-new.php?post_type=wpstream_product_vod | 3.74 | 491.23 |
Recordings /wp-admin/admin.php?page=wpstream_recordings | 3.49 | 1,414.47 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpstream_product | 3.53 | 37.22 |
Actors /wp-admin/edit-tags.php?taxonomy=wpstream_actors&post_type=wpstream_product | 3.53 | 33.39 |
Server storage [IO: ▲5.28MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 104 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
category_children |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WpStream - Live Streaming, Video on Demand, Pay Per View
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,193 ▲446 | 17.62 ▲3.27 | 130.36 ▲128.67 | 45.99 ▲1.12 |
Dashboard /wp-admin | 2,369 ▲198 | 4.95 ▼0.64 | 95.74 ▲5.04 | 89.06 ▲51.93 |
Posts /wp-admin/edit.php | 2,279 ▲176 | 2.53 ▲0.56 | 38.22 ▲1.01 | 42.58 ▲7.18 |
Add New Post /wp-admin/post-new.php | 1,831 ▲305 | 22.63 ▼0.52 | 825.44 ▲95.42 | 47.35 ▼12.85 |
Media Library /wp-admin/upload.php | 1,574 ▲174 | 4.56 ▲0.51 | 100.04 ▲2.35 | 94.47 ▲53.54 |
Movie Ratings /wp-admin/edit-tags.php?taxonomy=wpstream_movie_rating&post_type=wpstream_product | 1,494 | 2.30 | 36.38 | 40.93 |
Settings /wp-admin/admin.php?page=wpstream_settings | 1,059 | 2.13 | 31.86 | 54.94 |
All Free-To-View Live Channels /wp-admin/edit.php?post_type=wpstream_product | 1,356 | 2.60 | 38.26 | 44.08 |
Credentials /wp-admin/admin.php?page=wpstream_credentials | 993 | 2.13 | 33.02 | 43.11 |
All Free-To-View VODs /wp-admin/edit.php?post_type=wpstream_product_vod | 1,332 | 2.48 | 35.65 | 41.58 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wpstream_product_vod | 1,501 | 2.30 | 32.04 | 41.81 |
Add New /wp-admin/post-new.php?post_type=wpstream_product_vod | 3,151 | 8.37 | 182.60 | 146.61 |
Recordings /wp-admin/admin.php?page=wpstream_recordings | 971 | 2.14 | 32.49 | 42.66 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpstream_product | 1,672 | 2.29 | 33.64 | 46.42 |
Actors /wp-admin/edit-tags.php?taxonomy=wpstream_actors&post_type=wpstream_product | 1,488 | 2.28 | 32.13 | 40.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- category_children
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=wpstream_actors&post_type=wpstream_product
- > Notice in wp-content/plugins/wpstream/includes/class-wpstream_product.php+499
Trying to get property 'taxonomy' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpstream_recordings
- > Notice in wp-content/plugins/wpstream/admin/class-wpstream-admin.php+1834
Undefined index: items
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
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpstream/includes/templates/wpstream_chat_template.php
- > /wp-content/plugins/wpstream/admin/partials/wpstream-admin-display.php
- > /wp-content/plugins/wpstream/public/partials/wpstream-public-display.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpstream/woocommerce/myaccount/video_list.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpstream/integrations/buddyboss/buddyboss.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function ElementorWpStream\\add_action() in wp-content/plugins/wpstream/wpstream-elementor-base.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpstream/woocommerce/myaccount/event_list.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Product' not found in wp-content/plugins/wpstream/includes/class-wc_product_video_on_demand.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Product' not found in wp-content/plugins/wpstream/includes/class-wc_product_live_stream.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
wpstream/wpstream.php 92% from 13 tests
The main PHP file in "WpStream - Live Streaming, Video on Demand, Pay Per View" ver. 4.5.11.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 261 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected17,454 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 3,099 | 2,333 | 6,770 |
CSS | 13 | 828 | 78 | 5,019 |
JavaScript | 18 | 1,162 | 795 | 4,790 |
SVG | 9 | 0 | 0 | 784 |
Markdown | 1 | 55 | 0 | 91 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 36.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 274 | |
▷ Static methods | 3 | 1.09% |
▷ Public methods | 245 | 89.42% |
▷ Protected methods | 18 | 6.57% |
▷ Private methods | 11 | 4.01% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/default_150.png | 1.25KB | 1.30KB | 0.00% |
img/plugin-logo.png | 0.43KB | 0.44KB | 0.00% |
img/default_300.png | 3.57KB | 3.78KB | 0.00% |
admin/css/home-decor-lines3.png | 14.25KB | 15.40KB | 0.00% |
public/js/list_media.png | 1.08KB | 0.14KB | ▼ 86.57% |