Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.93MB] [CPU: ▼61.28ms] Passed 4 tests
This is a short check of server-side resources used by WP-Spotify
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.77 ▼37.44 |
Dashboard /wp-admin | 2.09 ▼1.26 | 5.82 ▼61.70 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.52 ▼48.19 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 7.67 ▼97.77 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.16 ▼31.37 |
Server storage [IO: ▲2.12MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_spotify |
New WordPress options |
---|
wp-spotify |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-Spotify
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲83 | 14.48 ▼0.06 | 1.90 ▼0.06 | 37.95 ▼3.19 |
Dashboard /wp-admin | 2,215 ▲24 | 5.83 ▲0.94 | 99.77 ▼8.09 | 44.99 ▲0.87 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 2.02 ▲0.01 | 36.77 ▼2.76 | 39.89 ▲6.77 |
Add New Post /wp-admin/post-new.php | 1,372 ▼161 | 20.78 ▲2.19 | 600.74 ▼55.26 | 36.42 ▼19.06 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.23 ▲0.04 | 100.45 ▼1.73 | 44.81 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_spotify
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- wp-spotify
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-spotify/wp-spotify.class.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-spotify ===
) - Screenshots: Add images for these screenshots: #1 (Layout), #2 (Embeded), #3 (Widget-control)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-spotify/wp-spotify.php Passed 13 tests
The principal PHP file in "WP-Spotify" v. 2.0 is loaded by WordPress automatically on each request
62 characters long description:
Link Spotify tracks to your posts and pages. Including widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin448 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 8 | 250 |
CSS | 1 | 6 | 0 | 198 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.86MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/share.png | 1.56KB | 0.54KB | ▼ 65.60% |
screenshot-3.png | 36.53KB | 15.70KB | ▼ 57.02% |
banner.png | 73.06KB | 27.96KB | ▼ 61.73% |
img/album.png | 3.03KB | 0.37KB | ▼ 87.71% |
screenshot-1.png | 716.22KB | 229.11KB | ▼ 68.01% |