Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/knr-player/includes/class-knr-player-activator.php+58
Non-static method Knr_Player_Activator::knrPlayerTable() should not be called statically
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.51ms] Passed 4 tests
Analyzing server-side resources used by KNR Player
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.02 ▼0.04 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.82 ▼0.22 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 44.77 ▼0.85 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 80.72 ▼8.94 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 36.23 ▲2.57 |
Add new audio /wp-admin/admin.php?page=knr_audio | 3.34 | 30.76 |
KNR Player /wp-admin/admin.php?page=knr_player | 3.34 | 29.30 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_knr_player |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for KNR Player
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.73 ▼0.93 | 7.40 ▲5.71 | 34.35 ▼7.87 |
Dashboard /wp-admin | 2,235 ▲47 | 5.89 ▲0.84 | 95.74 ▼7.42 | 33.20 ▼10.07 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.08 ▲0.11 | 35.19 ▼2.90 | 26.02 ▼7.29 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 18.29 ▼5.05 | 607.86 ▼84.26 | 59.14 ▲3.65 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.21 ▼0.10 | 96.65 ▼6.56 | 39.97 ▼6.90 |
Add new audio /wp-admin/admin.php?page=knr_audio | 926 | 1.99 | 32.61 | 23.58 |
KNR Player /wp-admin/admin.php?page=knr_player | 818 | 1.80 | 24.75 | 19.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 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 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/knr-player/public/partials/knr-player-public-display.php
- > /wp-content/plugins/knr-player/admin/partials/knr-player-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
knr-player/knr-player.php Passed 13 tests
The main file in "KNR Player" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
107 characters long description:
Create awesome audio player that is compatible with all major browsers and devices (Android, iPhone, iPad).
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 detected1,992 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 213 | 580 | 685 |
CSS | 2 | 50 | 26 | 590 |
JavaScript | 2 | 100 | 62 | 406 |
SVG | 5 | 0 | 5 | 227 |
PO File | 1 | 30 | 31 | 84 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 25 | 80.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 19.35% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/player/next.png | 3.94KB | 1.54KB | ▼ 60.95% |
includes/images/player/prev.png | 4.38KB | 1.55KB | ▼ 64.66% |
includes/images/player-bg.png | 3.08KB | 1.83KB | ▼ 40.65% |
includes/images/player/stop.png | 3.28KB | 0.59KB | ▼ 81.93% |
includes/images/player/pause.png | 3.36KB | 0.66KB | ▼ 80.52% |