10% total-control-html5-audio-player-basic

Code Review | Total Control HTML5 Audio Player Basic

WordPress plugin Total Control HTML5 Audio Player Basic scored10%from 54 tests.

About plugin

  • Plugin page: total-control-htm...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Jul 10, 2012
  • Latest release: Oct 11, 2012
  • Number of updates: 5
  • Update frequency: every 18.6 days
  • Top authors: gholme4 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /15,912 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Parse error in wp-content/plugins/total-control-html5-audio-player-basic/total-control-html5-audio-player-plugin.php+525
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.10ms] Passed 4 tests

This is a short check of server-side resources used by Total Control HTML5 Audio Player Basic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.80 ▼3.91
Dashboard /wp-admin3.31 ▼0.0457.74 ▼1.23
Posts /wp-admin/edit.php3.36 ▲0.0046.17 ▲0.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.88 ▼22.58
Media Library /wp-admin/upload.php3.23 ▲0.0030.77 ▼4.66

Server storage [IO: ▲0.78MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Total Control HTML5 Audio Player Basic
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.79 ▲0.401.65 ▼0.1638.94 ▼2.76
Dashboard /wp-admin2,209 ▲215.89 ▲0.0293.18 ▼7.6938.65 ▼4.86
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0539.29 ▲2.8135.08 ▼0.53
Add New Post /wp-admin/post-new.php1,533 ▼923.43 ▲5.31642.11 ▲34.1656.14 ▼14.00
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0196.97 ▼0.6343.84 ▼0.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/total-control-html5-audio-player-basic/total-control-html5-audio-player-plugin.php on line 525

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Playlist manager), #2 (Plugin widget), #3 (Player)
You can look at the official readme.txt

total-control-html5-audio-player-basic/total-control-html5-audio-player-plugin.php 92% from 13 tests

The main PHP script in "Total Control HTML5 Audio Player Basic" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("total-control-html5-audio-player-basic.php" instead of "total-control-html5-audio-player-plugin.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
It is important to fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .as - Adobe Flash ActionScript File in Adobe Flash
      • wp-content/plugins/total-control-html5-audio-player-basic/javascripts/soundmanager/src/SoundManager2.as
      • wp-content/plugins/total-control-html5-audio-player-basic/javascripts/soundmanager/src/SoundManager2_AS3.as
      • wp-content/plugins/total-control-html5-audio-player-basic/javascripts/soundmanager/src/SoundManager2_SMSound_AS3.as
    • .bat - Batch File in Windows
      • wp-content/plugins/total-control-html5-audio-player-basic/javascripts/soundmanager/src/make-flash8.bat
      • wp-content/plugins/total-control-html5-audio-player-basic/javascripts/soundmanager/src/make-flash9.bat
10,835 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101,7671,2417,536
ActionScript32063081,408
CSS5114141,144
PHP112528372
HTML2813365
DOS Batch2306
Bourne Shell2004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
30 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
javascripts/jscrollpane/themes/lozenge/image/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
images/default-scrubber-dragger.png3.74KB0.84KB▼ 77.53%
images/default-lcd-screen.png3.79KB1.36KB▼ 64.00%
images/default-control-panel.png2.92KB0.31KB▼ 89.38%
screenshot-2.png34.70KB10.17KB▼ 70.70%