10% featured-video-plus

Code Review | Featured Video Plus

WordPress plugin Featured Video Plus scored 10% from 54 tests.

About plugin

  • Plugin page: featured-video-plus
  • Plugin version: 2.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 6.3.1
  • First release: Dec 13, 2012
  • Latest release: Dec 18, 2016
  • Number of updates: 80
  • Update frequency: every 18.3 days
  • Top authors: a.hoereth (100%)

Code review

54 tests

User reviews

79 reviews

Install metrics

20,000+ active / 304,867 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5643
    File class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead.

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.62ms] Passed 4 tests

Analyzing server-side resources used by Featured Video Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.81 ▼36.01
Dashboard /wp-admin2.05 ▼1.267.07 ▼37.82
Posts /wp-admin/edit.php2.05 ▼1.316.11 ▼40.07
Add New Post /wp-admin/post-new.php2.05 ▼3.845.52 ▼88.57
Media Library /wp-admin/upload.php2.05 ▼1.185.80 ▼28.20

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
fvp-settings
widget_recent-posts
can_compress_scripts
fvp-version
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Featured Video Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲19213.61 ▼0.779.03 ▲7.4237.08 ▼1.77
Dashboard /wp-admin2,209 ▲204.86 ▼0.11108.47 ▼7.7736.58 ▼6.31
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0539.03 ▲1.9734.25 ▲0.19
Add New Post /wp-admin/post-new.php6,499 ▲4,97920.40 ▼2.78941.69 ▲293.1338.81 ▼15.86
Media Library /wp-admin/upload.php1,382 ▼64.27 ▲0.07105.81 ▲5.0645.54 ▼1.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5643
    File class-oembed.php is deprecated since version 5.3.0! Use wp-includes/class-wp-oembed.php instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • fvp-version
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/featured-video-plus/php/inc-upgrade.php
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/featured-video-plus/php/inc-install.php:20
    • > PHP Fatal error
      require_once(): Failed opening required 'FVP_DIRphp/class-html.php' (include_path='.:/usr/share/php') in wp-content/plugins/featured-video-plus/php/class-settings.php on line 4
    • > PHP Warning
      require_once(FVP_DIRphp/class-html.php): failed to open stream: No such file or directory in wp-content/plugins/featured-video-plus/php/class-main.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FVP_DIRphp/class-html.php' (include_path='.:/usr/share/php') in wp-content/plugins/featured-video-plus/php/class-backend.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FVP_DIRphp/class-main.php' (include_path='.:/usr/share/php') in wp-content/plugins/featured-video-plus/php/class-frontend.php on line 4
    • > PHP Warning
      Use of undefined constant FVP_DIR - assumed 'FVP_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/featured-video-plus/php/class-main.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/featured-video-plus/featured-video-plus.php:38
    • > PHP Warning
      require_once(FVP_DIRphp/class-html.php): failed to open stream: No such file or directory in wp-content/plugins/featured-video-plus/php/class-backend.php on line 4
    • > PHP Warning
      Use of undefined constant FVP_DIR - assumed 'FVP_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/featured-video-plus/php/class-help.php on line 4
    • > PHP Warning
      require_once(FVP_DIRphp/class-main.php): failed to open stream: No such file or directory in wp-content/plugins/featured-video-plus/php/class-frontend.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can look at the official readme.txt

featured-video-plus/featured-video-plus.php Passed 13 tests

"Featured Video Plus" version 2.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Add Featured Videos to your posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected4,447 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP125568812,484
JavaScript132562361,017
PO File2152162320
CSS300218
LESS43716208
Markdown3650171
JSON10029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity43.43
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods83
▷ Static methods2732.53%
▷ Public methods6477.11%
▷ Protected methods44.82%
▷ Private methods1518.07%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/playicon.png0.55KB0.71KB0.00%
img/placeholder.png1.26KB0.93KB▼ 26.51%