78% soundcloud-ultimate

Code Review | SoundCloud Ultimate Plugin

WordPress plugin SoundCloud Ultimate Plugin scored78%from 54 tests.

About plugin

  • Plugin page: soundcloud-ultimate
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.9.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2013
  • Latest release: Jun 26, 2014
  • Number of updates: 21
  • Update frequency: every 22.2 days
  • Top authors: wpsolutions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /33,954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.38ms] Passed 4 tests

This is a short check of server-side resources used by SoundCloud Ultimate Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.18 ▼6.48
Dashboard /wp-admin3.33 ▼0.0243.28 ▼16.19
Posts /wp-admin/edit.php3.44 ▲0.0843.82 ▼1.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.62 ▼8.98
Media Library /wp-admin/upload.php3.25 ▲0.0232.26 ▼0.92

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

SoundCloud Ultimate Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.65 ▼0.651.60 ▼0.2845.39 ▲2.47
Dashboard /wp-admin2,224 ▲334.95 ▼0.9695.40 ▼13.6466.44 ▲21.25
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0435.28 ▲2.1930.59 ▼5.98
Add New Post /wp-admin/post-new.php1,527 ▼317.47 ▼5.72765.04 ▲64.6053.29 ▼1.30
Media Library /wp-admin/upload.php1,403 ▲154.07 ▼0.1095.87 ▼1.0669.56 ▲22.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/soundcloud-ultimate/wp-scu-display-usage.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include_once(): Failed opening 'WPSHQ_SCU_PLUGIN_PATH/includes/wpscu-list-table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/soundcloud-ultimate/wp-scu-display-tracks.php on line 6
    • > PHP Warning
      Use of undefined constant WPSHQ_SCU_PLUGIN_PATH - assumed 'WPSHQ_SCU_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/soundcloud-ultimate/wp-scu-display-tracks.php on line 6
    • > PHP Warning
      include_once(WPSHQ_SCU_PLUGIN_PATH/includes/wpscu-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/soundcloud-ultimate/wp-scu-display-tracks.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_SCU_List_Table' not found in wp-content/plugins/soundcloud-ultimate/wp-scu-display-tracks.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/soundcloud-ultimate/wp-soundcloud-ultimate.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: soundcloud plugin, music, soundcloud wordpress, soundcloud, podcast...

soundcloud-ultimate/wp-soundcloud-ultimate.php 92% from 13 tests

The main file in "SoundCloud Ultimate Plugin" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("soundcloud-ultimate.php" instead of "wp-soundcloud-ultimate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,895 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP103637551,783
CSS15057
JavaScript23355

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.22
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods101
▷ Static methods00.00%
▷ Public methods9493.07%
▷ Protected methods76.93%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/images/soundcloud-icon.png0.53KB0.73KB0.00%