Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.91MB] [CPU: ▲798.91ms] 75% from 4 tests
Server-side resources used by Audio Player
It is recommended to improve the following
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 798.91ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.44 ▲0.98 | 818.87 ▲775.32 |
Dashboard /wp-admin | 4.46 ▲1.16 | 1,130.30 ▲1,074.88 |
Posts /wp-admin/edit.php | 4.47 ▲1.11 | 765.21 ▲715.98 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 719.69 ▲629.44 |
Media Library /wp-admin/upload.php | 4.47 ▲1.24 | 1,793.31 ▲1,755.52 |
Server storage [IO: ▲15.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widgetic/secret |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Audio Player
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,009 ▲2,263 | 35.50 ▲21.15 | 116.03 ▲114.24 | 33.05 ▼12.93 |
Dashboard /wp-admin | 3,581 ▲1,396 | 17.51 ▲11.55 | 291.00 ▲181.98 | 81.05 ▲42.77 |
Posts /wp-admin/edit.php | 3,380 ▲1,291 | 12.27 ▲10.28 | 173.55 ▲133.16 | 39.46 ▲0.25 |
Add New Post /wp-admin/post-new.php | 2,689 ▲1,175 | 40.42 ▲16.93 | 841.14 ▲182.78 | 42.00 ▼10.88 |
Media Library /wp-admin/upload.php | 1,778 ▲390 | 15.91 ▲11.67 | 328.39 ▲225.20 | 43.23 ▼3.62 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widgetic/secret
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: blockPath in wp-content/plugins/audio-player-by-widgetic/block.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/audio-player-by-widgetic/dashboard.php:4
- > PHP Notice
Undefined variable: blockWidgetId in wp-content/plugins/audio-player-by-widgetic/block.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audio-player-by-widgetic/block.php:111
- > PHP Notice
Undefined variable: widgetMeta in wp-content/plugins/audio-player-by-widgetic/block.php on line 29
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 32 tag instead of maximum 10
audio-player-by-widgetic/index.php 92% from 13 tests
"Audio Player" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("audio-player-by-widgetic.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,316 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 2,696 |
CSS | 3 | 74 | 58 | 432 |
PHP | 4 | 31 | 55 | 170 |
SVG | 1 | 0 | 0 | 16 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 3.23MB with 1.82MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 884.04KB | 280.74KB | ▼ 68.24% |
assets/screenshot-2.png | 548.06KB | 195.36KB | ▼ 64.35% |
assets/thumb.png | 1.44KB | 0.50KB | ▼ 64.99% |
assets/icon.png | 1.38KB | 0.69KB | ▼ 50.21% |
assets/icon_audio.png | 0.59KB | 0.39KB | ▼ 33.61% |