73% music-player-for-elementor

Code Review | Music Player for Elementor - Audio Player & Podcast Player

WordPress plugin Music Player for Elementor - Audio Player & Podcast Player scored73%from 54 tests.

About plugin

  • Plugin page: music-player-for-...
  • Plugin version: 1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3
  • WordPress version: 6.3.1
  • First release: Jan 7, 2021
  • Latest release: Oct 25, 2023
  • Number of updates: 45
  • Update frequency: every 23.1 days
  • Top authors: smartwpress (100%)

Code review

54 tests

User reviews

67 reviews

Install metrics

9,000+ active /102,018 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲5.39MB] [CPU: ▲24.24ms] 75% from 4 tests

This is a short check of server-side resources used by Music Player for Elementor - Audio Player & Podcast Player
It is recommended to improve the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.39MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.21 ▲5.7460.52 ▲19.40
Dashboard /wp-admin9.23 ▲5.9270.07 ▲21.35
Posts /wp-admin/edit.php9.23 ▲5.8780.56 ▲30.80
Add New Post /wp-admin/post-new.php9.89 ▲4.01122.50 ▲25.40
Media Library /wp-admin/upload.php9.23 ▲6.0067.75 ▲35.55
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius9.2361.68

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 255 new files
Database: no new tables, 11 new options
New WordPress options

Browser metrics Passed 4 tests

Music Player for Elementor - Audio Player & Podcast Player: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10814.36 ▲0.011.63 ▼0.0327.47 ▼15.55
Dashboard /wp-admin2,253 ▲735.78 ▲0.1789.75 ▼7.5144.75 ▲0.13
Posts /wp-admin/edit.php2,162 ▲622.17 ▲0.1540.41 ▲1.8640.49 ▲8.41
Add New Post /wp-admin/post-new.php1,577 ▲5123.14 ▼0.71675.17 ▲57.9251.83 ▼8.13
Media Library /wp-admin/upload.php1,461 ▲614.20 ▼0.0196.04 ▼9.2845.72 ▲4.32
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,1071.7425.5728.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/music-player-for-elementor/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • fs_accounts
    • db_upgraded
    • widget_recent-posts
    • fs_active_plugins
    • fs_debug_mode

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/music-player-for-elementor/classes/controls/mpfe-audio-chooser.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/music-player-for-elementor/classes/core/mpfe-plugin-menu-pages.php:490
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/music-player-for-elementor/classes/core/load-music-player-for-elementor.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/music-player-for-elementor/classes/core/load-elementor-widgets.php:138

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: mp3 player, podcast player, audio, audio player, music player...

music-player-for-elementor/music-player-for-elementor.php 92% from 13 tests

The main PHP script in "Music Player for Elementor - Audio Player & Podcast Player" version 1.7 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)

Code Analysis 97% from 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
There were no executable files found in this plugin48,593 lines of code in 160 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity83.38
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes35.66%
▷ Static methods20015.19%
▷ Public methods91469.40%
▷ Protected methods221.67%
▷ Private methods38128.93%
▷ Named functions100100.00%
▷ Anonymous functions00.00%
▷ Global constants10366.88%
▷ Class constants5133.12%
▷ Public constants51100.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
6 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
img/slide-star-rating.png4.98KB1.94KB▼ 61.07%
img/icon-256x256.png5.88KB3.60KB▼ 38.83%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
img/compact-player-desktop.png109.13KB30.39KB▼ 72.15%