83% advanced-responsive-video-embedder

Code Review | Advanced Responsive Video Embedder (Rumble, YouTube, Vimeo, HTML5 Video ...)

WordPress plugin Advanced Responsive Video Embedder (Rumble, YouTube, Vimeo, HTML5 Video ...) scored 83% from 54 tests.

About plugin

  • Plugin page: advanced-responsi...
  • Plugin version: 9.7.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.16-5.9.0
  • WordPress version: 5.8.1
  • First release: Feb 3, 2012
  • Latest release: Feb 1, 2022
  • Number of updates: 452
  • Update frequency: every 8.1 days
  • Top authors: nico23 (100%)

Code review

54 tests

User reviews

160 reviews

Install metrics

50,000+ active / 1,986,661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.40MB] [CPU: ▼139.48ms] Passed 4 tests

An overview of server-side resources used by Advanced Responsive Video Embedder (Rumble, YouTube, Vimeo, HTML5 Video ...)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲1.3736.68 ▲9.15
Dashboard /wp-admin4.47 ▲1.4046.62 ▼1.83
Posts /wp-admin/edit.php4.55 ▲1.4344.29 ▲9.39
Add New Post /wp-admin/post-new.php6.85 ▲1.4184.12 ▼574.64
Media Library /wp-admin/upload.php4.46 ▲1.4535.78 ▲9.86
ARVE /wp-admin/options-general.php?page=nextgenthemes_arve4.4539.36
NextGenThemes Settings /wp-admin/options-general.php?page=nextgenthemes4.3935.59

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 5 new options
New WordPress options
nextgenthemes_arve
arve_install_date
nextgenthemes_arve_options_ver
nextgenthemes_options_ver
arve_version

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Responsive Video Embedder (Rumble, YouTube, Vimeo, HTML5 Video ...)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,714 ▲11316.80 ▲0.805.90 ▲0.9576.06 ▼1.71
Dashboard /wp-admin2,977 ▲817.08 ▲0.88123.91 ▼5.99170.90 ▼2.52
Posts /wp-admin/edit.php2,784 ▲443.35 ▲0.1067.52 ▲0.52159.71 ▲18.41
Add New Post /wp-admin/post-new.php1,656 ▼2,04215.31 ▼3.14325.69 ▼97.06166.39 ▼0.44
Media Library /wp-admin/upload.php1,796 ▲446.22 ▲0.70128.23 ▼20.71183.84 ▼15.25
ARVE /wp-admin/options-general.php?page=nextgenthemes_arve5,5436.54122.26215.47
NextGenThemes Settings /wp-admin/options-general.php?page=nextgenthemes1,5333.9081.57102.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 5 options in the database
    • arve_version
    • arve_install_date
    • nextgenthemes_arve
    • nextgenthemes_options_ver
    • nextgenthemes_arve_options_ver

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Nextgenthemes\\ARVE\\add_option() in wp-content/plugins/advanced-responsive-video-embedder/php/init.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Nextgenthemes\\ARVE\\add_option() in wp-content/plugins/advanced-responsive-video-embedder/php/init.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Nextgenthemes\\ARVE\\Common\\Admin\\esc_html() in wp-content/plugins/advanced-responsive-video-embedder/php/Common/Admin/partials/debug-info.php:9

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 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

advanced-responsive-video-embedder/advanced-responsive-video-embedder.php 92% from 13 tests

The primary PHP file in "Advanced Responsive Video Embedder (Rumble, YouTube, Vimeo, HTML5 Video ...)" version 9.7.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected6,602 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP421,2515725,702
Markdown14960843
HTML59049
JavaScript5005
CSS3003

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.47
Average class complexity39.75
▷ Minimum class complexity11.00
▷ Maximum class complexity99.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods57
▷ Static methods11.75%
▷ Public methods3968.42%
▷ Protected methods11.75%
▷ Private methods1729.82%
Functions188
▷ Named functions17995.21%
▷ Anonymous functions94.79%
Constants13
▷ Global constants17.69%
▷ Class constants1292.31%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin