84% responsive-video-embed

Code Review | Responsive video embed

WordPress plugin Responsive video embed scored84%from 54 tests.

About plugin

  • Plugin page: responsive-video-...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 22
  • Update frequency: every 109.0 days
  • Top authors: luuptek (40.91%)deployer (36.36%)lepileppanen (31.82%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /6,660 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.66ms] Passed 4 tests

Server-side resources used by Responsive video embed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.38 ▼1.84
Dashboard /wp-admin3.33 ▲0.0349.90 ▼4.55
Posts /wp-admin/edit.php3.38 ▲0.0250.33 ▲1.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.48 ▼13.23
Media Library /wp-admin/upload.php3.25 ▲0.0239.72 ▲0.98

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Responsive video embed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5613.69 ▼0.921.83 ▲0.0338.74 ▼1.81
Dashboard /wp-admin2,218 ▲155.78 ▼0.12101.54 ▼18.6540.93 ▼2.90
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.0341.12 ▲4.7937.50 ▲4.24
Add New Post /wp-admin/post-new.php1,547 ▲723.32 ▲0.08662.55 ▼2.5964.17 ▼4.06
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.0199.50 ▼1.8045.86 ▲3.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/responsive-video-embed/wrve.php

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 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: vimeo, shortcode, video, responsive, youtube...

responsive-video-embed/wrve.php 92% from 13 tests

The primary PHP file in "Responsive video embed" version 0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("responsive-video-embed.php" instead of "wrve.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin195 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP2264383
CSS26037
JavaScript20033
PO File14427
Markdown115015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin