10% soundcloud-is-gold

Code Review | SoundCloud Is Gold

WordPress plugin SoundCloud Is Gold scored 10% from 54 tests.

About plugin

  • Plugin page: soundcloud-is-gold
  • Plugin version: 2.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.9.7
  • WordPress version: 5.9.2
  • First release: Aug 21, 2011
  • Latest release: Jul 15, 2018
  • Number of updates: 255
  • Update frequency: every 9.9 days
  • Top authors: realTM (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

9,000+ active / 261,435 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/soundcloud-is-gold/soundcloud-is-gold-widget.php+9
    Function create_function() is deprecated

Server metrics [RAM: ▼2.53MB] [CPU: ▼345.65ms] Passed 4 tests

An overview of server-side resources used by SoundCloud Is Gold
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.674.53 ▼42.86
Dashboard /wp-admin1.86 ▼1.553.59 ▼29.10
Posts /wp-admin/edit.php1.86 ▼1.784.02 ▼33.49
Add New Post /wp-admin/post-new.php1.86 ▼5.114.08 ▼1,277.15
Media Library /wp-admin/upload.php1.86 ▼1.433.58 ▼21.39

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 2 new options
New WordPress options
widget_soundcloud_is_gold_widget
soundcloud_is_gold_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SoundCloud Is Gold
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲3515.86 ▼0.135.76 ▼0.162.09 ▼0.70
Dashboard /wp-admin2,897 ▲466.17 ▲0.05115.30 ▼23.51184.89 ▲23.00
Posts /wp-admin/edit.php2,711 ▲233.13 ▼0.1066.20 ▲2.56144.27 ▼0.02
Add New Post /wp-admin/post-new.php1,646 ▼7320.34 ▼1.58390.10 ▼32.90155.28 ▲0.93
Media Library /wp-admin/upload.php1,718 ▲235.54 ▲0.04124.83 ▼15.39212.62 ▲25.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/soundcloud-is-gold/soundcloud-is-gold-widget.php+9
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_soundcloud_is_gold_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/soundcloud-is-gold/soundcloud-is-gold-widget.php:9
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/soundcloud-is-gold/soundcloud-is-gold.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/soundcloud-is-gold/soundcloud-is-gold.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/soundcloud-is-gold/soundcloud-is-gold-advanced.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/soundcloud-is-gold/soundcloud-is-gold-functions.php:396

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: You can look at the official readme.txt

soundcloud-is-gold/soundcloud-is-gold.php 92% from 13 tests

Analyzing the main PHP file in "SoundCloud Is Gold" version 2.5.1
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 592 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,276 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP61463291,198
CSS23248694
JavaScript369115384

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity12.00
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions52
▷ Named functions52100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/soundcloud-is-gold-icon.png0.44KB0.73KB0.00%
images/addPointer.png0.14KB0.18KB0.00%
images/active.png1.01KB1.17KB0.00%
images/remove.png1.07KB1.35KB0.00%
images/pag.png0.75KB1.17KB0.00%