Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.08ms] 75% from 4 tests
An overview of server-side resources used by Connect to Apple Music
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 808.31ms on /wp-admin/options-general.php?page=apple-music)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 38.66 ▼1.56 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.91 ▼1.43 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.66 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 98.23 ▲2.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.09 ▲0.89 |
Apple Music /wp-admin/options-general.php?page=apple-music | 3.26 | 808.31 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Connect to Apple Music
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.63 ▼0.73 | 2.04 ▼0.12 | 42.81 ▼1.14 |
Dashboard /wp-admin | 2,213 ▲28 | 4.83 ▼0.07 | 111.02 ▲7.39 | 42.94 ▼0.21 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.02 | 39.48 ▼2.39 | 35.60 ▼0.88 |
Add New Post /wp-admin/post-new.php | 6,225 ▲4,697 | 25.89 ▲7.72 | 907.10 ▲282.21 | 35.77 ▼21.21 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.33 ▲0.13 | 103.71 ▲1.61 | 42.14 ▼2.98 |
Apple Music /wp-admin/options-general.php?page=apple-music | 808 | 2.03 | 28.05 | 25.96 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=apple-music
- > Notice in wp-content/plugins/connect-to-apple-music/php/class-settings.php+127
Undefined property: stdClass::$data
- > GET request to /wp-admin/options-general.php?page=apple-music
- > Warning in wp-content/plugins/connect-to-apple-music/php/class-settings.php+127
Invalid argument supplied for foreach()
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 items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Undefined constant 'Apple_Music\\PATH' in wp-content/plugins/connect-to-apple-music/php/includes/includes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function Apple_Music\\wp_embed_register_handler() in wp-content/plugins/connect-to-apple-music/php/includes/register-embed-handler.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function Apple_Music\\plugin_dir_url() in wp-content/plugins/connect-to-apple-music/connect-to-apple-music.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/connect-to-apple-music/php/includes/types.php:3
- > 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 93% from 29 tests
readme.txt Passed 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
2 plugin tags: music, apple
connect-to-apple-music/connect-to-apple-music.php 85% from 13 tests
"Connect to Apple Music" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/lang/")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("lang/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,917 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 246 | 305 | 1,700 |
PHP | 12 | 151 | 263 | 778 |
CSS | 14 | 107 | 24 | 431 |
SVG | 8 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 4 | 12.90% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/apple.png | 1.91KB | 2.03KB | 0.00% |
dist/images/0fc7d18e01c8c77b8b705cbf4697fb91.png | 0.30KB | 0.27KB | ▼ 7.59% |