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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.63ms] Passed 4 tests
Server-side resources used by Video Backgrounds for SiteOrigin Page Builder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.86 ▲1.78 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.15 ▼6.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 52.04 ▼2.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.28 ▼15.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.57 ▲1.75 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Video Backgrounds for SiteOrigin Page Builder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 13.66 ▼0.99 | 6.11 ▲4.02 | 38.08 ▼5.84 |
Dashboard /wp-admin | 2,215 ▲12 | 5.83 ▲0.02 | 104.12 ▼2.09 | 36.49 ▲0.15 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▼0.05 | 36.44 ▼3.11 | 35.39 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,540 ▲9 | 23.20 ▲0.12 | 622.99 ▼29.77 | 52.76 ▼1.03 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.32 ▲0.12 | 107.91 ▼3.47 | 52.59 ▲3.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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 | 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 fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/video-backgrounds-for-siteorigin-page-builder/background-videos-for-siteorigin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Plugin options for a SiteOrigin page builder row.), #2 (Plugin options (scrolled down).)
video-backgrounds-for-siteorigin-page-builder/background-videos-for-siteorigin.php 92% from 13 tests
"Video Backgrounds for SiteOrigin Page Builder" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("video-backgrounds-for-siteorigin-page-builder.php" instead of "background-videos-for-siteorigin.php")
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
There were no executable files found in this plugin595 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 74 | 327 |
JavaScript | 1 | 50 | 46 | 158 |
CSS | 2 | 4 | 36 | 110 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 5.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/patterns/white-zig-zag.png | 0.13KB | 0.10KB | ▼ 25.55% |
assets/patterns/black-squares.png | 0.13KB | 0.10KB | ▼ 20.93% |
assets/patterns/black-criss-cross.png | 0.12KB | 0.10KB | ▼ 13.56% |
assets/patterns/white-horizontal-stripes.png | 0.11KB | 0.10KB | ▼ 11.50% |
assets/patterns/white-plus-signs.png | 0.13KB | 0.10KB | ▼ 20.61% |