78% video-connect

Code Review | Video Connect

WordPress plugin Video Connect scored78%from 54 tests.

About plugin

  • Plugin page: video-connect
  • Plugin version: 2.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2022
  • Latest release: Oct 26, 2023
  • Number of updates: 30
  • Update frequency: every 21.5 days
  • Top authors: quantumcloud (73.33%)dna88 (30%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,286 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5249.49 ▲10.77
Dashboard /wp-admin3.90 ▲0.5566.80 ▲7.59
Posts /wp-admin/edit.php3.95 ▲0.5957.90 ▲10.22
Add New Post /wp-admin/post-new.php6.42 ▲0.5383.21 ▼14.81
Media Library /wp-admin/upload.php3.74 ▲0.5037.09 ▲0.56
Product Video /wp-admin/admin.php?page=wpvideoproduct_settings3.7338.93
CF7 Settings /wp-admin/admin.php?page=dna88-video-record3.8036.58
All Video Widgets /wp-admin/edit.php?post_type=wp_videomsg_record3.8747.24
Add new Video Widget /wp-admin/post-new.php?post_type=wp_videomsg_record3.8146.88
Video Greetings /wp-admin/admin.php?page=wp_video_bubbles3.7444.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,853 ▲1,09224.91 ▲10.20249.37 ▲247.7162.57 ▲22.75
Dashboard /wp-admin2,406 ▲2296.51 ▲0.85110.23 ▲21.6239.66 ▼1.17
Posts /wp-admin/edit.php2,334 ▲2343.74 ▲1.7858.30 ▲20.3338.82 ▲0.92
Add New Post /wp-admin/post-new.php1,584 ▲5623.28 ▲0.31649.29 ▼2.6536.24 ▼12.44
Media Library /wp-admin/upload.php1,471 ▲684.44 ▲0.2081.34 ▼13.8944.22 ▲2.56
Product Video /wp-admin/admin.php?page=wpvideoproduct_settings1,2463.4743.2188.70
CF7 Settings /wp-admin/admin.php?page=dna88-video-record1,3543.6946.8991.60
All Video Widgets /wp-admin/edit.php?post_type=wp_videomsg_record1,3233.7248.9471.68
Add new Video Widget /wp-admin/post-new.php?post_type=wp_videomsg_record1,7874.0764.2080.58
Video Greetings /wp-admin/admin.php?page=wp_video_bubbles1,6283.5261.3673.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

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:
LanguageFilesBlank linesComment linesLines of code
JSON10016,640
PHP158093082,534
CSS8138301,370
JavaScript73661641,038
SVG100685

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 code0.41
Average class complexity25.57
▷ Minimum class complexity8.00
▷ Maximum class complexity67.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes342.86%
Methods68
▷ Static methods34.41%
▷ Public methods6189.71%
▷ Protected methods00.00%
▷ Private methods710.29%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
video-widgets/assets/images/thinking.png8.51KB3.57KB▼ 58.07%
video-widgets/templates/admin/images/play_button_only.png7.83KB1.52KB▼ 80.62%
video-widgets/templates/admin/images/call_to_action.png71.55KB18.78KB▼ 73.75%
assets/images/screenshot-4.png14.26KB3.86KB▼ 72.92%
video-widgets/templates/admin/images/default-template.png11.48KB4.67KB▼ 59.35%