94% aa-audio-player

Code Review | AA Audio Player

WordPress plugin AA Audio Player scored 94% from 54 tests.

About plugin

  • Plugin page: aa-audio-player
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.9.2
  • First release: Oct 9, 2014
  • Latest release: Nov 2, 2014
  • Number of updates: 12
  • Update frequency: every 2.0 days
  • Top authors: aaextention (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,884 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by AA Audio Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0560.51 ▲9.44
Dashboard /wp-admin3.42 ▲0.0139.78 ▼35.13
Posts /wp-admin/edit.php3.65 ▲0.0138.97 ▲0.79
Add New Post /wp-admin/post-new.php6.89 ▼0.08100.15 ▼1,166.00
Media Library /wp-admin/upload.php3.30 ▲0.0123.84 ▼6.19

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for AA Audio Player
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,870 ▲12816.73 ▲0.9511.93 ▲5.883.35 ▲1.35
Dashboard /wp-admin2,878 ▲276.12 ▼0.05122.27 ▼21.60199.35 ▲36.47
Posts /wp-admin/edit.php2,694 ▲73.25 ▲0.0162.42 ▼38.10136.86 ▼15.92
Add New Post /wp-admin/post-new.php1,661 ▼016.42 ▼5.46397.46 ▼53.00202.56 ▲29.60
Media Library /wp-admin/upload.php1,698 ▼35.47 ▼0.03141.07 ▼4.43235.69 ▲44.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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)
The smoke test was a success, however most plugin functionality was not tested

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aa-audio-player/player.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: mp3, music player, cross browser player, player, aaextension

aa-audio-player/player.php 85% from 13 tests

"AA Audio Player" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 257 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aa-audio-player.php" instead of "player.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 detected62 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin