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 ...) scored83%from 54 tests.

About plugin

  • Plugin page: advanced-responsi...
  • Plugin version: 9.10.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.16-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2012
  • Latest release: Sep 16, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

163 reviews

Install metrics

40,000+ active /2,304,935 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.47MB] [CPU: ▲10.31ms] 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.86 ▲1.4048.23 ▲9.93
Dashboard /wp-admin4.87 ▲1.5264.56 ▲2.27
Posts /wp-admin/edit.php4.95 ▲1.6067.55 ▲21.80
Add New Post /wp-admin/post-new.php7.31 ▲1.42106.11 ▲11.46
Media Library /wp-admin/upload.php4.78 ▲1.5556.22 ▲17.59
NextGenThemes Settings /wp-admin/options-general.php?page=nextgenthemes4.7746.54
ARVE /wp-admin/options-general.php?page=nextgenthemes_arve4.7948.64

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 128 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
nextgenthemes_arve_options_ver
arve_install_date
can_compress_scripts
widget_recent-posts
arve_version
nextgenthemes_arve
theysaidso_admin_options
nextgenthemes_options_ver
...

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,974 ▲1,20315.11 ▲0.721.74 ▼0.1238.63 ▼4.68
Dashboard /wp-admin3,376 ▲1,1996.43 ▲0.87124.26 ▲34.8940.76 ▼0.87
Posts /wp-admin/edit.php3,337 ▲1,2403.66 ▲1.6855.32 ▲19.5834.16 ▼4.85
Add New Post /wp-admin/post-new.php7,301 ▲5,77319.35 ▼3.67865.22 ▲180.3036.21 ▼14.61
Media Library /wp-admin/upload.php2,513 ▲1,1134.50 ▲0.3294.79 ▼7.3742.03 ▼0.29
NextGenThemes Settings /wp-admin/options-general.php?page=nextgenthemes2,4333.8663.0374.98
ARVE /wp-admin/options-general.php?page=nextgenthemes_arve5,6355.4696.9888.55

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 11 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • arve_version
    • nextgenthemes_arve
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • nextgenthemes_options_ver
    • nextgenthemes_arve_options_ver
    • arve_install_date
    • ...

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
  • 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/advanced-responsive-video-embedder/tests/tests-sc-video-files.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/advanced-responsive-video-embedder/tests/tests-sc-errors.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/advanced-responsive-video-embedder/tests/tests-sc-maxwidth.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/advanced-responsive-video-embedder/tests/tests-frontend.php:7
    • > 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
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/advanced-responsive-video-embedder/tests/tests-url-params.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/advanced-responsive-video-embedder/tests/tests-sc-legacy.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-responsive-video-embedder/php/Common/functions-async-defer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/advanced-responsive-video-embedder/tests/tests-options.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/advanced-responsive-video-embedder/tests/tests-settings.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 87% 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 85% from 13 tests

The primary PHP file in "Advanced Responsive Video Embedder (Rumble, YouTube, Vimeo, HTML5 Video ...)" version 9.10.12 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
  • Git Repository: Please do not include Git repositories in your plugin

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 detected11,225 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
PHP671,5167736,961
SVG2121,734
Markdown1358701,027
TypeScript6138116822
Sass4602282
JSON400187
YAML3231145
HTML59049
Bourne Again Shell1307
JavaScript6006
CSS4005

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.40
Average class complexity8.17
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes14.35%
Methods124
▷ Static methods10.81%
▷ Public methods10181.45%
▷ Protected methods10.81%
▷ Private methods2217.74%
Functions193
▷ Named functions18696.37%
▷ Anonymous functions73.63%
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
8 PNG files occupy 0.43MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-1.png126.49KB57.79KB▼ 54.31%
.wordpress-org/screenshot-4.png92.65KB41.10KB▼ 55.64%
.wordpress-org/screenshot-3.png77.75KB35.29KB▼ 54.61%
.wordpress-org/icon-128x128.png3.00KB2.00KB▼ 33.26%
src/img/icon-128x128.png3.00KB2.00KB▼ 33.26%