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 validation failed for this plugin
- > Deprecated in wp-content/plugins/deezer-widget/deezer.php+46
Methods with the same name as their class will not be constructors in a future version of PHP; Deezer_Playlist has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼55.56ms] Passed 4 tests
This is a short check of server-side resources used by Deezer Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.30 ▼37.54 |
Dashboard /wp-admin | 2.17 ▼1.14 | 5.33 ▼49.72 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 7.75 ▼44.02 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 6.86 ▼90.94 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.83 ▼27.78 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_deezer-playlist |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_deezer-album |
widget_deezer-radio |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Deezer Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.30 ▼1.50 | 4.78 ▲2.83 | 41.90 ▼7.71 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▼0.01 | 110.86 ▼5.83 | 43.61 ▼1.15 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.06 | 40.80 ▲1.48 | 35.39 ▼4.93 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.36 ▼4.67 | 618.48 ▼26.36 | 51.28 ▼13.12 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.02 | 94.64 ▼0.33 | 40.97 ▼2.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/deezer-widget/deezer.php+46
Methods with the same name as their class will not be constructors in a future version of PHP; Deezer_Playlist has a deprecated constructor
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_deezer-playlist
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_deezer-radio
- theysaidso_admin_options
- widget_recent-posts
- widget_deezer-album
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deezer-widget/deezer.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (An example album with cover), #2 (An example of radio (rock) with small dimension and without cover)
- Contributors: Contributors not specified
deezer-widget/deezer.php 92% from 13 tests
The primary PHP file in "Deezer Widget" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("deezer-widget.php" instead of "deezer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin267 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 39 | 267 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot 2.png | 16.00KB | 4.87KB | ▼ 69.60% |
screenshot 1.png | 78.91KB | 25.02KB | ▼ 68.30% |