Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼145.20ms] Passed 4 tests
Server-side resources used by Now playing for AzuraCast
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.28 | 37.12 ▲11.43 |
Dashboard /wp-admin | 3.21 ▲0.16 | 47.29 ▼2.44 |
Posts /wp-admin/edit.php | 3.32 ▲0.22 | 38.28 ▼12.94 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 95.39 ▼567.98 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 35.63 ▲2.58 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_azuracast_nowplaying |
Browser metrics Passed 4 tests
An overview of browser requirements for Now playing for AzuraCast
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,840 ▲244 | 16.33 ▲0.78 | 13.12 ▲2.77 | 48.03 ▼7.93 |
Dashboard /wp-admin | 2,967 ▲33 | 5.85 ▼0.09 | 145.94 ▼6.69 | 120.49 ▲1.68 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.00 | 71.17 ▼2.09 | 97.86 ▼8.46 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.75 ▲0.04 | 372.82 ▼12.68 | 113.17 ▼2.73 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▲0.03 | 149.76 ▼18.31 | 134.07 ▲6.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_azuracast_nowplaying
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/now-playing-widget-fuer-azuracast-stationen/src/Azuracast_Widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/now-playing-widget-fuer-azuracast-stationen/azuracast-plugin.php:121
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2 in now-playing-widget-fuer-azuracast-stationen/assets to your readme.txt
now-playing-widget-fuer-azuracast-stationen/azuracast-plugin.php 92% from 13 tests
Analyzing the main PHP file in "Now playing for AzuraCast" version 2.0.4
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("now-playing-widget-fuer-azuracast-stationen.php" instead of "azuracast-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,748 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 118 | 115 | 892 |
PHP | 9 | 140 | 225 | 633 |
PO File | 2 | 40 | 40 | 114 |
CSS | 3 | 13 | 0 | 79 |
JSON | 2 | 0 | 0 | 21 |
HTML | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 36 | |
▷ Static methods | 11 | 30.56% |
▷ Public methods | 35 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.78% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin