10% simply-featured-video

Code Review | Simply Featured Video - Featured video support for WordPress

WordPress plugin Simply Featured Video - Featured video support for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: simply-featured-v...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2022
  • Latest release: Dec 4, 2022
  • Number of updates: 8
  • Update frequency: every 13.5 days
  • Top authors: zwwuu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /692 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/simply-featured-video/freemius/require.php+24
    require_once(wp-content/plugins/simply-featured-video/freemius/includes/managers/class-fs-clone-manager.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.22ms] Passed 4 tests

This is a short check of server-side resources used by Simply Featured Video - Featured video support for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.36 ▼0.63
Dashboard /wp-admin3.31 ▼0.0443.95 ▼17.27
Posts /wp-admin/edit.php3.36 ▲0.0046.33 ▼0.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.84 ▲1.22
Media Library /wp-admin/upload.php3.23 ▲0.0034.18 ▲3.72

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 364 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
fs_active_plugins
widget_theysaidso_widget
fs_debug_mode
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simply Featured Video - Featured video support for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.311.90 ▲0.1644.14 ▲4.19
Dashboard /wp-admin2,209 ▲184.84 ▼1.04100.43 ▼4.4537.24 ▼1.46
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0239.22 ▲4.3534.89 ▼0.25
Add New Post /wp-admin/post-new.php1,538 ▲523.43 ▲0.38634.71 ▼83.4053.82 ▼1.40
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.1095.88 ▼2.1840.44 ▼3.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • fs_debug_mode
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • fs_active_plugins
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simply-featured-video/admin/partials/sfv-admin-display.php
    • > /wp-content/plugins/simply-featured-video/trunk/admin/partials/sfv-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: video, video embed, vimeo, youtube, video plugin...

simply-featured-video/sfv.php 92% from 13 tests

The main PHP script in "Simply Featured Video - Featured video support for WordPress" version 1.3.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("simply-featured-video.php" instead of "sfv.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected31,962 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP1197,53216,91531,737
JavaScript43459195
XML10018
CSS120012

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity83.69
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes102
▷ Abstract classes43.92%
▷ Concrete classes9896.08%
▷ Final classes00.00%
Methods2,372
▷ Static methods37615.85%
▷ Public methods1,65269.65%
▷ Protected methods301.26%
▷ Private methods69029.09%
Functions210
▷ Named functions20899.05%
▷ Anonymous functions20.95%
Constants262
▷ Global constants19875.57%
▷ Class constants6424.43%
▷ Public constants64100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/simply-featured-video.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
trunk/freemius/assets/img/simply-featured-video.png9.16KB5.26KB▼ 42.58%
trunk/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%