Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/rotate-soundcloud-player/plugin.php+328
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼55.98ms] Passed 4 tests
Analyzing server-side resources used by Rotate Soundcloud Player
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.87 ▼39.54 |
Dashboard /wp-admin | 2.11 ▼1.20 | 6.59 ▼45.12 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.35 ▼45.09 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.02 ▼94.16 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.63 ▼30.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_rotate-soundcloud-player |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Rotate Soundcloud Player
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.42 ▼0.95 | 8.06 ▲6.22 | 38.68 ▼6.58 |
Dashboard /wp-admin | 2,199 ▲25 | 5.56 ▲0.03 | 96.01 ▼3.52 | 41.10 ▼0.38 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.02 | 35.31 ▼3.12 | 34.87 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.52 ▲0.12 | 684.19 ▲57.44 | 52.30 ▲0.79 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.02 | 105.69 ▼0.32 | 43.94 ▼1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/rotate-soundcloud-player/plugin.php+328
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_rotate-soundcloud-player
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/rotate-soundcloud-player/views/widget.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: client_id in wp-content/plugins/rotate-soundcloud-player/views/widget.php on line 11
- > PHP Notice
Undefined variable: show_favoritings_count in wp-content/plugins/rotate-soundcloud-player/views/widget.php on line 129
- > PHP Notice
Undefined variable: playlist in wp-content/plugins/rotate-soundcloud-player/views/widget.php on line 19
- > PHP Notice
Undefined variable: soundcloud_url in wp-content/plugins/rotate-soundcloud-player/views/widget.php on line 186
- > PHP Notice
Undefined variable: title in wp-content/plugins/rotate-soundcloud-player/views/widget.php on line 167
- > PHP Notice
Undefined variable: show_download_count in wp-content/plugins/rotate-soundcloud-player/views/widget.php on line 118
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/rotate-soundcloud-player/views/admin.php:4
- > PHP Notice
Undefined variable: playlist in wp-content/plugins/rotate-soundcloud-player/views/widget.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rotate-soundcloud-player/views/widget.php:186
- > PHP Notice
Undefined variable: show_play_count in wp-content/plugins/rotate-soundcloud-player/views/widget.php on line 107
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: podcast, soundcloud, player
rotate-soundcloud-player/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Rotate Soundcloud Player" version 1.1
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("rotate-soundcloud-player.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin485 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 100 | 135 | 348 |
CSS | 2 | 4 | 11 | 110 |
PO File | 1 | 0 | 0 | 17 |
JavaScript | 2 | 0 | 2 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/soundcloud.png | 1.59KB | 1.56KB | ▼ 2.08% |