83% simple-featured-video

Code Review | Simple Featured Video

WordPress plugin Simple Featured Video scored 83% from 54 tests.

About plugin

  • Plugin page: simple-featured-v...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: May 29, 2019
  • Latest release: Aug 17, 2020
  • Number of updates: 25
  • Update frequency: every 17.8 days
  • Top authors: primisdigital (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active / 14,438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼325.89ms] Passed 4 tests

A check of server-side resources used by Simple Featured Video
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0458.22 ▲4.58
Dashboard /wp-admin3.47 ▲0.0639.02 ▲5.93
Posts /wp-admin/edit.php3.70 ▲0.0641.27 ▲2.02
Add New Post /wp-admin/post-new.php3.26 ▼3.7128.16 ▼1,309.37
Media Library /wp-admin/upload.php3.33 ▲0.0325.17 ▼0.79
Simple Featured Video /wp-admin/options-general.php?page=sfv_menu_page3.3628.89

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
sfv_posts_types

Browser metrics Passed 4 tests

Checking browser requirements for Simple Featured Video
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,963 ▲20917.31 ▲1.675.56 ▼0.882.21 ▼0.55
Dashboard /wp-admin3,092 ▲2348.07 ▲1.92142.65 ▲9.86158.30 ▼8.10
Posts /wp-admin/edit.php2,920 ▲2355.05 ▲1.8276.69 ▲9.66142.24 ▼5.25
Add New Post /wp-admin/post-new.php1,706 ▲1617.91 ▼2.71385.65 ▼59.13187.23 ▲25.31
Media Library /wp-admin/upload.php1,703 ▲55.50 ▼0.02109.12 ▼32.26188.84 ▼7.80
Simple Featured Video /wp-admin/options-general.php?page=sfv_menu_page1,4094.2373.07117.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • sfv_posts_types

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/simple-featured-video/simple-featured-video.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid version format
The official readme.txt might help

simple-featured-video/simple-featured-video.php 77% from 13 tests

The primary PHP file in "Simple Featured Video" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected374 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35359350
JavaScript10224

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin