88% audiomack

Code Review | Audiomack

WordPress plugin Audiomack scored 88% from 54 tests.

About plugin

  • Plugin page: audiomack
  • Plugin version: 1.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.8
  • WordPress version: 5.8.1
  • First release: Aug 29, 2013
  • Latest release: Jul 13, 2021
  • Number of updates: 70
  • Update frequency: every 41.1 days
  • Top authors: _wpdean (35.71%)audiomack (34.29%)lordspace (32.86%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active / 22,602 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼128.34ms] Passed 4 tests

This is a short check of server-side resources used by Audiomack
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2133.46 ▲11.90
Dashboard /wp-admin3.16 ▲0.1161.71 ▲19.24
Posts /wp-admin/edit.php3.21 ▲0.0972.79 ▲23.09
Add New Post /wp-admin/post-new.php5.52 ▲0.0991.54 ▼546.15
Media Library /wp-admin/upload.php3.10 ▲0.1034.43 ▲1.64
Audiomack /wp-admin/options-general.php?page=audiomack/audiomack.php3.0726.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Audiomack
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,738 ▲10116.50 ▲0.6010.10 ▼0.1154.98 ▲2.83
Dashboard /wp-admin3,002 ▲656.56 ▲0.58175.84 ▲29.48129.81 ▲11.46
Posts /wp-admin/edit.php2,777 ▲383.00 ▲0.3071.95 ▲9.69108.10 ▲15.25
Add New Post /wp-admin/post-new.php1,704 ▲3221.51 ▲2.50382.68 ▲4.94109.56 ▼7.53
Media Library /wp-admin/upload.php1,842 ▲355.40 ▲0.38130.27 ▼17.90123.98 ▲1.52
Audiomack /wp-admin/options-general.php?page=audiomack/audiomack.php2,28816.42644.07120.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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/audiomack/audiomack.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=audiomack/audiomack.php
    • > Network (severe)
    https://firebase.googleapis.com/v1alpha/projects/-/apps/1:122326890670:web:d98d4dc4d7f74598ead53f/webConfig - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Popup dialog in edit page/post), #2 (Shows embed code for song and album)
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

audiomack/audiomack.php Passed 13 tests

This is the main PHP file of "Audiomack" version 1.4.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Audiomack is the place for artists to effortlessly share their music and for fans to discover and download free songs, albums and playlists.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin874 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP2136219689
CSS218580
XML20062
JavaScript452643

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.49MB with 0.35MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png169.32KB48.60KB▼ 71.30%
screenshot-1.png162.18KB45.10KB▼ 72.19%
screenshot-3.png169.32KB48.60KB▼ 71.30%