Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲6.18ms] Passed 4 tests
Analyzing server-side resources used by Video Background
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 44.63 ▲4.79 |
Dashboard /wp-admin | 4.03 ▲0.73 | 54.18 ▲9.57 |
Posts /wp-admin/edit.php | 4.07 ▲0.71 | 48.19 ▲3.34 |
Add New Post /wp-admin/post-new.php | 7.03 ▲1.14 | 94.61 ▲9.44 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 39.13 ▲7.13 |
Video Background /wp-admin/options-general.php?page=pushlabs-vidbg | 3.93 | 35.26 |
Server storage [IO: ▲3.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 383 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Video Background
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲67 | 13.38 ▼1.00 | 1.86 ▼0.08 | 44.74 ▲2.94 |
Dashboard /wp-admin | 2,242 ▲54 | 5.03 ▲0.13 | 118.20 ▲20.52 | 42.21 ▼1.15 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.16 ▲0.17 | 37.44 ▲1.58 | 34.93 ▲1.48 |
Add New Post /wp-admin/post-new.php | 6,551 ▲5,014 | 26.26 ▲3.09 | 939.46 ▲266.20 | 44.36 ▼8.05 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.36 ▲0.11 | 98.19 ▲0.22 | 42.36 ▼0.95 |
Video Background /wp-admin/options-general.php?page=pushlabs-vidbg | 860 | 2.30 | 25.80 | 27.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/video-background/inc/vendor/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/video-background/inc/vendor/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/video-background/inc/vendor/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/video-background/inc/vendor/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/video-background/inc/vendor/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-background/inc/vendor/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/video-background/inc/vendor/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/video-background/inc/classes/cmb2_field_slider.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/video-background/inc/vendor/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/video-background/inc/vendor/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > 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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== video-background ===
)
video-background/candide-vidbg.php 92% from 13 tests
The principal PHP file in "Video Background" v. 2.7.5 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("video-background.php" instead of "candide-vidbg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected55,640 lines of code in 232 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 62 | 2,334 | 6,724 | 8,044 |
JSON | 2 | 0 | 0 | 6,602 |
CSS | 15 | 268 | 1,200 | 4,700 |
JavaScript | 11 | 439 | 704 | 1,722 |
Sass | 18 | 312 | 29 | 1,466 |
Markdown | 3 | 249 | 0 | 768 |
SVG | 1 | 0 | 1 | 15 |
PHP code Passed 2 tests
An overview 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.47 |
Average class complexity | 19.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 9 | 12.68% |
▷ Concrete classes | 62 | 87.32% |
▷ Final classes | 0 | 0.00% |
Methods | 553 | |
▷ Static methods | 91 | 16.46% |
▷ Public methods | 461 | 83.36% |
▷ Protected methods | 89 | 16.09% |
▷ Private methods | 3 | 0.54% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 7 | 50.00% |
▷ Class constants | 7 | 50.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/vendor/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
inc/vendor/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/vendor/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
inc/vendor/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
inc/vendor/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |