89% audio-playlist-for-woocommerce

Code Review | Audio Playlist for Woocommerce

WordPress plugin Audio Playlist for Woocommerce scored 89% from 54 tests.

About plugin

  • Plugin page: audio-playlist-fo...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 5.8.1
  • First release: Apr 28, 2020
  • Latest release: Apr 29, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: sirvelia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 230 total downloads


Plugin footprint Passed 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: ▼0.00MB] [CPU: ▼147.61ms] 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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0026.28 ▼7.12
Dashboard /wp-admin3.06 ▲0.0045.09 ▲0.83
Posts /wp-admin/edit.php3.11 ▲0.0036.61 ▼9.29
Add New Post /wp-admin/post-new.php5.42 ▼0.0288.11 ▼573.15
Media Library /wp-admin/upload.php3.00 ▲0.0031.67 ▼0.88

Server storage [IO: ▲8.51MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 465 new files
Database: no new tables, no new options

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.74 ▲0.177.81 ▼1.4049.46 ▲2.57
Dashboard /wp-admin2,973 ▲395.93 ▲0.01137.43 ▼7.7298.59 ▼21.12
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0163.36 ▼0.2388.62 ▼0.95
Add New Post /wp-admin/post-new.php1,872 ▲20219.10 ▼0.03356.16 ▼12.69103.60 ▼5.24
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.00143.61 ▲0.25117.18 ▼7.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/audio-playlist-for-woocommerce/public/partials/audio-playlist-for-woocommerce-public-display.php
    • > /wp-content/plugins/audio-playlist-for-woocommerce/admin/partials/audio-playlist-for-woocommerce-admin-display.php
  • 112× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > 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: Call to undefined function PHPSTORM_META\\override() in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/.phpstorm.meta.php/ioc.meta.php:10
    • > 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/Map_Field.php:12
    • > 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/Boolean_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/core/Datastore/User_Meta_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Custom_Comparer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/core/Datastore/Empty_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/core/Field/Radio_Image_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/audio-playlist-for-woocommerce/vendor/htmlburger/carbon-fields/core/Walker/Nav_Menu_Item_Edit_Walker.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


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
4 plugin tags: playlist, woocommerce, player, audio

audio-playlist-for-woocommerce/audio-playlist-for-woocommerce.php Passed 13 tests

The main PHP script in "Audio Playlist for Woocommerce" version 1.0.1 is automatically included on every request by WordPress
52 characters long description:
Audio player with playlist for WooCommerce products.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin27,853 lines of code in 414 files:
LanguageFilesBlank linesComment linesLines of code
PO File206107791,652

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.07
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes118.66%
▷ Concrete classes11691.34%
▷ Final classes10.86%
▷ Static methods919.90%
▷ Public methods74581.07%
▷ Protected methods16517.95%
▷ Private methods90.98%
▷ Named functions2423.30%
▷ Anonymous functions7976.70%
▷ Global constants723.33%
▷ Class constants2376.67%
▷ Public constants23100.00%

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