74% audio-comments

Code Review | Audio Comments Plugin

WordPress plugin Audio Comments Plugin scored 74% from 54 tests.

About plugin

  • Plugin page: audio-comments
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.7.0
  • WordPress version: 6.3.1
  • First release: Feb 22, 2014
  • Latest release: Mar 11, 2017
  • Number of updates: 60
  • Update frequency: every 18.6 days
  • Top authors: naicuoctavian (51.67%)radu.patron (50%)

Code review

54 tests

User reviews

9 reviews

Install metrics

40+ active / 7,392 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.33ms] Passed 4 tests

A check of server-side resources used by Audio Comments Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.95 ▼6.23
Dashboard /wp-admin3.36 ▲0.0650.43 ▲4.60
Posts /wp-admin/edit.php3.41 ▲0.0648.62 ▲0.84
Add New Post /wp-admin/post-new.php5.95 ▲0.0698.43 ▲5.95
Media Library /wp-admin/upload.php3.28 ▲0.0635.81 ▼0.54
Audio Comments /wp-admin/options-general.php?page=audio-comments/audior-settings.php3.3036.32

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 3 new tables, 6 new options
New tables
wp_audior_permissions
wp_audior_comments
wp_audior_settings
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Audio Comments Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.19 ▼1.201.89 ▼0.0437.76 ▼6.35
Dashboard /wp-admin2,213 ▲245.88 ▼0.05108.62 ▼6.0742.47 ▲3.36
Posts /wp-admin/edit.php2,099 ▲102.04 ▲0.0238.93 ▼2.6234.65 ▼2.02
Add New Post /wp-admin/post-new.php1,538 ▲1523.22 ▼0.22574.06 ▼95.9456.14 ▲0.81
Media Library /wp-admin/upload.php1,395 ▲104.16 ▼0.1394.99 ▼1.3342.00 ▲1.62
Audio Comments /wp-admin/options-general.php?page=audio-comments/audior-settings.php1,1272.0426.8132.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_audior_comments
    • wp_audior_permissions
    • wp_audior_settings
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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

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
  • 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/audio-comments/audior.php on line 22
    • > PHP Notice
      Undefined index: audior-settings in wp-content/plugins/audio-comments/integration.php on line 61
    • > PHP Notice
      Trying to get property 'disable_record_again_button' of non-object in wp-content/plugins/audio-comments/integration.php on line 58
    • > PHP Notice
      Undefined index: audior-settings in wp-content/plugins/audio-comments/integration.php on line 67
    • > PHP Notice
      Undefined index: audior-settings in wp-content/plugins/audio-comments/integration.php on line 46
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-content/plugins/audio-comments/sql.php' (include_path='.:/usr/share/php') in wp-content/plugins/audio-comments/audior.php on line 22
    • > PHP Notice
      Undefined index: audior-settings in wp-content/plugins/audio-comments/integration.php on line 64
    • > PHP Notice
      Undefined index: audior-settings in wp-content/plugins/audio-comments/integration.php on line 40
    • > PHP Notice
      Undefined index: audior-settings in wp-content/plugins/audio-comments/integration.php on line 73
    • > PHP Notice
      Trying to get property 'bg_color' of non-object in wp-content/plugins/audio-comments/integration.php on line 64

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 Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: comments, flash, mp3, audio comments, moderated...

audio-comments/audior.php 85% from 13 tests

The principal PHP file in "Audio Comments Plugin" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 271 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("audio-comments.php" instead of "audior.php")

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
Everything looks great! No dangerous files found in this plugin627 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5142143564
JavaScript23110563

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin