67% vidseo

Code Review | VidSEO | Wordpress Video SEO embedder with transcripts (Youtube & Vimeo)

WordPress plugin VidSEO | Wordpress Video SEO embedder with transcripts (Youtube & Vimeo) scored67%from 54 tests.

About plugin

  • Plugin page: vidseo
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2019
  • Latest release: Aug 25, 2023
  • Number of updates: 35
  • Update frequency: every 40.6 days
  • Top authors: pagup (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /6,431 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.07MB] [CPU: ▲21.53ms] 75% from 4 tests

An overview of server-side resources used by VidSEO | Wordpress Video SEO embedder with transcripts (Youtube & Vimeo)
It is recommended to improve the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.07MB on /wp-admin/post-new.php?post_type=vidseo)
PageMemory (MB)CPU Time (ms)
Home /8.93 ▲5.4760.65 ▲17.12
Dashboard /wp-admin8.95 ▲5.6571.97 ▲22.17
Posts /wp-admin/edit.php8.96 ▲5.6081.30 ▲32.53
Add New Post /wp-admin/post-new.php9.43 ▲3.55110.63 ▲17.78
Media Library /wp-admin/upload.php8.96 ▲5.7364.45 ▲29.06
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9657.92
Settings /wp-admin/edit.php?post_type=vidseo&page=settings8.9665.66
All Items /wp-admin/edit.php?post_type=vidseo8.9662.17
Add New /wp-admin/post-new.php?post_type=vidseo8.9668.05

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 283 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
fs_debug_mode
fs_accounts
theysaidso_admin_options
fs_active_plugins
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by VidSEO | Wordpress Video SEO embedder with transcripts (Youtube & Vimeo)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲20814.00 ▼0.405.40 ▲3.5828.98 ▼14.01
Dashboard /wp-admin2,252 ▲645.82 ▲0.73114.05 ▼4.3845.06 ▲1.04
Posts /wp-admin/edit.php2,135 ▲432.05 ▼0.0140.90 ▲4.6238.61 ▲4.89
Add New Post /wp-admin/post-new.php1,542 ▼223.04 ▼0.32651.96 ▼21.4557.05 ▼3.38
Media Library /wp-admin/upload.php1,437 ▲494.23 ▲0.02100.90 ▼8.4649.60 ▲3.96
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1091.7122.5725.55
Settings /wp-admin/edit.php?post_type=vidseo&page=settings1,2503.4849.1575.00
All Items /wp-admin/edit.php?post_type=vidseo1,2893.4448.8730.19
Add New /wp-admin/post-new.php?post_type=vidseo3,4925.18111.43138.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/vidseo/vendor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • fs_active_plugins
    • fs_debug_mode
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • fs_accounts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 44× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/vidseo/admin/views/inc/sidebar.view.php:6
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vidseo/admin/views/shortcode/video.view.php on line 4
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vidseo/admin/views/shortcode/video.view.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/vidseo/admin/views/shortcode/video.view.php on line 30
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vidseo/admin/views/shortcode/video.view.php on line 33
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vidseo/admin/views/shortcode/video.view.php on line 27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/vidseo/admin/views/inc/top.view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/vidseo/admin/views/inc/step-1.view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/vidseo/admin/views/inc/step-2-3.view.php:1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vidseo/admin/views/shortcode/video.view.php on line 17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=vidseo
    • > Javascript (severe) in unknown
    /wp-content/plugins/vidseo/admin/assets/app.min.js?ver=1640137044 0:69 Uncaught ReferenceError: meta is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #3, #4, #5, #6, #7 in vidseo/assets to your readme.txt
The official readme.txt might help

vidseo/video-seo-transcription-embedder.php 85% from 13 tests

The principal PHP file in "VidSEO | Wordpress Video SEO embedder with transcripts (Youtube & Vimeo)" v. 1.2.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("vidseo.php" instead of "video-seo-transcription-embedder.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected53,727 lines of code in 197 files:
LanguageFilesBlank linesComment linesLines of code
PHP1528,64817,49835,374
JavaScript91,5281,76111,028
PO File201,9802,1006,673
CSS154414644
JSON1008

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity74.26
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes62
▷ Abstract classes23.23%
▷ Concrete classes6096.77%
▷ Final classes00.00%
Methods1,317
▷ Static methods21516.32%
▷ Public methods92770.39%
▷ Protected methods171.29%
▷ Private methods37328.32%
Functions105
▷ Named functions10398.10%
▷ Anonymous functions21.90%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.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
15 PNG files occupy 0.44MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/imgs/pro.png185.86KB78.27KB▼ 57.89%
admin/assets/imgs/5.png28.95KB8.79KB▼ 69.64%
vendor/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
admin/assets/imgs/3.png7.70KB3.50KB▼ 54.56%
admin/assets/imgs/p11.png25.15KB11.84KB▼ 52.91%