Benchmarks
Plugin footprint Passed 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: ▼299.21ms] Passed 4 tests
A check of server-side resources used by WordPress Music
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.35 | 50.30 ▲25.10 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.10 ▼1.21 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 37.34 ▼0.45 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 93.12 ▼1,187.71 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 23.82 ▼7.47 |
WordPress Music /wp-admin/options-general.php?page=rightune | 3.26 | 22.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WordPress Music: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.87 ▼0.18 | 6.04 ▲0.16 | 2.61 ▼0.02 |
Dashboard /wp-admin | 2,897 ▲43 | 6.09 ▼0.02 | 119.50 ▼18.21 | 162.81 ▲3.27 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▼0.00 | 63.09 ▼1.40 | 139.97 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 16.24 ▲0.62 | 395.61 ▼69.04 | 156.73 ▼4.33 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.50 ▼0.05 | 142.97 ▲0.80 | 188.07 ▼0.33 |
WordPress Music /wp-admin/options-general.php?page=rightune | 1,050 | 2.38 | 55.36 | 111.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=rightune
- > Notice in wp-content/plugins/wp-music/rightune.php+60
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-music/rightune.php:12
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: music player, rightune, background music, ecommerce, content...
wp-music/rightune.php 85% from 13 tests
The principal PHP file in "WordPress Music" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 183 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-music.php" instead of "rightune.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin51 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 16 | 51 |
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.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
No PNG files were detected