74% responsive-video-ultimate

Code Review | Responsive Video Ultimate

WordPress plugin Responsive Video Ultimate scored74%from 54 tests.

About plugin

  • Plugin page: responsive-video-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 19, 2014
  • Latest release: Jul 19, 2014
  • Number of updates: 16
  • Update frequency: N/A
  • Top authors: arnabkumar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,832 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.94MB] [CPU: ▼62.29ms] Passed 4 tests

A check of server-side resources used by Responsive Video Ultimate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.57 ▼36.84
Dashboard /wp-admin2.08 ▼1.265.13 ▼86.81
Posts /wp-admin/edit.php2.08 ▼1.276.35 ▼43.06
Add New Post /wp-admin/post-new.php2.08 ▼3.805.67 ▼82.44
Media Library /wp-admin/upload.php2.08 ▼1.156.77 ▼27.89

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Video Ultimate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.45 ▼0.908.85 ▲7.0346.55 ▲5.34
Dashboard /wp-admin2,213 ▲365.65 ▲0.0692.46 ▲1.6737.78 ▲0.24
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0835.84 ▼2.2535.43 ▼0.11
Add New Post /wp-admin/post-new.php1,539 ▲1323.19 ▼0.04637.67 ▲12.9657.72 ▼8.32
Media Library /wp-admin/upload.php1,412 ▲154.19 ▼0.06102.02 ▲1.9542.74 ▲0.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fitvids-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/responsive-video-ultimate/inc/enable_shortcode_widgets.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/responsive-video-ultimate/inc/enable_shortcode_widgets.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

responsive-video-ultimate/responsive-video-ultimate.php 92% from 13 tests

"Responsive Video Ultimate" version 1.0'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:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 311 characters long)

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
Success! There were no dangerous files found in this plugin204 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34444151
PHP2632252
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/funnyordie.png1.46KB0.75KB▼ 48.36%
js/vimeo.png1.60KB1.03KB▼ 35.33%
js/dailymotion.png1.13KB1.47KB0.00%
js/ustream_tv.png1.88KB1.24KB▼ 34.16%
js/blip.png1.39KB0.72KB▼ 48.35%