84% free-responsive-iframe-video-embeds

Code Review | Free Responsive iframe Video Embeds

WordPress plugin Free Responsive iframe Video Embeds scored 84% from 54 tests.

About plugin

  • Plugin page: free-responsive-i...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2016
  • Latest release: Aug 26, 2019
  • Number of updates: 15
  • Update frequency: every 76.3 days
  • Top authors: vprenner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 5,523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Free Responsive iframe Video Embeds
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.73 ▼5.79
Dashboard /wp-admin3.32 ▲0.0247.50 ▲2.63
Posts /wp-admin/edit.php3.37 ▲0.0249.41 ▲1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.43 ▼5.62
Media Library /wp-admin/upload.php3.24 ▲0.0134.14 ▼5.66

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Free Responsive iframe Video Embeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.95 ▼0.457.41 ▲5.7139.40 ▼7.39
Dashboard /wp-admin2,209 ▲214.88 ▼0.08109.56 ▲7.9538.00 ▼6.44
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0139.93 ▲4.0441.20 ▲5.36
Add New Post /wp-admin/post-new.php1,537 ▲423.31 ▲0.18662.87 ▼49.7562.37 ▲8.16
Media Library /wp-admin/upload.php1,385 ▼04.22 ▲0.04102.65 ▼1.5944.85 ▲0.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/free-responsive-iframe-video-embeds/iplayerhd-embed.php:13

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: responsive, iplayerhd, video, iframe, embed...

free-responsive-iframe-video-embeds/iplayerhd-embed.php 92% from 13 tests

"Free Responsive iframe Video Embeds" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("free-responsive-iframe-video-embeds.php" instead of "iplayerhd-embed.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
Good job! No executable or dangerous file extensions detected184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110077
PHP191070
CSS16037

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin