Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/fnffm-radio/fnf.fm.php+65
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼57.36ms] Passed 4 tests
A check of server-side resources used by FnF.FM Radio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.61 ▼34.89 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.05 ▼57.16 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.65 ▼40.01 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.97 ▼97.38 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.65 ▼29.63 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_fnffmradiowidget |
Browser metrics Passed 4 tests
FnF.FM Radio: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.21 ▼0.20 | 1.77 ▲0.16 | 41.34 ▼1.97 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▲0.03 | 85.31 ▼6.92 | 37.53 ▼6.28 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.03 ▲0.05 | 34.51 ▼2.26 | 30.54 ▼4.25 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.11 ▲0.17 | 683.95 ▲31.04 | 53.53 ▼6.87 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.04 | 102.42 ▼3.06 | 45.03 ▲1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/fnffm-radio/fnf.fm.php+65
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_fnffmradiowidget
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fnffm-radio/fnf.fm.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Tags: You are using too many tags: 18 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Adding Shortcode in Post/Page), #2 (Have a look at the player in Post/Page), #3 (In Widget), #4 (Have a look at the player in Sidebar)
fnffm-radio/fnf.fm.php 92% from 13 tests
The main file in "FnF.FM Radio" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fnffm-radio.php" instead of "fnf.fm.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
Everything looks great! No dangerous files found in this plugin43 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 12 | 43 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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.20MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 20.29KB | 7.69KB | ▼ 62.13% |
screenshot-2.png | 154.14KB | 69.00KB | ▼ 55.23% |
screenshot-4.png | 11.47KB | 5.35KB | ▼ 53.36% |
screenshot-1.png | 17.74KB | 7.13KB | ▼ 59.78% |