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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.34ms] Passed 4 tests
Analyzing server-side resources used by Video Analytics for Cloudflare Stream
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.72 ▼8.04 |
Dashboard /wp-admin | 3.33 ▲0.03 | 41.58 ▼7.93 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.59 ▼2.26 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.55 ▼7.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.63 ▼1.69 |
Settings /wp-admin/admin.php?page=cfsa-plugin-2 | 3.22 | 25.44 |
/wp-admin/options.php?page=cfsa-plugin-view | 3.22 | 29.32 |
Video Analytics for Cloudflare /wp-admin/admin.php?page=cfsa-plugin | 3.19 | 29.36 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Video Analytics for Cloudflare Stream
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.56 ▼0.74 | 1.88 ▼0.05 | 39.12 ▼14.06 |
Dashboard /wp-admin | 2,233 ▲48 | 4.86 ▼0.26 | 111.32 ▼3.30 | 42.56 ▼5.33 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.98 ▼0.01 | 38.65 ▼1.08 | 38.73 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,559 ▲25 | 23.28 ▲0.09 | 655.41 ▼19.54 | 55.40 ▲5.22 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.23 ▲0.03 | 97.52 ▼8.53 | 41.53 ▼1.42 |
Settings /wp-admin/admin.php?page=cfsa-plugin-2 | 876 | 2.18 | 29.24 | 28.31 |
/wp-admin/options.php?page=cfsa-plugin-view | 790 | 2.02 | 21.86 | 22.53 |
Video Analytics for Cloudflare /wp-admin/admin.php?page=cfsa-plugin | 889 | 2.02 | 21.59 | 28.05 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cfsa-plugin
- > Notice in wp-content/plugins/video-analytics-for-cloudflare-stream/csa-options.php+31
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/video-analytics-for-cloudflare-stream/csa-options.php:334
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: analytics, stream, cloudflare, video
video-analytics-for-cloudflare-stream/video-analytics-for-cloudflare-stream.php Passed 13 tests
The main file in "Video Analytics for Cloudflare Stream" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
Video Analytics for Cloudflare Stream
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
Success! There were no dangerous files found in this plugin423 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 77 | 47 | 423 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 18.50KB | 20.57KB | 0.00% |