Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼4.57ms] Passed 4 tests
A check of server-side resources used by SmartVideo - Video Player and CDN
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 39.03 ▼0.20 |
Dashboard /wp-admin | 3.51 ▲0.20 | 46.92 ▼1.11 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.27 ▼2.73 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 85.67 ▼14.22 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.62 ▲6.13 |
Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: no new tables, 13 new options
New WordPress options |
---|
swarmify_toggle_bgvideo |
swarmify_theme_button |
widget_theysaidso_widget |
can_compress_scripts |
swarmify_toggle_uploadacceleration |
db_upgraded |
widget_smartvideo_widget |
theysaidso_admin_options |
widget_recent-posts |
swarmify_toggle_youtube_cc |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SmartVideo - Video Player and CDN
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,650 ▼85 | 7.62 ▼6.67 | 81.29 ▲79.55 | 37.33 ▼0.48 |
Dashboard /wp-admin | 2,489 ▲298 | 6.16 ▲1.27 | 121.11 ▲16.49 | 68.71 ▲24.18 |
Posts /wp-admin/edit.php | 2,390 ▲301 | 2.95 ▲0.91 | 53.12 ▲15.90 | 56.58 ▲22.51 |
Add New Post /wp-admin/post-new.php | 6,708 ▲5,174 | 21.16 ▼1.87 | 853.51 ▲236.98 | 196.49 ▲133.87 |
Media Library /wp-admin/upload.php | 1,679 ▲291 | 5.21 ▲1.04 | 101.56 ▼8.86 | 83.78 ▲33.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 13 options
- swarmify_toggle_youtube_cc
- swarmify_toggle_layout
- widget_recent-comments
- swarmify_toggle_youtube
- db_upgraded
- widget_theysaidso_widget
- swarmify_toggle_uploadacceleration
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- ...
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smartvideo/page-builders/beaverbuilder/includes/frontend.css.php
- > /wp-content/plugins/smartvideo/public/partials/swarmify-public-display.php
- > /wp-content/plugins/smartvideo/admin/partials/swarmify-admin-display.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/smartvideo/admin/partials/dashboard-display.php:8
- > PHP Notice
Undefined variable: name in wp-content/plugins/smartvideo/admin/partials/footer-display.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/smartvideo/page-builders/elementor/elementorsmartvideo.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smartvideo/public/partials/swarmify-widget-display.php:94
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smartvideo/admin/partials/add-video-lightbox-display.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smartvideo/public/class-swarmify-public.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/smartvideo/admin/partials/configuration-display.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smartvideo/admin/partials/footer-display.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/smartvideo/admin/partials/settings-display.php:4
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/smartvideo/page-builders/beaverbuilder/class-beaverbuilder-smartvideo.php:3
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
smartvideo/SmartVideo.php 85% from 13 tests
"SmartVideo - Video Player and CDN" version 2.0.25's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("smartvideo.php" instead of "SmartVideo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin14,023 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 7,270 |
JavaScript | 15 | 117 | 69 | 3,677 |
PHP | 29 | 379 | 813 | 2,161 |
Markdown | 2 | 220 | 0 | 470 |
CSS | 9 | 56 | 18 | 273 |
JSX | 1 | 15 | 8 | 121 |
Sass | 3 | 3 | 1 | 38 |
SVG | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing 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.36 |
Average class complexity | 11.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 4 | 6.06% |
▷ Public methods | 57 | 86.36% |
▷ Protected methods | 2 | 3.03% |
▷ Private methods | 7 | 10.61% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/smartvideo_logo.png | 8.52KB | 4.28KB | ▼ 49.75% |
admin/images/smartvideo_icon.png | 1.13KB | 0.47KB | ▼ 58.65% |