83% advanced-responsive-video-embedder

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

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

About plugin

  • Plugin page: advanced-responsi...
  • Plugin version: 9.5.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.16-5.7.1
  • WordPress version: 5.8.1
  • First release: Feb 3, 2012
  • Latest release: Sep 21, 2021
  • Number of updates: 446
  • Update frequency: every 7.9 days
  • Top authors: nico23 (100%)

Code review

53 tests

User reviews

159 reviews

Install metrics

50,000+ active / 1,898,413 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.37MB] [CPU: ▼253.97ms] Passed 4 tests

Server-side resources used by ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video ...)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.18 ▲1.4643.07 ▲22.90
Dashboard /wp-admin4.41 ▲1.3645.18 ▼2.33
Posts /wp-admin/edit.php4.50 ▲1.3950.97 ▲6.68
Add New Post /wp-admin/post-new.php6.81 ▲1.38102.80 ▼1,020.59
Media Library /wp-admin/upload.php4.36 ▲1.3541.32 ▲0.37
ARVE /wp-admin/options-general.php?page=nextgenthemes_arve4.4048.34
NextGenThemes Settings /wp-admin/options-general.php?page=nextgenthemes4.3439.21

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 5 new options
New WordPress options
arve_version
nextgenthemes_arve_options_ver
nextgenthemes_options_ver
nextgenthemes_arve
arve_install_date

Browser metrics Passed 4 tests

Checking browser requirements for ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video ...)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,701 ▲9616.04 ▲0.518.46 ▲0.2149.88 ▲4.33
Dashboard /wp-admin2,974 ▲1246.20 ▲0.37135.32 ▲4.7898.42 ▼12.90
Posts /wp-admin/edit.php2,718 ▲122.69 ▲0.0066.77 ▼1.1989.11 ▲3.07
Add New Post /wp-admin/post-new.php2,074 ▲59316.41 ▼2.08388.14 ▲43.76126.89 ▲15.95
Media Library /wp-admin/upload.php1,787 ▲125.04 ▲0.05149.31 ▲3.80106.93 ▼14.34
ARVE /wp-admin/options-general.php?page=nextgenthemes_arve5,4555.73119.24140.03
NextGenThemes Settings /wp-admin/options-general.php?page=nextgenthemes1,5173.0373.0262.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 5 options
    • 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 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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: 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in advanced-responsive-video-embedder/assets to your readme.txt
Please take inspiration from this readme.txt

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

"ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video ...)" version 9.5.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin6,532 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP411,2395775,650
Markdown14860825
HTML513049
JavaScript5005
CSS3003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity40.75
▷ Minimum class complexity11.00
▷ Maximum class complexity99.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods58
▷ Static methods11.72%
▷ Public methods4068.97%
▷ Protected methods11.72%
▷ Private methods1729.31%
Functions183
▷ Named functions17495.08%
▷ Anonymous functions94.92%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected