Benchmarks
Plugin footprint 83% 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.12MB] [CPU: ▲1.45ms] Passed 4 tests
Server-side resources used by Cloudflare Stream Video
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.68 ▼0.24 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.42 ▼0.06 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 44.73 ▼0.27 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 93.82 ▲7.75 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.05 ▲6.35 |
Cloudflare Stream /wp-admin/options-general.php?page=cloudflare-stream | 3.32 | 32.51 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Cloudflare Stream Video
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.23 ▼1.14 | 4.47 ▲2.55 | 43.34 ▼5.87 |
Dashboard /wp-admin | 2,207 ▲25 | 5.84 ▼0.02 | 100.24 ▼6.95 | 37.89 ▼9.83 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 36.79 ▲2.09 | 33.66 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.12 ▼0.03 | 606.28 ▼49.40 | 52.28 ▼0.23 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.03 | 100.62 ▼2.90 | 42.59 ▼1.48 |
Cloudflare Stream /wp-admin/options-general.php?page=cloudflare-stream | 842 | 2.11 | 29.60 | 27.11 |
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 did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cloudflare-stream/src/inc/class-cloudflare-stream-shortcode.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cloudflare-stream/src/inc/class-cloudflare-stream-settings.php:59
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=cloudflare-stream
- > Console-api (severe) in wp-content/plugins/cloudflare-stream/src/heap.js?ver=1562695936+15:10
Event: Stream WP Plugin - Settings Page Visit
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: videos, block, block-enabled, stream, movies...
cloudflare-stream/cloudflare-stream.php 92% from 13 tests
The main PHP file in "Cloudflare Stream Video" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 340 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,536 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 174 | 1,944 | 912 |
PHP | 5 | 108 | 411 | 548 |
Sass | 3 | 10 | 2 | 74 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 31 | 81.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.42% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected