84% ab-audio-sync

Code Review | A/B Audio Sync

WordPress plugin A/B Audio Sync scored84%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: 6.3.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

50+ active /6,334 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by A/B Audio Sync
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.49 ▼6.86
Dashboard /wp-admin3.31 ▼0.0443.59 ▼19.53
Posts /wp-admin/edit.php3.36 ▲0.0044.24 ▼9.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0080.28 ▼21.06
Media Library /wp-admin/upload.php3.24 ▲0.0034.04 ▲1.51

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A/B Audio Sync: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲13213.46 ▼1.079.30 ▲7.5238.82 ▲1.24
Dashboard /wp-admin2,198 ▲215.63 ▼0.1883.17 ▼10.4536.74 ▼8.71
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.0735.33 ▼4.5135.08 ▲0.74
Add New Post /wp-admin/post-new.php1,528 ▼822.95 ▼0.03656.72 ▼21.1659.88 ▲4.80
Media Library /wp-admin/upload.php1,400 ▲64.22 ▼0.0196.24 ▼11.5143.00 ▼4.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #1 is missing in ab-audio-sync/assets to your readme.txt
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

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

"A/B Audio Sync" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin313 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33432305
PHP1298

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin