84% audiodots-player

Code Review | AudioDots Player

WordPress plugin AudioDots Player scored84%from 54 tests.

About plugin

  • Plugin page: audiodots-player
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 4, 2020
  • Latest release: Jan 4, 2022
  • Number of updates: 6
  • Update frequency: every 72.2 days
  • Top authors: audiodots (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /801 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.64MB] [CPU: ▼15.31ms] Passed 4 tests

An overview of server-side resources used by AudioDots Player
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.04 ▲0.37
Dashboard /wp-admin3.34 ▲0.0347.52 ▼2.73
Posts /wp-admin/edit.php3.39 ▲0.0351.71 ▲0.02
Add New Post /wp-admin/post-new.php3.21 ▼2.6740.24 ▼58.88
Media Library /wp-admin/upload.php3.26 ▲0.0336.63 ▲1.39

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for AudioDots Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.63 ▼0.972.17 ▲0.4139.86 ▲0.53
Dashboard /wp-admin2,218 ▲334.87 ▼0.25112.06 ▲9.7945.88 ▲1.59
Posts /wp-admin/edit.php2,101 ▲122.01 ▲0.0040.33 ▲2.1334.32 ▼4.89
Add New Post /wp-admin/post-new.php1,543 ▲123.24 ▲4.60605.54 ▼65.5553.30 ▼15.10
Media Library /wp-admin/upload.php1,403 ▲124.22 ▼0.0698.97 ▼2.8142.61 ▲2.49

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audiodots-player/ninedotsplayer.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/audiodots-player/view-admin.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Activate Screen)
The official readme.txt might help

audiodots-player/ninedotsplayer.php 92% from 13 tests

"AudioDots Player" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("audiodots-player.php" instead of "ninedotsplayer.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
No dangerous file extensions were detected391 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24312235
CSS2290131
JavaScript10025

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
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
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
155x40playbtnppi.png22.66KB12.11KB▼ 46.55%
category-active.png5.28KB2.12KB▼ 59.95%
category.png3.95KB2.11KB▼ 46.42%
screenshot-1.png46.18KB24.68KB▼ 46.55%
audio-text.png1.23KB0.75KB▼ 38.46%