Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.74MB] [CPU: ▼141.21ms] 75% from 4 tests
A check of server-side resources used by WP SoundSystem
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 545.13ms on /wp-admin/admin.php?page=wpsstm)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.20 ▲2.37 | 64.78 ▲20.72 |
Dashboard /wp-admin | 5.46 ▲2.41 | 77.49 ▲24.92 |
Posts /wp-admin/edit.php | 5.53 ▲2.42 | 69.84 ▲21.47 |
Add New Post /wp-admin/post-new.php | 5.22 ▼0.21 | 42.87 ▼620.03 |
Media Library /wp-admin/upload.php | 5.40 ▲2.40 | 53.74 ▲13.02 |
Albums /wp-admin/edit.php?post_type=wpsstm_release | 5.46 | 2,321.36 |
Radios /wp-admin/edit.php?post_type=wpsstm_radio | 5.60 | 323.37 |
Tracks Links /wp-admin/edit.php?post_type=wpsstm_track_link | 5.47 | 60.27 |
Artists /wp-admin/edit.php?post_type=wpsstm_artist | 5.46 | 56.55 |
Tracks /wp-admin/edit.php?post_type=wpsstm_track | 5.47 | 55.37 |
Playlists /wp-admin/edit.php?post_type=wpsstm_playlist | 5.46 | 2,315.54 |
Settings /wp-admin/admin.php?page=wpsstm | 5.40 | 545.13 |
Server storage [IO: ▲2.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 138 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_wpsstm_subtracks |
New WordPress options |
---|
_wpsstm-db_version |
wpsstm_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP SoundSystem
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,106 ▲534 | 18.24 ▲2.58 | 22.46 ▲9.85 | 49.82 ▼1.05 |
Dashboard /wp-admin | 3,111 ▲180 | 6.92 ▲0.76 | 156.18 ▼13.49 | 121.55 ▼6.09 |
Posts /wp-admin/edit.php | 2,896 ▲157 | 3.12 ▲0.40 | 88.61 ▲8.98 | 98.95 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,693 ▲10 | 22.45 ▲3.71 | 317.10 ▼119.09 | 122.17 ▼1.56 |
Media Library /wp-admin/upload.php | 1,871 ▲64 | 5.53 ▲0.52 | 171.89 ▼48.21 | 127.64 ▼46.23 |
Albums /wp-admin/edit.php?post_type=wpsstm_release | 1,619 | 3.02 | 81.16 | 80.88 |
Radios /wp-admin/edit.php?post_type=wpsstm_radio | 2,755 | 3.36 | 93.19 | 96.71 |
Tracks Links /wp-admin/edit.php?post_type=wpsstm_track_link | 1,627 | 2.97 | 87.22 | 77.64 |
Artists /wp-admin/edit.php?post_type=wpsstm_artist | 1,619 | 2.96 | 83.48 | 79.72 |
Tracks /wp-admin/edit.php?post_type=wpsstm_track | 1,677 | 2.97 | 78.77 | 82.01 |
Playlists /wp-admin/edit.php?post_type=wpsstm_playlist | 1,630 | 2.96 | 78.12 | 81.37 |
Settings /wp-admin/admin.php?page=wpsstm | 1,693 | 2.93 | 85.32 | 117.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wpsstm_subtracks
- This plugin did not uninstall successfully, leaving 2 options in the database
- _wpsstm-db_version
- wpsstm_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpsstm_playlist
- > Notice in wp-content/plugins/wp-soundsystem/wpsstm-core-tracklists.php+373
Trying to get property 'post_type' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 75× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LastFmApi\\Api\\BaseApi' not found in wp-content/plugins/wp-soundsystem/_inc/php/matto1990/lastfm-api/src/lastfmapi/Api/ArtistApi.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wpsstm() in wp-content/plugins/wp-soundsystem/classes/wpsstm-post-tracklist-class.php:3
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Api\\BaseNotAuthenticatedApiTest' not found in wp-content/plugins/wp-soundsystem/_inc/php/matto1990/lastfm-api/tests/Api/TrackTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Api\\BaseNotAuthenticatedApiTest' not found in wp-content/plugins/wp-soundsystem/_inc/php/matto1990/lastfm-api/tests/Api/ChartTest.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-soundsystem/wpsstm-core-importer.php:703
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Api\\BaseNotAuthenticatedApiTest' not found in wp-content/plugins/wp-soundsystem/_inc/php/matto1990/lastfm-api/tests/Api/UserTest.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-soundsystem/wp-soundsystem.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-soundsystem/wpsstm-core-api.php:229
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-soundsystem/wpsstm-core-track-links.php:906
- > PHP Fatal error
Uncaught Error: Class 'LastFmApi\\Api\\BaseApi' not found in wp-content/plugins/wp-soundsystem/_inc/php/matto1990/lastfm-api/src/lastfmapi/Api/UserApi.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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 need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-soundsystem/wp-soundsystem.php Passed 13 tests
"WP SoundSystem" version 3.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
136 characters long description:
Manage a music library within Wordpress; including playlists, tracks, artists, albums and radios. The perfect fit for your music blog !
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
Good job! No executable or dangerous file extensions detected20,381 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 38,175 | 56,117 | 14,713 |
CSS | 6 | 94 | 153 | 2,080 |
JavaScript | 10 | 683 | 334 | 2,073 |
Sass | 10 | 182 | 13 | 1,351 |
JSON | 3 | 0 | 0 | 101 |
Markdown | 1 | 9 | 0 | 37 |
XML | 1 | 2 | 0 | 18 |
Ruby | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 23.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 80 | |
▷ Abstract classes | 5 | 6.25% |
▷ Concrete classes | 75 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 798 | |
▷ Static methods | 101 | 12.66% |
▷ Public methods | 712 | 89.22% |
▷ Protected methods | 21 | 2.63% |
▷ Private methods | 65 | 8.15% |
Functions | 64 | |
▷ Named functions | 49 | 76.56% |
▷ Anonymous functions | 15 | 23.44% |
Constants | 35 | |
▷ Global constants | 22 | 62.86% |
▷ Class constants | 13 | 37.14% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin