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
Installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▲0.89ms] Passed 4 tests
Analyzing server-side resources used by Video Connect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 49.49 ▲10.77 |
Dashboard /wp-admin | 3.90 ▲0.55 | 66.80 ▲7.59 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 57.90 ▲10.22 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 83.21 ▼14.81 |
Media Library /wp-admin/upload.php | 3.74 ▲0.50 | 37.09 ▲0.56 |
Product Video /wp-admin/admin.php?page=wpvideoproduct_settings | 3.73 | 38.93 |
CF7 Settings /wp-admin/admin.php?page=dna88-video-record | 3.80 | 36.58 |
All Video Widgets /wp-admin/edit.php?post_type=wp_videomsg_record | 3.87 | 47.24 |
Add new Video Widget /wp-admin/post-new.php?post_type=wp_videomsg_record | 3.81 | 46.88 |
Video Greetings /wp-admin/admin.php?page=wp_video_bubbles | 3.74 | 44.22 |
Server storage [IO: ▲2.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 18 new options
New WordPress options |
---|
dna88_wp_video_allow_mute |
widget_recent-comments |
can_compress_scripts |
dna88_wp_video_controls |
widget_theysaidso_widget |
dna88_wp_video_single_product_enable |
dna88_wp_video_allow_auto_play |
widget_recent-posts |
dna88_wp_video_allow_fullscreen_play |
dna88_wp_video_allow_video_title |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Video Connect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,853 ▲1,092 | 24.91 ▲10.20 | 249.37 ▲247.71 | 62.57 ▲22.75 |
Dashboard /wp-admin | 2,406 ▲229 | 6.51 ▲0.85 | 110.23 ▲21.62 | 39.66 ▼1.17 |
Posts /wp-admin/edit.php | 2,334 ▲234 | 3.74 ▲1.78 | 58.30 ▲20.33 | 38.82 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,584 ▲56 | 23.28 ▲0.31 | 649.29 ▼2.65 | 36.24 ▼12.44 |
Media Library /wp-admin/upload.php | 1,471 ▲68 | 4.44 ▲0.20 | 81.34 ▼13.89 | 44.22 ▲2.56 |
Product Video /wp-admin/admin.php?page=wpvideoproduct_settings | 1,246 | 3.47 | 43.21 | 88.70 |
CF7 Settings /wp-admin/admin.php?page=dna88-video-record | 1,354 | 3.69 | 46.89 | 91.60 |
All Video Widgets /wp-admin/edit.php?post_type=wp_videomsg_record | 1,323 | 3.72 | 48.94 | 71.68 |
Add new Video Widget /wp-admin/post-new.php?post_type=wp_videomsg_record | 1,787 | 4.07 | 64.20 | 80.58 |
Video Greetings /wp-admin/admin.php?page=wp_video_bubbles | 1,628 | 3.52 | 61.36 | 73.57 |
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 did not uninstall successfully, leaving 18 options in the database
- theysaidso_admin_options
- dna88_wp_video_allow_auto_play
- dna88_wp_video_single_product_enable
- widget_recent-comments
- dna88_wp_video_allow_mute
- dna88_wp_video_comment_lang_text_title
- dna88_wp_video_comment_lang_text_record_listen
- db_upgraded
- dna88_wp_video_comment_enable
- widget_theysaidso_widget
- ...
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/video-connect/wp-video-comment-view.php
- > /wp-content/plugins/video-connect/wp-video-comment-product.php
- > /wp-content/plugins/video-connect/wp-video-comment-help.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-connect/class-dna88-free-plugin-upgrade-notice.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/video-connect/video-widgets/templates/admin/video_bubble_options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-connect/modules/cf7_video/cf7.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/video-connect/video-widgets/templates/admin/video_options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/video-connect/video-widgets/templates/admin/video_template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/video-connect/video_bubble_options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-connect/modules/cf7_video/cf7-videomessage-create.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/video-connect/video-widgets/templates/frontend/default.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: featured video, video, contact form 7, woocommerce, video recording
video-connect/wp-video-comment-main.php 77% from 13 tests
The primary PHP file in "Video Connect" version 2.5.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "4.6")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("video-connect.php" instead of "wp-video-comment-main.php")
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
Good job! No executable or dangerous file extensions detected22,267 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 16,640 |
PHP | 15 | 809 | 308 | 2,534 |
CSS | 8 | 138 | 30 | 1,370 |
JavaScript | 7 | 366 | 164 | 1,038 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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 | 25.57 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 3 | 42.86% |
Methods | 68 | |
▷ Static methods | 3 | 4.41% |
▷ Public methods | 61 | 89.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.29% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.29MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
video-widgets/assets/images/thinking.png | 8.51KB | 3.57KB | ▼ 58.07% |
video-widgets/templates/admin/images/play_button_only.png | 7.83KB | 1.52KB | ▼ 80.62% |
video-widgets/templates/admin/images/call_to_action.png | 71.55KB | 18.78KB | ▼ 73.75% |
assets/images/screenshot-4.png | 14.26KB | 3.86KB | ▼ 72.92% |
video-widgets/templates/admin/images/default-template.png | 11.48KB | 4.67KB | ▼ 59.35% |