Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.47ms] Passed 4 tests
A check of server-side resources used by 网易云音乐
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.46 ▼3.89 |
Dashboard /wp-admin | 3.45 ▲0.15 | 49.62 ▼2.05 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 46.08 ▼3.08 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 83.80 ▼12.87 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 35.30 ▼1.20 |
Server storage [IO: ▲2.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 87 new files
Database: no new tables, 7 new options
New WordPress options |
---|
jiutu_musics_config |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
网易云音乐: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.20 ▼0.20 | 1.75 ▲0.14 | 37.49 ▼8.62 |
Dashboard /wp-admin | 2,223 ▲46 | 5.67 ▲0.13 | 97.78 ▲3.39 | 54.55 ▲11.30 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.04 ▲0.07 | 33.36 ▼5.81 | 41.64 ▲5.51 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.65 ▲0.06 | 628.83 ▲20.86 | 65.85 ▲6.05 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.21 ▼0.03 | 94.47 ▼6.96 | 49.79 ▲1.80 |
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
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- jiutu_musics_config
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (`已添加歌曲列表截图`), #2 (`插件配置截图1`), #3 (`插件配置截图2`), #4 (`前台音乐播放器截图`)
nines-music/NinesMusic.php 92% from 13 tests
This is the main PHP file of "网易云音乐" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("nines-music.php" instead of "NinesMusic.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected15,683 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,594 | 797 | 6,096 |
CSS | 4 | 1,042 | 21 | 5,748 |
JavaScript | 6 | 176 | 249 | 3,503 |
PO File | 1 | 161 | 177 | 334 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 20.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 6.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 176 | |
▷ Static methods | 28 | 15.91% |
▷ Public methods | 176 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 27 | 93.10% |
▷ Anonymous functions | 2 | 6.90% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 1.38MB with 0.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 56.66KB | 14.12KB | ▼ 75.08% |
screenshot-2.png | 76.09KB | 19.69KB | ▼ 74.12% |
screenshot-4.png | 99.52KB | 29.31KB | ▼ 70.55% |
static/img/aplayer.png | 36.13KB | 13.64KB | ▼ 62.25% |
static/img/player.png | 8.05KB | 3.47KB | ▼ 56.92% |