89% audio-comparison-lite

Code Review | Audio Comparison Lite

WordPress plugin Audio Comparison Lite scored89%from 54 tests.

About plugin

  • Plugin page: audio-comparison-...
  • Plugin version: 3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 46
  • Update frequency: every 12.7 days
  • Top authors: kaedinger (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /1,279 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.50ms] Passed 4 tests

An overview of server-side resources used by Audio Comparison Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1533.67 ▼6.92
Dashboard /wp-admin3.45 ▲0.1547.27 ▼3.91
Posts /wp-admin/edit.php3.57 ▲0.2147.89 ▼0.76
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.17 ▼6.39
Media Library /wp-admin/upload.php3.38 ▲0.1534.90 ▲3.54
Audio Comparison Lite /wp-admin/options-general.php?page=audio-comparison-lite/audio-comparison.php3.47254.85

Server storage [IO: ▲0.21MB] [DB: ▲0.03MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Audio Comparison Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14413.37 ▼0.909.58 ▲7.6737.71 ▼5.49
Dashboard /wp-admin2,202 ▲285.63 ▲0.0693.00 ▲5.9538.12 ▼2.57
Posts /wp-admin/edit.php2,101 ▲11.96 ▲0.0138.82 ▼1.1535.16 ▲0.25
Add New Post /wp-admin/post-new.php1,529 ▲323.71 ▲0.57675.48 ▲52.5949.92 ▲2.43
Media Library /wp-admin/upload.php1,398 ▼24.21 ▲0.0195.10 ▲0.0140.71 ▲0.00
Audio Comparison Lite /wp-admin/options-general.php?page=audio-comparison-lite/audio-comparison.php1,9191.7128.0733.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

audio-comparison-lite/audio-comparison.php 85% from 13 tests

The principal PHP file in "Audio Comparison Lite" v. 3.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 197 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("audio-comparison-lite.php" instead of "audio-comparison.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
Good job! No executable or dangerous file extensions detected1,559 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP40111,055
JavaScript301504

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity23.00
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png114.04KB62.45KB▼ 45.24%