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.00MB] [CPU: ▼5.51ms] Passed 4 tests
A check of server-side resources used by WDES rtMedia Music
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.21 ▼3.75 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.26 ▼2.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.03 ▲3.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.56 ▼14.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.11 ▼0.88 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WDES rtMedia Music
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲54 | 14.32 ▲0.04 | 1.73 ▲0.14 | 36.70 ▼4.53 |
Dashboard /wp-admin | 2,195 ▲24 | 5.61 ▼0.02 | 90.40 ▼7.47 | 39.01 ▼6.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.05 | 39.41 ▲3.85 | 37.43 ▼5.78 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 18.69 ▼4.38 | 609.21 ▼31.56 | 68.76 ▲14.43 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▼0.00 | 96.10 ▼17.30 | 40.44 ▼8.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wdes-rtmedia-music/lib/core/actions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wdes-rtmedia-music/lib/core/globals.php:3
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #4 in wdes-rtmedia-music/assets to your readme.txt
- Tags: There are too many tags (13 tag instead of maximum 10)
wdes-rtmedia-music/wdes-rtmedia-music.php 85% from 13 tests
This is the main PHP file of "WDES rtMedia Music" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 300 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,602 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 102 | 36 | 1,041 |
SVG | 1 | 0 | 0 | 655 |
CSS | 2 | 1 | 1 | 528 |
JavaScript | 2 | 0 | 6 | 378 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 1 | 20.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 80.00% |
Functions | 71 | |
▷ Named functions | 66 | 92.96% |
▷ Anonymous functions | 5 | 7.04% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/music.png | 8.03KB | 3.39KB | ▼ 57.83% |
assets/images/audio.png | 0.37KB | 0.57KB | 0.00% |