83% embed-soundcloud-block

Code Review | SoundCloud block - Fully Customizable SoundCloud Player

WordPress plugin SoundCloud block - Fully Customizable SoundCloud Player scored83%from 54 tests.

About plugin

  • Plugin page: embed-soundcloud-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 36
  • Update frequency: every 11.5 days
  • Top authors: btechnologies (94.44%)abuhayat (8.33%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /3,197 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.93ms] Passed 4 tests

An overview of server-side resources used by SoundCloud block - Fully Customizable SoundCloud Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.64 ▼5.15
Dashboard /wp-admin3.45 ▲0.1051.76 ▼10.66
Posts /wp-admin/edit.php3.56 ▲0.2052.39 ▲4.89
Add New Post /wp-admin/post-new.php6.05 ▲0.1784.59 ▼8.81
Media Library /wp-admin/upload.php3.37 ▲0.1438.90 ▲5.57
Embed SoundCloud /wp-admin/admin.php?page=embed-soundcloud-block3.3337.25

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
scbpro-redirect
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by SoundCloud block - Fully Customizable SoundCloud Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲614.33 ▲0.081.83 ▼0.2139.11 ▼3.82
Dashboard /wp-admin2,201 ▲275.61 ▼0.0085.17 ▼16.3042.66 ▼0.13
Posts /wp-admin/edit.php2,103 ▲32.15 ▲0.1541.21 ▲3.2836.74 ▲1.32
Add New Post /wp-admin/post-new.php6,208 ▲4,68219.65 ▼3.59923.30 ▲268.9839.08 ▼28.18
Media Library /wp-admin/upload.php1,406 ▲34.17 ▼0.02106.89 ▲0.6343.33 ▼0.32
Embed SoundCloud /wp-admin/admin.php?page=embed-soundcloud-block7982.3853.0130.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • scbpro-redirect
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'BSDK' not found in wp-content/plugins/embed-soundcloud-block/bplugins_sdk/inc/Base/License.php:3
    • > PHP Warning
      Use of undefined constant SCB_PLUGIN_VERSION - assumed 'SCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/embed-soundcloud-block/dist/editor.asset.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'BSDK' not found in wp-content/plugins/embed-soundcloud-block/bplugins_sdk/inc/Base/Activate.php:3
    • > PHP Warning
      Use of undefined constant SCB_PLUGIN_VERSION - assumed 'SCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/embed-soundcloud-block/dist/script.asset.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

embed-soundcloud-block/index.php 85% from 13 tests

This is the main PHP file of "SoundCloud block - Fully Customizable SoundCloud Player" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("embed-soundcloud-block.php" instead of "index.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,450 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111238537
JavaScript167128478
Sass3115184
JSON400124
PO File24581123
CSS4044

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.83
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods37.32%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
bplugins_sdk/dist/assets/images/shield_success.png3.47KB3.61KB0.00%