84% fullscreen-video-embed

Code Review | Fullscreen Video Embed

WordPress plugin Fullscreen Video Embed scored84%from 54 tests.

About plugin

  • Plugin page: fullscreen-video-...
  • Plugin version: 0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.5
  • WordPress version: 6.3.1
  • First release: May 21, 2016
  • Latest release: May 26, 2016
  • Number of updates: 13
  • Update frequency: every 0.6 days
  • Top authors: Julian_Kingman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,121 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Fullscreen Video Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.00 ▼4.13
Dashboard /wp-admin3.31 ▲0.0150.07 ▼0.86
Posts /wp-admin/edit.php3.36 ▲0.0152.99 ▲2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.87 ▼18.13
Media Library /wp-admin/upload.php3.24 ▲0.0136.84 ▼0.05

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Fullscreen Video Embed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.24 ▼0.122.24 ▼0.3939.72 ▼1.73
Dashboard /wp-admin2,195 ▲185.63 ▲0.0794.50 ▲5.9841.19 ▲1.19
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0539.37 ▲0.0537.27 ▼1.18
Add New Post /wp-admin/post-new.php1,537 ▲918.27 ▼4.89642.74 ▲17.8461.56 ▲13.74
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.04101.44 ▼2.3442.78 ▼5.18

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 everything seems fine, this is not an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fullscreen-video-embed/fullscreen-video-embed.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: No tags were detected
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

fullscreen-video-embed/fullscreen-video-embed.php Passed 13 tests

The primary PHP file in "Fullscreen Video Embed" version 0.10 is used by WordPress to initiate all plugin functionality
35 characters long description:
Full width videos with placeholders

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin136 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS142498
PHP131125
JavaScript10013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin