84% dynamic-audio-player-basic

Code Review | Dynamic Audio Player Basic

WordPress plugin Dynamic Audio Player Basic scored 84% from 54 tests.

About plugin

  • Plugin page: dynamic-audio-pla...
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Oct 24, 2016
  • Number of updates: 38
  • Update frequency: every 20.3 days
  • Top authors: msalsas (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

30+ active / 11,732 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.99ms] Passed 4 tests

This is a short check of server-side resources used by Dynamic Audio Player Basic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.97 ▼0.4919.85 ▼22.08
Dashboard /wp-admin3.59 ▲0.2944.28 ▼2.72
Posts /wp-admin/edit.php3.71 ▲0.3546.80 ▼1.72
Add New Post /wp-admin/post-new.php6.17 ▲0.2987.69 ▼5.42
Media Library /wp-admin/upload.php3.52 ▲0.2932.95 ▲0.04

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 141 new files
Database: no new tables, 7 new options
New WordPress options
widget_dynamic-player-widget
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Dynamic Audio Player Basic: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.15 ▼1.162.02 ▲0.2844.21 ▲4.19
Dashboard /wp-admin2,224 ▲335.82 ▲0.9396.75 ▼4.5180.14 ▲38.13
Posts /wp-admin/edit.php2,107 ▲182.02 ▲0.0335.30 ▼1.9033.37 ▼0.93
Add New Post /wp-admin/post-new.php1,373 ▼16018.31 ▼4.75729.80 ▼25.6548.50 ▼6.27
Media Library /wp-admin/upload.php1,403 ▲124.10 ▼0.0694.74 ▼1.6182.66 ▲34.84

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_dynamic-player-widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dynamic-audio-player-basic/dynamicplayer.php:195

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: playlist, ogg, audio player, audio, player...

dynamic-audio-player-basic/dynamicplayer.php 92% from 13 tests

The principal PHP file in "Dynamic Audio Player Basic" v. 3.1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dynamic-audio-player-basic.php" instead of "dynamicplayer.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 plugin14,759 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
HTML594832689,079
JavaScript115956163,521
CSS11258891,457
PHP113337665
JSON10021
Markdown111016

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
47 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/player/dynSmall_next.png1.05KB1.32KB0.00%
images/player/dynRegular_pause.png0.83KB1.11KB0.00%
js/jScrollPane/image/logo.png1.79KB1.76KB▼ 2.12%
images/player/dyn_minimize.png2.61KB1.99KB▼ 23.96%
images/player/dyn_play.png1.74KB1.52KB▼ 12.86%