Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲2.93MB] [CPU: ▲15.24ms] Passed 4 tests
This is a short check of server-side resources used by Audio Playlist for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.37 ▲3.90 | 71.41 ▲32.50 |
Dashboard /wp-admin | 6.24 ▲2.89 | 65.01 ▲6.16 |
Posts /wp-admin/edit.php | 6.35 ▲2.99 | 73.54 ▲26.93 |
Add New Post /wp-admin/post-new.php | 8.84 ▲2.94 | 98.47 ▼0.41 |
Media Library /wp-admin/upload.php | 6.14 ▲2.90 | 63.88 ▲28.26 |
Audio Playlist /wp-admin/admin.php?page=apfw-options | 6.16 | 55.52 |
Server storage [IO: ▲14.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2,133 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
_apfw_background_color |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Audio Playlist for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,330 ▲569 | 18.99 ▲4.34 | 7.34 ▲5.87 | 45.89 ▲3.51 |
Dashboard /wp-admin | 2,419 ▲242 | 9.02 ▲3.45 | 208.68 ▲120.82 | 41.52 ▼2.96 |
Posts /wp-admin/edit.php | 2,357 ▲257 | 6.21 ▲4.21 | 82.16 ▲45.27 | 33.00 ▼3.53 |
Add New Post /wp-admin/post-new.php | 1,602 ▲76 | 19.86 ▼3.82 | 711.82 ▲17.06 | 52.56 ▲0.85 |
Media Library /wp-admin/upload.php | 1,490 ▲87 | 6.63 ▲2.38 | 128.50 ▲16.96 | 44.81 ▼2.42 |
Audio Playlist /wp-admin/admin.php?page=apfw-options | 1,171 | 7.12 | 104.56 | 35.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/audio-playlist-for-woocommerce/audio-playlist-for-woocommerce.php
- > /wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 382× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/illuminate/support/Fluent.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\AbstractTranslator' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/nesbot/carbon/lazy/Carbon/TranslatorWeakType.php:15
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/illuminate/support/Facades/Log.php:25
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/core/Field/Broken_Field.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\BadMethodCallException' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php:17
- > PHP Fatal error
Trait 'Carbon\\Traits\\IntervalRounding' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Traits/Rounding.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Exception\\LogicException' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/symfony/translation/Exception/UnsupportedSchemeException.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=apfw-options
- > Console-api (warning) in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/build/classic/vendor.min.js?ver=3.6.0+48:54975
wp.compose.withState is deprecated since version 5.8. Please use wp.element.useState instead.
Optimizations
Plugin configuration Passed 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
6 plugin tags: playlist, music, player, woocommerce, samples...
audio-playlist-for-woocommerce/audio-playlist-for-woocommerce.php Passed 13 tests
The main PHP script in "Audio Playlist for Woocommerce" version 1.1.1 is automatically included on every request by WordPress
52 characters long description:
Audio player with playlist for WooCommerce products.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/audio-playlist-for-woocommerce/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,548 | 15,102 | 51,128 | 67,744 |
JavaScript | 172 | 7,094 | 10,914 | 16,169 |
JSON | 28 | 0 | 0 | 2,985 |
XSD | 3 | 92 | 48 | 2,803 |
CSS | 8 | 240 | 1,157 | 2,222 |
Sass | 50 | 369 | 1 | 1,889 |
PO File | 20 | 613 | 782 | 1,660 |
Markdown | 22 | 433 | 1 | 1,093 |
TypeScript | 4 | 123 | 123 | 410 |
Blade | 1 | 9 | 0 | 82 |
reStructuredText | 1 | 74 | 78 | 74 |
DOS Batch | 1 | 0 | 0 | 4 |
YAML | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 116 | |
Interfaces | 153 | |
Traits | 62 | |
Classes | 469 | |
▷ Abstract classes | 35 | 7.46% |
▷ Concrete classes | 434 | 92.54% |
▷ Final classes | 41 | 9.45% |
Methods | 5,092 | |
▷ Static methods | 769 | 15.10% |
▷ Public methods | 4,240 | 83.27% |
▷ Protected methods | 704 | 13.83% |
▷ Private methods | 148 | 2.91% |
Functions | 765 | |
▷ Named functions | 164 | 21.44% |
▷ Anonymous functions | 601 | 78.56% |
Constants | 238 | |
▷ Global constants | 17 | 7.14% |
▷ Class constants | 221 | 92.86% |
▷ Public constants | 216 | 97.74% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected