90% audio-player-with-playlist-ultimate

Code Review | Audio Player with Playlist Ultimate

WordPress plugin Audio Player with Playlist Ultimate scored90%from 54 tests.

About plugin

  • Plugin page: audio-player-with...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 13, 2017
  • Latest release: Jul 28, 2023
  • Number of updates: 40
  • Update frequency: every 53.6 days
  • Top authors: wponlinesupport (95%)anoopranawat (7.5%)

Code review

54 tests

User reviews

11 reviews

Install metrics

900+ active /27,794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼7.50ms] Passed 4 tests

A check of server-side resources used by Audio Player with Playlist Ultimate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2036.70 ▼0.03
Dashboard /wp-admin3.49 ▲0.1444.78 ▼14.59
Posts /wp-admin/edit.php3.60 ▲0.2448.47 ▼0.28
Add New Post /wp-admin/post-new.php6.07 ▲0.1879.95 ▼15.09
Media Library /wp-admin/upload.php3.41 ▲0.1837.95 ▲3.45
Playlist /wp-admin/edit-tags.php?taxonomy=apwp-audio-category&post_type=apwp-audio-player3.4034.46
Settings /wp-admin/edit.php?post_type=apwp-audio-player&page=apwpultimate-ultimate-settings3.4131.61
Upgrade to PRO /wp-admin/edit.php?post_type=apwp-audio-player&page=wpapwpu-premium3.3931.79
Audio Player Ultimate /wp-admin/edit.php?post_type=apwp-audio-player3.4537.01
Add Audio Player /wp-admin/post-new.php?post_type=apwp-audio-player3.5048.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
apwpultimate_ultimate_plugin_version
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
apwpultimate_ultimate_options

Browser metrics Passed 4 tests

A check of browser resources used by Audio Player with Playlist Ultimate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.22 ▼1.431.89 ▲0.1037.42 ▼0.90
Dashboard /wp-admin2,246 ▲545.80 ▲0.8697.65 ▼6.7638.28 ▼5.65
Posts /wp-admin/edit.php2,131 ▲452.03 ▼0.0140.66 ▲1.6736.24 ▲0.05
Add New Post /wp-admin/post-new.php1,575 ▲5618.26 ▼4.92617.30 ▼55.2354.27 ▲5.26
Media Library /wp-admin/upload.php1,422 ▲344.18 ▼0.0397.64 ▼8.2444.22 ▼2.19
Playlist /wp-admin/edit-tags.php?taxonomy=apwp-audio-category&post_type=apwp-audio-player1,2992.1426.8927.07
Settings /wp-admin/edit.php?post_type=apwp-audio-player&page=apwpultimate-ultimate-settings1,8234.89113.1838.17
Upgrade to PRO /wp-admin/edit.php?post_type=apwp-audio-player&page=wpapwpu-premium1,1851.9628.0737.36
Audio Player Ultimate /wp-admin/edit.php?post_type=apwp-audio-player1,1272.2234.1529.05
Add Audio Player /wp-admin/post-new.php?post_type=apwp-audio-player1,8683.7966.4334.83

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 8 options in the database
    • apwpultimate_ultimate_plugin_version
    • apwpultimate_ultimate_options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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 Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: shuffle, album art, music player, repeat, multiple player...

audio-player-with-playlist-ultimate/audio-player-with-playlist-ultimate.php 92% from 13 tests

The primary PHP file in "Audio Player with Playlist Ultimate" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 373 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected10,399 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript137688588,030
CSS6248951,047
PHP12217358928
HTML1002394

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.00
▷ Minimum class complexity14.00
▷ Maximum class complexity18.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/dist/skin/blue.monday/image/jplayer.blue.monday.video.play.png17.28KB4.28KB▼ 75.21%
assets/image/jplayer.blue.monday.video.play.png17.28KB4.28KB▼ 75.21%
assets/js/dist/skin/pink.flag/image/jplayer.pink.flag.video.play.png17.28KB4.28KB▼ 75.21%