Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼19.97ms] Passed 4 tests
Server-side resources used by Radiojar Audio Player
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 43.73 ▼27.60 |
Dashboard /wp-admin | 3.32 ▼0.02 | 75.43 ▼32.54 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 79.08 ▼12.52 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 141.57 ▼7.21 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 60.22 ▼2.71 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_radiojar-player |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Radiojar Audio Player
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.40 ▲0.25 | 3.33 ▼0.09 | 86.57 ▲11.15 |
Dashboard /wp-admin | 2,209 ▲27 | 4.93 ▼0.97 | 188.43 ▼0.92 | 126.09 ▲38.29 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 1.94 ▼0.22 | 67.17 ▼15.03 | 71.74 ▼9.09 |
Add New Post /wp-admin/post-new.php | 1,417 ▲56 | 17.85 ▼0.01 | 1,016.21 ▲56.81 | 86.64 ▲5.97 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.20 ▲0.04 | 180.64 ▼11.38 | 124.06 ▲33.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_radiojar-player
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/radiojar-player/radiojar-player.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radiojar-player/inc/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radiojar-player/inc/admin-settings.php:235
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/radiojar-player/player3.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_script_is() in wp-content/plugins/radiojar-player/player2.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_script_is() in wp-content/plugins/radiojar-player/player1.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_script_is() in wp-content/plugins/radiojar-player/chat.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: radiojar, widget, mp3 player, audio player, music player
radiojar-player/radiojar-player.php Passed 13 tests
Analyzing the main PHP file in "Radiojar Audio Player" version 1.4
71 characters long description:
Radiojar player plugin for WordPress. Insert with shortcode [rj-player]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin781 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 99 | 36 | 579 |
JavaScript | 3 | 38 | 39 | 136 |
CSS | 2 | 5 | 0 | 66 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
radiojar-white.png | 3.08KB | 0.72KB | ▼ 76.59% |
images/player1.png | 4.79KB | 1.35KB | ▼ 71.83% |
images/player2.png | 5.79KB | 1.93KB | ▼ 66.70% |
images/poweredby.png | 12.97KB | 7.32KB | ▼ 43.54% |
images/player3.png | 29.13KB | 11.23KB | ▼ 61.45% |