94% ab-audio-sync

Code Review | A/B Audio Sync

WordPress plugin A/B Audio Sync scored 94% from 54 tests.

About plugin

  • Plugin page: ab-audio-sync
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.3
  • WordPress version: 5.8.1
  • First release: May 24, 2016
  • Latest release: Mar 4, 2017
  • Number of updates: 32
  • Update frequency: every 8.9 days
  • Top authors: jcornutt (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 5,924 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼179.65ms] Passed 4 tests

An overview of server-side resources used by A/B Audio Sync
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0126.88 ▲4.00
Dashboard /wp-admin3.06 ▼0.0033.12 ▼6.52
Posts /wp-admin/edit.php3.12 ▲0.0142.27 ▼0.07
Add New Post /wp-admin/post-new.php5.43 ▼0.0174.60 ▼713.23
Media Library /wp-admin/upload.php3.01 ▲0.0029.39 ▲1.24

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for A/B Audio Sync
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲19016.12 ▲0.9114.48 ▲9.3787.83 ▲13.84
Dashboard /wp-admin2,929 ▲306.12 ▼0.03118.31 ▼16.79172.59 ▼4.95
Posts /wp-admin/edit.php2,743 ▲33.23 ▲0.0165.43 ▼1.83139.11 ▼2.88
Add New Post /wp-admin/post-new.php3,736 ▲3718.28 ▼0.51557.14 ▼49.22175.10 ▲2.34
Media Library /wp-admin/upload.php1,749 ▼05.53 ▲0.01163.65 ▼5.44207.03 ▼0.12

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
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 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/ab-audio-sync/ab-audio-sync.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #1 is missing in ab-audio-sync/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
You can look at the official readme.txt

ab-audio-sync/ab-audio-sync.php Passed 13 tests

The primary PHP file in "A/B Audio Sync" version 1.0.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
Allows A/B comparison of 2 audio streams as a WordPress plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin313 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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 functions1100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin