84% audio-album

Code Review | Audio Album

WordPress plugin Audio Album scored84%from 54 tests.

About plugin

  • Plugin page: audio-album
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2013
  • Latest release: Feb 21, 2023
  • Number of updates: 103
  • Update frequency: every 33.0 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

5,000+ active /90,587 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.40ms] Passed 4 tests

An overview of server-side resources used by Audio Album
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.01 ▼0.44
Dashboard /wp-admin3.37 ▲0.0352.90 ▼11.18
Posts /wp-admin/edit.php3.42 ▲0.0651.42 ▼2.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0698.18 ▼11.70
Media Library /wp-admin/upload.php3.29 ▲0.0638.91 ▲1.21

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
cc_audioalbum
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Audio Album
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.331.78 ▼0.0246.25 ▲2.79
Dashboard /wp-admin2,195 ▲185.67 ▼0.0484.61 ▼8.7441.15 ▲3.54
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0641.62 ▲2.2137.63 ▲1.16
Add New Post /wp-admin/post-new.php1,526 ▼517.70 ▼5.51660.03 ▼68.1251.81 ▼4.81
Media Library /wp-admin/upload.php1,403 ▲34.31 ▲0.09100.03 ▲5.8849.28 ▲7.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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

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
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 add_filter() in wp-content/plugins/audio-album/templates/genesis-audioalbum-popup.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: playlist, ogg, mp3, audio, music...

audio-album/audio-album.php Passed 13 tests

This is the main PHP file of "Audio Album" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
Provides shortcodes to format native WordPress audio players as an album of tracks with additional info

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
There were no executable files found in this plugin866 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP5167194420
CSS23613195
PO File35766190
JavaScript316761

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin