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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.36ms] Passed 4 tests
Analyzing server-side resources used by Bg Playlist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.41 ▲1.52 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.66 ▼1.61 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.30 ▲5.28 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 102.56 ▲1.63 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.53 ▲3.88 |
Playlist /wp-admin/options-general.php?page=bg_playlist_slug | 3.23 | 39.08 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options |
---|
bg_playlist_options2 |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
bg_playlist_options1 |
Browser metrics Passed 4 tests
Checking browser requirements for Bg Playlist
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.63 ▼0.99 | 2.20 ▲0.31 | 40.23 ▼7.86 |
Dashboard /wp-admin | 2,218 ▲27 | 5.85 ▼0.06 | 96.23 ▼5.53 | 38.20 ▲1.42 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.00 ▼0.01 | 39.71 ▲2.04 | 34.56 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 18.33 ▼4.90 | 640.43 ▲2.03 | 61.18 ▲10.36 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.31 ▲0.21 | 140.81 ▲29.74 | 52.54 ▲2.83 |
Playlist /wp-admin/options-general.php?page=bg_playlist_slug | 893 | 2.18 | 29.76 | 33.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bg-playlist/bg_playlist.php
- > /wp-content/plugins/bg-playlist/mce/insert_links/dialog.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bg-playlist/inc/options.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4 in bg-playlist/assets to your readme.txt
bg-playlist/bg_playlist.php 92% from 13 tests
The main file in "Bg Playlist" v. 1.5.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bg-playlist.php" instead of "bg_playlist.php")
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
No dangerous file extensions were detected1,623 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 183 | 179 | 900 |
JavaScript | 4 | 43 | 41 | 279 |
CSS | 2 | 25 | 19 | 261 |
PO File | 1 | 70 | 73 | 163 |
SVG | 3 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing 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.46 |
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 | 49 | |
▷ Named functions | 48 | 97.96% |
▷ Anonymous functions | 1 | 2.04% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
skins/pause.png | 2.97KB | 2.42KB | ▼ 18.33% |
css/download_32x24.png | 1.30KB | 0.20KB | ▼ 84.66% |
skins/next.png | 2.92KB | 2.39KB | ▼ 18.09% |
mce/playlist/img/playlist.png | 0.94KB | 0.93KB | ▼ 1.25% |
css/pause.png | 3.66KB | 1.75KB | ▼ 52.24% |