Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/spotify-play-for-wordpress/spotify-play-for-wordpress.php+251
Methods with the same name as their class will not be constructors in a future version of PHP; spotify_play_button_for_wordpress_Widget_class has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼54.37ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Name: Spotify Play Button for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 4.65 ▼36.19 |
Dashboard /wp-admin | 2.17 ▼1.13 | 5.67 ▼44.21 |
Posts /wp-admin/edit.php | 2.17 ▼1.18 | 6.03 ▼36.94 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.71 | 5.82 ▼100.14 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.27 ▼29.63 |
Spotify Play Button For Wordpress /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions | 2.17 | 7.08 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_spotify_play_button_for_wordpress_widget |
widget_recent-comments |
spotify-play-button-for-wordpress-link |
can_compress_scripts |
spotify-play-button-for-wordpress-default |
db_upgraded |
widget_theysaidso_widget |
spotify-play-button-for-wordpress-size |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plugin Name: Spotify Play Button for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.22 ▼1.08 | 1.83 ▼0.07 | 40.22 ▼8.55 |
Dashboard /wp-admin | 2,212 ▲47 | 5.83 ▲0.81 | 111.91 ▼2.42 | 54.92 ▲13.58 |
Posts /wp-admin/edit.php | 2,098 ▲12 | 2.05 ▲0.04 | 38.73 ▲0.65 | 33.14 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.10 ▼0.13 | 645.62 ▼1.98 | 107.42 ▲27.99 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.23 ▲0.03 | 101.35 ▼11.69 | 45.11 ▼10.22 |
Spotify Play Button For Wordpress /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions | 1,257 | 7.91 | 224.78 | 109.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/spotify-play-for-wordpress/spotify-play-for-wordpress.php+251
Methods with the same name as their class will not be constructors in a future version of PHP; spotify_play_button_for_wordpress_Widget_class has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 10 options
- widget_spotify_play_button_for_wordpress_widget
- spotify-play-button-for-wordpress-default
- spotify-play-button-for-wordpress-link
- spotify-play-button-for-wordpress-size
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions
- > Deprecated in wp-content/plugins/spotify-play-for-wordpress/spotify-play-for-wordpress.php+251
Methods with the same name as their class will not be constructors in a future version of PHP; spotify_play_button_for_wordpress_Widget_class has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions
- > Warning in wp-content/plugins/spotify-play-for-wordpress/spotify-play-for-wordpress.php+334
Use of undefined constant spotify_play_button_for_wordpress_Widget - assumed 'spotify_play_button_for_wordpress_Widget' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in spotify_play_button_for_wordpress_Widget_class is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/spotify-play-for-wordpress/spotify-play-for-wordpress.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions
- > Network (severe)
http://platform.stumbleupon.com/1/widgets.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions
- > Javascript (severe) in unknown
https://button.buffer.com/button/?id=8ee382ce50212af8&url=http%3A%2F%2Fbloggingdojo.com%2Fwordpress-plugins%2Fspotify-play-button-for-wordpress%2F&text=Just%20been%20using%20Spotify%20Play%20Button%20for%20WordPress%20%23WordPress%20plugin&via=rhyswynne&count=horizontal&placement=button&utm_source=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dspotifyplaybuttonforwordpressoptions&utm_medium=buffer_button&utm_campaign=buffer 15:647 Uncaught TypeError: Cannot set properties of null (setting 'onclick')
- > GET request to /wp-admin/options-general.php?page=spotifyplaybuttonforwordpressoptions
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== Plugin Name: Spotify Play Button for WordPress===
) - Screenshots: Please add images for these screenshots: #1 (The options screen of Spotify Play for Wordpress), #2 (The plugin in the wild!), #3 (The rich text interface that makes editing even easier.)
spotify-play-for-wordpress/spotify-play-for-wordpress.php Passed 13 tests
The main PHP file in "Plugin Name: Spotify Play Button for WordPress" ver. 0.2.1 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
Easily embed Spotify Tracks & Playlists using the Spotify Play Button into your Wordpress Blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin420 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 117 | 22 | 287 |
CSS | 1 | 12 | 0 | 101 |
JavaScript | 1 | 6 | 0 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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 |
spotify.png | 0.83KB | 0.95KB | 0.00% |