73% media-player-addons-for-elementor

Code Review | Media Player Addons for Elementor

WordPress plugin Media Player Addons for Elementor scored 73% from 54 tests.

About plugin

  • Plugin page: media-player-addo...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 6, 2021
  • Latest release: Sep 17, 2023
  • Number of updates: 36
  • Update frequency: every 24.9 days
  • Top authors: abuhayat (52.78%)shehabulislam (50%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 11,759 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.16ms] Passed 4 tests

Server-side resources used by Media Player Addons for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.56 ▼1.93
Dashboard /wp-admin3.32 ▲0.0250.39 ▼3.60
Posts /wp-admin/edit.php3.37 ▲0.0253.20 ▼0.70
Add New Post /wp-admin/post-new.php5.90 ▲0.02104.46 ▼7.00
Media Library /wp-admin/upload.php3.24 ▲0.0235.05 ▼8.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Media Player Addons for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲1913.32 ▼0.931.87 ▼0.4340.38 ▼2.98
Dashboard /wp-admin2,225 ▲194.85 ▼0.00107.73 ▼2.4241.92 ▲3.73
Posts /wp-admin/edit.php2,107 ▲152.03 ▼0.0240.76 ▲0.8037.28 ▲3.45
Add New Post /wp-admin/post-new.php1,548 ▲1123.16 ▼0.25712.26 ▼39.4361.50 ▲7.15
Media Library /wp-admin/upload.php1,407 ▲194.23 ▼0.0195.74 ▼15.0543.18 ▼3.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 no errors were found, this is by no means 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BMianAddon\\add_action() in wp-content/plugins/media-player-addons-for-elementor/plugin.php:174

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: Please take inspiration from this readme.txt

media-player-addons-for-elementor/media-player-addons.php 85% from 13 tests

The entry point to "Media Player Addons for Elementor" version 1.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("media-player-addons-for-elementor.php" instead of "media-player-addons.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Almost there! Just fix the following issues
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .url - Internet Shortcut in Firefox, IE, Chrome, Safari
      • wp-content/plugins/media-player-addons-for-elementor/documentation/documentation.url
2,511 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP134369722,082
JavaScript85250344
CSS32285

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity3.08
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods84
▷ Static methods11.19%
▷ Public methods6375.00%
▷ Protected methods2023.81%
▷ Private methods11.19%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/sc/audio-control.png3.56KB2.96KB▼ 16.62%
assets/sc/youtube_control.png4.60KB3.99KB▼ 13.39%
assets/sc/art_sub.png3.22KB2.53KB▼ 21.44%
assets/sc/control_size.png3.05KB2.96KB▼ 2.79%
assets/sc/color.png7.18KB7.18KB0.01%