78% soundcloud-master

Code Review | TechGasp Sound Master

WordPress plugin TechGasp Sound Master scored78%from 54 tests.

About plugin

  • Plugin page: soundcloud-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 70
  • Update frequency: every 40.7 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /121,392 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.06MB] [CPU: ▼6.73ms] Passed 4 tests

Server-side resources used by TechGasp Sound Master
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.57 ▼3.22
Dashboard /wp-admin3.37 ▲0.0646.07 ▼6.79
Posts /wp-admin/edit.php3.42 ▲0.0648.84 ▼2.48
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.98 ▼14.41
Media Library /wp-admin/upload.php3.29 ▲0.0641.00 ▲5.89
Sound Master /wp-admin/admin.php?page=soundcloud-master3.2730.59
Add-ons /wp-admin/admin.php?page=soundcloud-master-admin-addons3.3132.01

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_soundcloud_master_widget_buttons
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

TechGasp Sound Master: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.30 ▼1.281.68 ▲0.0342.93 ▼1.48
Dashboard /wp-admin2,235 ▲505.87 ▲0.97108.26 ▼15.0566.97 ▲19.63
Posts /wp-admin/edit.php2,115 ▲261.99 ▼0.0738.43 ▼3.7534.51 ▼3.56
Add New Post /wp-admin/post-new.php1,690 ▲17621.93 ▲4.31702.18 ▲46.3152.27 ▼27.88
Media Library /wp-admin/upload.php1,417 ▲264.30 ▲0.07113.35 ▲14.7845.47 ▲2.81
Sound Master /wp-admin/admin.php?page=soundcloud-master1,7638.23205.1979.62
Add-ons /wp-admin/admin.php?page=soundcloud-master-admin-addons1,0882.0124.5635.79

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_soundcloud_master_widget_buttons
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/soundcloud-master/includes/soundcloud-master-widget-buttons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/soundcloud-master/includes/soundcloud-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/soundcloud-master/includes/soundcloud-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/soundcloud-master/includes/soundcloud-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/soundcloud-master/includes/soundcloud-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/soundcloud-master/includes/soundcloud-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/soundcloud-master/soundcloud-master.php:52

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=soundcloud-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=soundcloud-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=soundcloud-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yx/r/RBH7b7zeA6F.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=soundcloud-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yx/r/RBH7b7zeA6F.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

soundcloud-master/soundcloud-master.php Passed 13 tests

The main PHP file in "TechGasp Sound Master" ver. 5.1.4 adds more information about the plugin and also serves as the entry point for this plugin
135 characters long description:
TechGasp Sound Master is a light weight and shiny clean code wordpress plugin that you need to show off and sell your soundcloud music.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected427 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP92760427

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.30MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-minilogo-16.png1.86KB0.92KB▼ 50.87%
images/techgasp-admin-addons-updater.png14.03KB13.02KB▼ 7.21%
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%
images/techgasp-admin-addons-shortcodes.png21.28KB20.24KB▼ 4.91%
images/techgasp-admin-addons-widgets.png17.08KB16.02KB▼ 6.22%