Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.70ms] Passed 4 tests
Analyzing server-side resources used by Compact WP Audio Player
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 35.34 ▼4.48 |
Dashboard /wp-admin | 3.34 ▼0.01 | 43.51 ▼15.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.61 ▲1.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.25 ▼2.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.39 ▲0.38 |
SC Audio Player /wp-admin/options-general.php?page=compact-wp-audio-player/sc_audio_player.php | 3.23 | 31.10 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Compact WP Audio Player
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 13.32 ▼1.36 | 3.25 ▲1.62 | 41.55 ▲1.16 |
Dashboard /wp-admin | 2,210 ▲24 | 5.85 ▲0.92 | 107.76 ▼5.38 | 41.04 ▼1.82 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 40.26 ▲4.95 | 37.08 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.34 ▲0.80 | 615.04 ▼60.19 | 51.26 ▼11.22 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.17 ▼0.17 | 96.29 ▼9.06 | 42.07 ▼1.25 |
SC Audio Player /wp-admin/options-general.php?page=compact-wp-audio-player/sc_audio_player.php | 837 | 2.02 | 21.57 | 27.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/compact-wp-audio-player/sc_audio_player.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/compact-wp-audio-player/shortcodes-functions.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
compact-wp-audio-player/sc_audio_player.php 85% from 13 tests
This is the main PHP file of "Compact WP Audio Player" version 1.9.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("compact-wp-audio-player.php" instead of "sc_audio_player.php")
- Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected448 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 37 | 17 | 254 |
CSS | 2 | 15 | 38 | 122 |
JavaScript | 2 | 0 | 27 | 72 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/round-play-button-black.png | 2.10KB | 0.92KB | ▼ 56.06% |
image/arrow-right-black.png | 0.14KB | 0.25KB | 0.00% |
image/arrow-right-white.png | 0.14KB | 0.25KB | 0.00% |
image/round-pause-button-black.png | 2.08KB | 0.89KB | ▼ 57.10% |
image/round-play-putton-black.png | 2.10KB | 0.92KB | ▼ 56.06% |