84% rb-responsive-video-output

Code Review | RB Responsive Video Output

WordPress plugin RB Responsive Video Output scored84%from 54 tests.

About plugin

  • Plugin page: rb-responsive-vid...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8
  • WordPress version: 6.3.1
  • First release: Jun 12, 2017
  • Latest release: Jul 10, 2017
  • Number of updates: 8
  • Update frequency: every 3.8 days
  • Top authors: redballoondesignltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.61ms] Passed 4 tests

An overview of server-side resources used by RB Responsive Video Output
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0842.79 ▲2.97
Dashboard /wp-admin3.39 ▲0.0852.20 ▼3.61
Posts /wp-admin/edit.php3.44 ▲0.0849.47 ▲0.84
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.67 ▼26.64
Media Library /wp-admin/upload.php3.31 ▲0.0836.05 ▲3.93
Add New /wp-admin/post-new.php?post_type=video3.4053.67
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=video3.3136.25
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=video3.3039.37
Videos /wp-admin/edit.php?post_type=video3.3639.49

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for RB Responsive Video Output
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲6814.72 ▲0.372.12 ▲0.1644.37 ▲2.82
Dashboard /wp-admin2,229 ▲525.49 ▼0.0991.11 ▼5.1838.60 ▼1.67
Posts /wp-admin/edit.php2,141 ▲412.00 ▲0.0437.57 ▼3.6636.25 ▼1.76
Add New Post /wp-admin/post-new.php1,563 ▲3523.14 ▼0.09699.40 ▲105.7653.17 ▼16.67
Media Library /wp-admin/upload.php1,435 ▲324.23 ▼0.06105.52 ▼0.9042.30 ▼4.40
Add New /wp-admin/post-new.php?post_type=video2,0383.7872.7440.57
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=video1,3572.1229.7830.18
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=video1,4902.1327.0931.55
Videos /wp-admin/edit.php?post_type=video1,1561.9731.6732.83

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
  • Zombie WordPress options were found after uninstall: 7 options
    • category_children
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rb-responsive-video-output/admin/custom_columns.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rb-responsive-video-output/public/shortcode.php:302
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rb-responsive-video-output/video-base.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: modal, videos, responsive, gallery, youtube

rb-responsive-video-output/video-base.php 85% from 13 tests

The main file in "RB Responsive Video Output" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rb-responsive-video-output.php" instead of "video-base.php")
  • Description: The description should be shorter than 140 characters (currently 155 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
Good job! No executable or dangerous file extensions detected2,554 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript73351421,534
LESS55657489
PHP49746373
Markdown183097
JSON10044
SVG10015
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.48MB with 0.32MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/gallery.png149.83KB43.31KB▼ 71.09%
public/images/play-icon.png15.81KB5.82KB▼ 63.16%
screenshots/embed.png111.34KB40.13KB▼ 63.95%
screenshots/modal.png213.79KB60.86KB▼ 71.53%