72% video-sync-for-vimeo

Code Review | WP Videos

WordPress plugin WP Videos scored72%from 54 tests.

About plugin

  • Plugin page: video-sync-for-vimeo
  • Plugin version: 3.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2016
  • Latest release: May 24, 2023
  • Number of updates: 192
  • Update frequency: every 13.2 days
  • Top authors: RogueWebDesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /23,611 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.59MB] [CPU: ▲3.96ms] Passed 4 tests

Analyzing server-side resources used by WP Videos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5347.08 ▲3.06
Dashboard /wp-admin3.93 ▲0.6262.03 ▲8.89
Posts /wp-admin/edit.php3.98 ▲0.6258.77 ▲8.10
Add New Post /wp-admin/post-new.php6.70 ▲0.82100.23 ▼4.23
Media Library /wp-admin/upload.php3.79 ▲0.5651.62 ▲17.07
Shortcodes/Blocks /wp-admin/admin.php?page=wpvs-shortcodes-blocks3.7645.24
Directors /wp-admin/edit-tags.php?taxonomy=rvs_directors&post_type=rvs_video3.7845.75
Actors /wp-admin/edit-tags.php?taxonomy=rvs_actors&post_type=rvs_video3.7846.28
Activation /wp-admin/admin.php?page=rvs-activation3.7647.11
Video Settings /wp-admin/admin.php?page=wpvs-video-settings3.8647.17
Add New /wp-admin/post-new.php?post_type=rvs_video6.70104.68
All Videos /wp-admin/edit.php?post_type=rvs_video3.9054.03
Video Tags /wp-admin/edit-tags.php?taxonomy=rvs_video_tags&post_type=rvs_video3.7848.45
Subscriptions /wp-admin/admin.php?page=rvs-membership-add-on3.7644.57
Genres / Categories /wp-admin/edit-tags.php?taxonomy=rvs_video_category&post_type=rvs_video3.7845.21

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_wp_videos_category_list_widget
wpv_vimeosync_current_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_wp_videos_list_widget

Browser metrics Passed 4 tests

WP Videos: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲24013.47 ▼1.129.40 ▲7.2640.78 ▼7.73
Dashboard /wp-admin2,304 ▲1245.69 ▲0.1590.71 ▼8.4838.95 ▼4.31
Posts /wp-admin/edit.php2,206 ▲1032.03 ▲0.0337.62 ▲0.3334.29 ▼4.06
Add New Post /wp-admin/post-new.php6,297 ▲4,77118.89 ▼4.12928.11 ▲233.5436.60 ▼28.74
Media Library /wp-admin/upload.php1,509 ▲1094.24 ▼0.0298.05 ▼9.6242.89 ▼4.01
Shortcodes/Blocks /wp-admin/admin.php?page=wpvs-shortcodes-blocks1,0832.0325.0931.42
Directors /wp-admin/edit-tags.php?taxonomy=rvs_directors&post_type=rvs_video1,3752.1629.2529.94
Actors /wp-admin/edit-tags.php?taxonomy=rvs_actors&post_type=rvs_video1,3692.1629.5030.09
Activation /wp-admin/admin.php?page=rvs-activation9782.0324.7329.55
Video Settings /wp-admin/admin.php?page=wpvs-video-settings5,3642.1634.3447.49
Add New /wp-admin/post-new.php?post_type=rvs_video6,87122.01918.1142.27
All Videos /wp-admin/edit.php?post_type=rvs_video1,2341.9533.9429.53
Video Tags /wp-admin/edit-tags.php?taxonomy=rvs_video_tags&post_type=rvs_video1,3522.2728.9630.78
Subscriptions /wp-admin/admin.php?page=rvs-membership-add-on9012.0624.3927.89
Genres / Categories /wp-admin/edit-tags.php?taxonomy=rvs_video_category&post_type=rvs_video1,3802.1928.9630.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • widget_wp_videos_list_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_wp_videos_category_list_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/video-sync-for-vimeo/includes/admin/wpvs-dashicons.php
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/video-sync-for-vimeo/includes/wpvs-functions.php:9
    • > PHP Notice
      Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-sync-for-vimeo/includes/admin/activation-manager.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/video-sync-for-vimeo/vimeo-sync.php:33
    • > PHP Notice
      Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-sync-for-vimeo/includes/wpvs-rest-api-functions.php:215
    • > PHP Notice
      Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-sync-for-vimeo/includes/rvs-post-options.php:2
    • > PHP Notice
      Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
    • > PHP Notice
      Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=rvs_video
    • > Network (severe)
    wp-content/plugins/video-sync-for-vimeo/css/responsive-video.css?ver=3.0.8 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: videos, video post type, wp videos, video, youtube...

video-sync-for-vimeo/vimeo-sync.php 77% from 13 tests

The principal PHP file in "WP Videos" v. 3.0.8 is loaded by WordPress automatically on each request
Please make the necessary changes and 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: The principal plugin file should be the same as the plugin slug ("video-sync-for-vimeo.php" instead of "vimeo-sync.php")
  • Domain Path: The domain path folder does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin5,399 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP24326493,601
CSS723291,121
JavaScript11682677

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity19.90
▷ Minimum class complexity3.00
▷ Maximum class complexity65.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods5691.80%
▷ Protected methods23.28%
▷ Private methods34.92%
Functions54
▷ Named functions4583.33%
▷ Anonymous functions916.67%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
image/missing-image.png4.42KB2.29KB▼ 48.21%