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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 38.64 ▼5.15 |
Dashboard /wp-admin | 3.45 ▲0.10 | 51.76 ▼10.66 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 52.39 ▲4.89 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 84.59 ▼8.81 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.90 ▲5.57 |
Embed SoundCloud /wp-admin/admin.php?page=embed-soundcloud-block | 3.33 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲6 | 14.33 ▲0.08 | 1.83 ▼0.21 | 39.11 ▼3.82 |
Dashboard /wp-admin | 2,201 ▲27 | 5.61 ▼0.00 | 85.17 ▼16.30 | 42.66 ▼0.13 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.15 ▲0.15 | 41.21 ▲3.28 | 36.74 ▲1.32 |
Add New Post /wp-admin/post-new.php | 6,208 ▲4,682 | 19.65 ▼3.59 | 923.30 ▲268.98 | 39.08 ▼28.18 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.17 ▼0.02 | 106.89 ▲0.63 | 43.33 ▼0.32 |
Embed SoundCloud /wp-admin/admin.php?page=embed-soundcloud-block | 798 | 2.38 | 53.01 | 30.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 112 | 38 | 537 |
JavaScript | 16 | 71 | 28 | 478 |
Sass | 3 | 11 | 5 | 184 |
JSON | 4 | 0 | 0 | 124 |
PO File | 2 | 45 | 81 | 123 |
CSS | 4 | 0 | 4 | 4 |
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 code | 0.33 |
Average class complexity | 10.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 3 | 7.32% |
▷ Public methods | 39 | 95.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.88% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |