73% really-simple-featured-video

Code Review | Really Simple Featured Video - Featured video support for Posts, Pages & WooCommerce Products

WordPress plugin Really Simple Featured Video - Featured video support for Posts, Pages & WooCommerce Products scored73%from 54 tests.

About plugin

  • Plugin page: really-simple-fea...
  • Plugin version: 0.7.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2020
  • Latest release: Aug 1, 2023
  • Number of updates: 26
  • Update frequency: every 40.4 days
  • Top authors: lushkant (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active /15,058 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲5.47MB] [CPU: ▲23.73ms] 75% from 4 tests

A check of server-side resources used by Really Simple Featured Video - Featured video support for Posts, Pages & WooCommerce Products
Please have a look at the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.47MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.22 ▲5.7665.16 ▲17.32
Dashboard /wp-admin9.24 ▲5.9476.77 ▲26.41
Posts /wp-admin/edit.php9.25 ▲5.8883.10 ▲34.30
Add New Post /wp-admin/post-new.php10.20 ▲4.31109.67 ▲19.02
Media Library /wp-admin/upload.php9.25 ▲6.0167.94 ▲32.18
Really Simple Featured Video /wp-admin/options-general.php?page=rsfv-settings9.2563.18
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2560.97

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 213 new files
Database: no new tables, 17 new options
New WordPress options
db_upgraded
rsfv_previous_db_version
theme-engine-status
can_compress_scripts
rsfv_db_version
embed_video_controls
widget_recent-posts
rsfv_options
theme-compatibility-engine
post_types
...

Browser metrics Passed 4 tests

Checking browser requirements for Really Simple Featured Video - Featured video support for Posts, Pages & WooCommerce Products
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.38 ▲0.032.16 ▲0.3330.07 ▼13.38
Dashboard /wp-admin2,216 ▲395.57 ▼0.1187.19 ▼16.5242.79 ▼3.25
Posts /wp-admin/edit.php2,125 ▲251.98 ▼0.0042.58 ▲6.5338.99 ▲4.56
Add New Post /wp-admin/post-new.php6,261 ▲4,73318.88 ▼4.24879.32 ▲188.8365.45 ▲2.38
Media Library /wp-admin/upload.php1,421 ▲184.21 ▲0.0896.45 ▼3.7945.63 ▼0.83
Really Simple Featured Video /wp-admin/options-general.php?page=rsfv-settings9791.6528.1658.24
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0731.6624.0429.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/really-simple-featured-video/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 17 options
    • fs_active_plugins
    • theysaidso_admin_options
    • can_compress_scripts
    • post_types
    • widget_theysaidso_widget
    • fs_accounts
    • db_upgraded
    • fs_debug_mode
    • theme-engine-status
    • embed_video_controls
    • ...

Smoke tests 75% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'RSFV\\Compatibility\\Themes\\Base_Compatibility' not found in wp-content/plugins/really-simple-featured-video/includes/Compatibility/Themes/Fallback/class-compatibility.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'RSFV\\Compatibility\\Themes\\Base_Compatibility' not found in wp-content/plugins/really-simple-featured-video/includes/Compatibility/Themes/Core/Twentytwenty_Two/class-compatibility.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'RSFV\\Compatibility\\Themes\\Base_Compatibility' not found in wp-content/plugins/really-simple-featured-video/includes/Compatibility/Themes/Core/Twentytwenty_Three/class-compatibility.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'RSFV\\Compatibility\\Themes\\Base_Compatibility' not found in wp-content/plugins/really-simple-featured-video/includes/Compatibility/Themes/Core/Twentytwenty/class-compatibility.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'RSFV\\Compatibility\\Themes\\Base_Compatibility' not found in wp-content/plugins/really-simple-featured-video/includes/Compatibility/Themes/Core/Twentytwenty_One/class-compatibility.php:17

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerce, featured, youtube, product-video, video embed...

really-simple-featured-video/really-simple-featured-video.php 92% from 13 tests

The main PHP file in "Really Simple Featured Video - Featured video support for Posts, Pages & WooCommerce Products" ver. 0.7.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected35,520 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
PHP1428,49418,41834,914
JavaScript54778335
CSS15380241
Markdown122030

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity67.75
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes71
▷ Abstract classes57.04%
▷ Concrete classes6692.96%
▷ Final classes11.52%
Methods1,377
▷ Static methods21715.76%
▷ Public methods98371.39%
▷ Protected methods201.45%
▷ Private methods37427.16%
Functions108
▷ Named functions10698.15%
▷ Anonymous functions21.85%
Constants157
▷ Global constants10667.52%
▷ Class constants5132.48%
▷ Public constants51100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/images/video_frame.png1.16KB0.49KB▼ 57.60%
freemius/assets/img/really-simple-featured-video.png7.70KB3.33KB▼ 56.78%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%