84% featured-videos-for-genesis

Code Review | Genesis Featured Video

WordPress plugin Genesis Featured Video scored84%from 54 tests.

About plugin

  • Plugin page: featured-videos-f...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2016
  • Latest release: Oct 13, 2021
  • Number of updates: 27
  • Update frequency: every 67.5 days
  • Top authors: scott.deluzio (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /18,294 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.80ms] Passed 4 tests

Analyzing server-side resources used by Genesis Featured Video
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1739.88 ▼1.61
Dashboard /wp-admin3.48 ▲0.1845.28 ▼4.09
Posts /wp-admin/edit.php3.59 ▲0.2442.73 ▼1.72
Add New Post /wp-admin/post-new.php6.06 ▲0.1781.22 ▼11.79
Media Library /wp-admin/upload.php3.40 ▲0.1838.02 ▲0.11
Featured Video /wp-admin/admin.php?page=gfv-settings3.3732.66

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_featured-video
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Featured Video
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.25 ▼0.101.71 ▼0.0745.07 ▲2.82
Dashboard /wp-admin2,201 ▲245.56 ▼0.0882.92 ▼14.2642.21 ▼4.30
Posts /wp-admin/edit.php2,106 ▲61.97 ▼0.0235.90 ▲1.8535.64 ▼1.68
Add New Post /wp-admin/post-new.php6,234 ▲4,70318.88 ▼4.34938.10 ▲273.0563.45 ▲10.25
Media Library /wp-admin/upload.php1,406 ▲64.27 ▲0.10112.29 ▲16.0550.58 ▲5.41
Featured Video /wp-admin/admin.php?page=gfv-settings8542.0127.8529.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_featured-video
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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 items
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/featured-videos-for-genesis/includes/video-image.php
    • > /wp-content/plugins/featured-videos-for-genesis/includes/gfv-settings.php
    • > /wp-content/plugins/featured-videos-for-genesis/includes/video-format.php
    • > /wp-content/plugins/featured-videos-for-genesis/includes/gfv-post-types.php
    • > /wp-content/plugins/featured-videos-for-genesis/includes/gfv-metabox.php
    • > /wp-content/plugins/featured-videos-for-genesis/lib/gfv.php
    • > /wp-content/plugins/featured-videos-for-genesis/genesis-featured-video.php
    • > /wp-content/plugins/featured-videos-for-genesis/includes/widget.php

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: featured video, genesis, featured image

featured-videos-for-genesis/genesis-featured-video.php 85% from 13 tests

The main PHP script in "Genesis Featured Video" version 1.1.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-videos-for-genesis.php" instead of "genesis-featured-video.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin706 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9140172697
CSS1009

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity21.00
▷ Minimum class complexity4.00
▷ Maximum class complexity38.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin