Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼267.07ms] Passed 4 tests
Server-side resources used by Background Videos for Visual Composer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.18 | 34.33 ▲5.20 |
Dashboard /wp-admin | 3.12 ▲0.07 | 39.57 ▼6.50 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 44.24 ▲9.13 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 90.41 ▼1,055.00 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 31.32 ▼11.96 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Background Videos for Visual Composer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲67 | 15.90 ▲0.26 | 10.53 ▲2.39 | 46.51 ▲0.10 |
Dashboard /wp-admin | 2,927 ▲77 | 5.93 ▲0.09 | 138.96 ▲0.31 | 109.70 ▲6.00 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.68 ▼0.01 | 65.37 ▲0.01 | 86.22 ▼6.42 |
Add New Post /wp-admin/post-new.php | 1,853 ▲374 | 18.96 ▲2.14 | 368.75 ▲0.07 | 103.80 ▼7.27 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 5.00 ▼0.03 | 140.46 ▼20.71 | 103.54 ▼17.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/background-videos-for-visual-composer/background-videos-for-vc.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Plugin options for a Visual Composer row.), #2 (Plugin options (scrolled down).)
background-videos-for-visual-composer/background-videos-for-vc.php 92% from 13 tests
Analyzing the main PHP file in "Background Videos for Visual Composer" version 1.0.6
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("background-videos-for-visual-composer.php" instead of "background-videos-for-vc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin658 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 54 | 71 | 377 |
JavaScript | 2 | 75 | 87 | 196 |
CSS | 2 | 2 | 34 | 85 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 0.43MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 89.67KB | 30.65KB | ▼ 65.82% |
assets/patterns/black-broken-diagonal-lines.png | 0.21KB | 0.22KB | 0.00% |
assets/patterns/white-plus-signs.png | 0.13KB | 0.10KB | ▼ 20.61% |
assets/patterns/black-plus-signs.png | 0.12KB | 0.10KB | ▼ 16.13% |
assets/patterns/white-small-checks.png | 0.11KB | 0.10KB | ▼ 14.53% |