84% responsive-video-for-wp

Code Review | Responsive Video for WordPress

WordPress plugin Responsive Video for WordPress scored 84% from 54 tests.

About plugin

  • Plugin page: responsive-video-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.5
  • WordPress version: 6.3.1
  • First release: Jan 22, 2013
  • Latest release: Jan 22, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: nosecreek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Responsive Video for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.19 ▼4.27
Dashboard /wp-admin3.31 ▲0.0143.31 ▼6.67
Posts /wp-admin/edit.php3.36 ▲0.0144.31 ▼4.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.18 ▼11.31
Media Library /wp-admin/upload.php3.23 ▲0.0132.87 ▼1.26

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Video for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6714.48 ▲0.111.64 ▲0.0442.80 ▲2.48
Dashboard /wp-admin2,209 ▲204.86 ▼0.0596.25 ▼12.3640.85 ▼0.41
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0434.61 ▼5.2333.47 ▼1.56
Add New Post /wp-admin/post-new.php1,514 ▼1917.67 ▼5.51702.29 ▲79.2654.97 ▼4.39
Media Library /wp-admin/upload.php1,391 ▲64.24 ▼0.01100.17 ▲2.6042.62 ▲0.48

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_filter() in wp-content/plugins/responsive-video-for-wp/responsive-video.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: video, vimeo, embed, youtube, responsive video...

responsive-video-for-wp/responsive-video.php 92% from 13 tests

The main file in "Responsive Video for WordPress" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-video-for-wp.php" instead of "responsive-video.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin35 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181321
CSS11014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
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
No PNG images were found in this plugin