89% post-featured-video

Code Review | Post Featured Video

WordPress plugin Post Featured Video scored89%from 54 tests.

About plugin

  • Plugin page: post-featured-video
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 30, 2020
  • Latest release: Nov 7, 2022
  • Number of updates: 8
  • Update frequency: every 92.4 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active /6,315 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Post Featured Video
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.71 ▼0.01
Dashboard /wp-admin3.32 ▲0.0153.50 ▼9.97
Posts /wp-admin/edit.php3.37 ▲0.0151.47 ▲1.94
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.68 ▼19.39
Media Library /wp-admin/upload.php3.24 ▲0.0146.26 ▲8.68

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Post Featured Video
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.29 ▼0.121.84 ▲0.1044.04 ▲2.70
Dashboard /wp-admin2,214 ▲375.55 ▼0.0495.03 ▲1.5141.70 ▲0.36
Posts /wp-admin/edit.php2,113 ▲102.03 ▼0.0134.70 ▼4.1331.92 ▼4.26
Add New Post /wp-admin/post-new.php1,539 ▲1123.14 ▼0.09678.66 ▼6.2664.66 ▲13.75
Media Library /wp-admin/upload.php1,416 ▲194.11 ▼0.08110.29 ▲4.4846.95 ▲1.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Version not formatted correctly
  • Requires php: Version not formatted correctly
You can take inspiration from this readme.txt

post-featured-video/post-featured-video-plugin.php 85% from 13 tests

Analyzing the main PHP file in "Post Featured Video" version 1.2
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 169 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-featured-video.php" instead of "post-featured-video-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin633 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP45651375
CSS2225174
JavaScript212784

PHP code Passed 2 tests

This is a very shot review 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.53
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/pfvplay.png2.98KB1.63KB▼ 45.24%