Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼143.94ms] Passed 4 tests
An overview of server-side resources used by Codescar Radio Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 40.85 ▲16.93 |
Dashboard /wp-admin | 3.12 ▲0.07 | 48.48 ▼7.18 |
Posts /wp-admin/edit.php | 3.17 ▲0.07 | 56.29 ▲5.96 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 106.13 ▼561.84 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 38.34 ▼12.71 |
Codescar Radio Widget Options /wp-admin/options-general.php?page=codescar-radio-widget | 3.03 | 32.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 2 new options
New WordPress options |
---|
cdscr_radio_settings |
widget_codescar_radio_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Codescar Radio Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲254 | 16.77 ▲1.52 | 14.42 ▲4.70 | 46.18 ▼8.37 |
Dashboard /wp-admin | 2,979 ▲42 | 6.00 ▲0.06 | 161.64 ▼20.68 | 117.95 ▲0.27 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.73 ▲0.01 | 71.21 ▼0.04 | 98.44 ▲4.92 |
Add New Post /wp-admin/post-new.php | 1,587 ▲6 | 20.56 ▲2.87 | 456.45 ▼7.98 | 118.44 ▼26.75 |
Media Library /wp-admin/upload.php | 1,816 ▲12 | 5.06 ▲0.04 | 173.88 ▼20.88 | 120.92 ▼23.79 |
Codescar Radio Widget Options /wp-admin/options-general.php?page=codescar-radio-widget | 1,347 | 2.23 | 60.30 | 72.49 |
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
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_codescar_radio_widget
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
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/codescar-radio-widget/radio-widget.php:23
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: radio, radio stations, radio widget, audio element html5, codescar...
codescar-radio-widget/radio-widget.php 92% from 13 tests
The principal PHP file in "Codescar Radio Widget" v. 0.4.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("codescar-radio-widget.php" instead of "radio-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected435 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 45 | 270 |
CSS | 1 | 10 | 1 | 131 |
JavaScript | 1 | 4 | 4 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/pause.png | 2.61KB | 1.61KB | ▼ 38.44% |
img/volume.png | 2.72KB | 1.63KB | ▼ 40.17% |
img/mute.png | 3.62KB | 1.81KB | ▼ 49.81% |
img/play.png | 2.66KB | 1.64KB | ▼ 38.47% |