79% all-in-one-music-player

Code Review | All in One Music Player

WordPress plugin All in One Music Player scored79%from 54 tests.

About plugin

  • Plugin page: all-in-one-music-...
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jun 18, 2021
  • Latest release: Mar 11, 2022
  • Number of updates: 14
  • Update frequency: every 19.1 days
  • Top authors: sanzeeb3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,916 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.49ms] Passed 4 tests

Analyzing server-side resources used by All in One Music Player
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.98 ▲2.98
Dashboard /wp-admin3.36 ▲0.0550.96 ▼1.21
Posts /wp-admin/edit.php3.41 ▲0.0550.90 ▲0.51
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.35 ▼15.99
Media Library /wp-admin/upload.php3.28 ▲0.0537.58 ▼1.28

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for All in One Music Player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.391.76 ▲0.0346.14 ▲5.55
Dashboard /wp-admin2,189 ▲125.65 ▲0.1087.15 ▼7.5941.18 ▼1.02
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0239.50 ▲2.0134.26 ▼2.10
Add New Post /wp-admin/post-new.php6,232 ▲4,70619.36 ▼3.78910.12 ▲224.7546.87 ▼11.57
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.03102.28 ▼7.7243.83 ▼1.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/all-in-one-music-player/templates/blue-playlist.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/all-in-one-music-player/templates/blue-playlist.php on line 73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/all-in-one-music-player/templates/flat-black.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/all-in-one-music-player/templates/circular-spikes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/all-in-one-music-player/templates/a-player.php:2
    • > PHP Notice
      Undefined variable: songs in wp-content/plugins/all-in-one-music-player/templates/blue-playlist.php on line 73

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration Passed 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
4 plugin tags: aplayer, music-player, mp3, audio

all-in-one-music-player/all-in-one-music-player.php Passed 13 tests

"All in One Music Player" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Easily embed your favourite music player in your website.

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
Success! There were no dangerous files found in this plugin7,425 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png23.50KB16.83KB▼ 28.40%