84% az-video-and-audio-player-addon-for-elementor

Code Review | AZ Video and Audio Player Addon for Elementor

WordPress plugin AZ Video and Audio Player Addon for Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: az-video-and-audi...
  • Plugin version: 2.0.1
  • PHP compatiblity: 4.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 9, 2020
  • Latest release: Mar 30, 2021
  • Number of updates: 14
  • Update frequency: every 28.8 days
  • Top authors: azplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active / 18,386 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.27ms] Passed 4 tests

Analyzing server-side resources used by AZ Video and Audio Player Addon for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.00 ▲6.04
Dashboard /wp-admin3.31 ▲0.0143.83 ▼8.00
Posts /wp-admin/edit.php3.36 ▲0.0048.81 ▲0.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.82 ▼14.08
Media Library /wp-admin/upload.php3.23 ▲0.0032.38 ▼3.84

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for AZ Video and Audio Player Addon for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8314.76 ▲0.361.82 ▲0.1843.08 ▲2.32
Dashboard /wp-admin2,221 ▲335.77 ▲0.8895.04 ▼6.8639.79 ▲0.12
Posts /wp-admin/edit.php2,109 ▲202.03 ▲0.0439.87 ▲1.1136.90 ▲3.78
Add New Post /wp-admin/post-new.php1,550 ▲3123.35 ▲0.24645.16 ▼0.0357.14 ▲0.42
Media Library /wp-admin/upload.php1,409 ▲244.26 ▲0.0796.63 ▼6.2943.88 ▼2.07

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/az-video-and-audio-player-addon-for-elementor/includes/widgets/video-player.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/az-video-and-audio-player-addon-for-elementor/includes/widgets/audio-player.php:2

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: audio player, video player, player, media player, elementor

az-video-and-audio-player-addon-for-elementor/plugin-main.php 85% from 13 tests

Analyzing the main PHP file in "AZ Video and Audio Player Addon for Elementor" version 2.0.1
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("az-video-and-audio-player-addon-for-elementor.php" instead of "plugin-main.php")

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 detected1,730 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity16.00
▷ Minimum class complexity8.00
▷ Maximum class complexity29.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods14.17%
▷ Public methods2083.33%
▷ Protected methods416.67%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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