78% html5-soundcloud-player-with-playlist

Code Review | HTML5 SoundCloud Player with Playlist Free

WordPress plugin HTML5 SoundCloud Player with Playlist Free scored78%from 54 tests.

About plugin

  • Plugin page: html5-soundcloud-...
  • Plugin version: 2.8.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: May 31, 2013
  • Latest release: May 10, 2019
  • Number of updates: 37
  • Update frequency: every 58.7 days
  • Top authors: svnlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /27,359 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by HTML5 SoundCloud Player with Playlist Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.46 ▲1.72
Dashboard /wp-admin3.42 ▲0.1250.66 ▼2.37
Posts /wp-admin/edit.php3.54 ▲0.1848.97 ▲2.35
Add New Post /wp-admin/post-new.php3.27 ▼2.6236.52 ▼56.32
Media Library /wp-admin/upload.php3.35 ▲0.1134.64 ▼2.00
Help /wp-admin/edit.php?post_type=html5tap&page=help3.3133.84
Add New /wp-admin/post-new.php?post_type=html5tap3.2632.46
HTML5Tap /wp-admin/edit.php?post_type=html5tap3.3534.10
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=html5tap3.3430.34

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by HTML5 SoundCloud Player with Playlist Free
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲6714.74 ▲0.441.78 ▲0.0743.73 ▲0.96
Dashboard /wp-admin2,241 ▲534.85 ▼1.03103.27 ▲1.5542.50 ▲1.76
Posts /wp-admin/edit.php2,121 ▲322.04 ▲0.0133.58 ▼1.6835.07 ▼1.05
Add New Post /wp-admin/post-new.php1,543 ▲1017.75 ▼5.48659.77 ▼23.5249.51 ▼6.66
Media Library /wp-admin/upload.php1,423 ▲354.28 ▲0.04105.01 ▼34.5047.57 ▼11.47
Help /wp-admin/edit.php?post_type=html5tap&page=help9533.5579.2736.62
Add New /wp-admin/post-new.php?post_type=html5tap2,6027.66170.5269.95
HTML5Tap /wp-admin/edit.php?post_type=html5tap1,0882.0131.0328.87
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=html5tap1,2942.1325.8726.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=html5tap
    • > Notice in wp-content/plugins/html5-soundcloud-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-soundcloud-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-soundcloud-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-soundcloud-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-soundcloud-player-with-playlist/html5tap.php+50
    Trying to get property 'post_type' of non-object

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 take a closer look at 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-soundcloud-player-with-playlist/single.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Add New HTML5Tap Playlist), #2 (Input MP3 Source & hit Capture), #3 (Save & Get Shortcode for page / post), #4 (JSON API Information for Playlist)
The official readme.txt might help

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

The primary PHP file in "HTML5 SoundCloud Player with Playlist Free" version 2.8.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("html5-soundcloud-player-with-playlist.php" instead of "html5tap.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
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 overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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 files were detected