84% themify-audio-dock

Code Review | Themify Audio Dock

WordPress plugin Themify Audio Dock scored 84% from 54 tests.

About plugin

  • Plugin page: themify-audio-dock
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2017
  • Latest release: Jul 21, 2023
  • Number of updates: 54
  • Update frequency: every 43.6 days
  • Top authors: themifyme (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 24,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▲0.07ms] Passed 4 tests

Server-side resources used by Themify Audio Dock
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.77 ▼5.60
Dashboard /wp-admin3.40 ▲0.0951.81 ▲0.80
Posts /wp-admin/edit.php3.51 ▲0.1553.19 ▲1.98
Add New Post /wp-admin/post-new.php5.98 ▲0.09138.19 ▲39.63
Media Library /wp-admin/upload.php3.32 ▲0.0939.08 ▲3.09
Themify Audio Dock /wp-admin/options-general.php?page=themify-audio-dock3.3241.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Themify Audio Dock
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.73 ▲0.501.70 ▼0.1944.04 ▲4.71
Dashboard /wp-admin2,204 ▼25.84 ▲0.98103.42 ▼6.8236.82 ▼7.03
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0337.04 ▼3.2040.14 ▲4.97
Add New Post /wp-admin/post-new.php1,545 ▲3118.21 ▲0.65599.09 ▼19.8451.74 ▼15.01
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.0195.72 ▼1.2241.73 ▼3.77
Themify Audio Dock /wp-admin/options-general.php?page=themify-audio-dock1,0913.3948.8529.43

Uninstaller [IO: ✅] [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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/themify-audio-dock/includes/template.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themify-audio-dock/includes/admin.php:13

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: audio, audio-player, playlist

themify-audio-dock/init.php 92% from 13 tests

The entry point to "Themify Audio Dock" version 2.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("themify-audio-dock.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,255 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS64217807
PHP36770388
JavaScript510560

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity12.00
▷ Minimum class complexity3.00
▷ Maximum class complexity21.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/jquery.minicolors.png64.32KB34.31KB▼ 46.66%