78% html5-mp3-player-with-playlist

Code Review | HTML5 MP3 Player with Playlist Free

WordPress plugin HTML5 MP3 Player with Playlist Free scored 78% from 54 tests.

About plugin

  • Plugin page: html5-mp3-player-...
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2012
  • Latest release: Mar 7, 2021
  • Number of updates: 122
  • Update frequency: every 26.6 days
  • Top authors: svnlabs (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

600+ active / 84,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.57MB] [CPU: ▼17.40ms] Passed 4 tests

A check of server-side resources used by HTML5 MP3 Player with Playlist Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.59 ▼3.63
Dashboard /wp-admin3.42 ▲0.1247.81 ▼5.19
Posts /wp-admin/edit.php3.54 ▲0.1851.42 ▼0.74
Add New Post /wp-admin/post-new.php3.27 ▼2.6238.06 ▼60.03
Media Library /wp-admin/upload.php3.34 ▲0.1240.47 ▲3.00
Add New /wp-admin/post-new.php?post_type=html5tap3.2635.23
Help /wp-admin/edit.php?post_type=html5tap&page=help3.3134.33
HTML5Tap /wp-admin/edit.php?post_type=html5tap3.3438.91
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=html5tap3.3436.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by HTML5 MP3 Player with Playlist Free
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.18 ▼1.111.56 ▼0.2539.62 ▼5.31
Dashboard /wp-admin2,244 ▲625.90 ▲1.0296.13 ▼10.2937.50 ▼4.96
Posts /wp-admin/edit.php2,124 ▲562.05 ▲0.0439.38 ▲4.2536.28 ▲6.49
Add New Post /wp-admin/post-new.php1,570 ▲3818.42 ▼4.70609.16 ▼25.1660.38 ▲5.53
Media Library /wp-admin/upload.php1,423 ▲354.21 ▼0.00116.64 ▲11.7453.89 ▲11.80
Add New /wp-admin/post-new.php?post_type=html5tap2,6077.75181.4867.96
Help /wp-admin/edit.php?post_type=html5tap&page=help9713.5273.1131.94
HTML5Tap /wp-admin/edit.php?post_type=html5tap1,0851.9935.3130.51
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=html5tap1,2942.1427.8427.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=html5tap
    • > Notice in wp-content/plugins/html5-mp3-player-with-playlist/html5tap.php+280
    Undefined index: html5tapmeta_noncename
    • > GET request to /wp-admin/post-new.php?post_type=html5tap
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
    • > GET request to /wp-admin/post-new.php?post_type=html5tap
    • > Warning in wp-content/plugins/html5-mp3-player-with-playlist/playlist.php+37
    count(): Parameter must be an array or an object that implements Countable
    • > GET request to /wp-admin/post-new.php?post_type=html5tap
    • > Notice in wp-content/plugins/html5-mp3-player-with-playlist/playlist.php+47
    Undefined variable: mp3i
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=html5tap
    • > Notice in wp-content/plugins/html5-mp3-player-with-playlist/playlist.php+47
    Uninitialized string offset: 0
    • > GET request to /wp-admin/edit.php?post_type=html5tap
    • > Notice in wp-content/plugins/html5-mp3-player-with-playlist/html5tap.php+50
    Trying to get property 'post_type' of non-object

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/html5-mp3-player-with-playlist/single.php:12

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 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (HTML5 MP3 Playlist Player), #2 (Add New HTML5Tap Playlist), #3 (Input MP3 Source & hit Capture), #4 (Save & Get Shortcode for page / post), #5 (JSON API Information for Playlist)
The official readme.txt is a good inspiration

html5-mp3-player-with-playlist/html5tap.php 85% from 13 tests

Analyzing the main PHP file in "HTML5 MP3 Player with Playlist Free" version 3.0.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("html5-mp3-player-with-playlist.php" instead of "html5tap.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected681 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP649579610
JavaScript1221070
HTML1001

PHP code Passed 2 tests

An short overview of 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.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin