73% voice-widgets

Code Review | Voice Widgets

WordPress plugin Voice Widgets scored73%from 54 tests.

About plugin

  • Plugin page: voice-widgets
  • Plugin version: 2.9.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: May 9, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 40
  • Update frequency: every 14.2 days
  • Top authors: quantumcloud (70%)dna88 (32.5%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /2,648 total downloads

Benchmarks

Plugin footprint 83% 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.16MB] [CPU: ▼3.59ms] Passed 4 tests

This is a short check of server-side resources used by Voice Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1537.01 ▼6.70
Dashboard /wp-admin3.48 ▲0.1350.91 ▼8.85
Posts /wp-admin/edit.php3.60 ▲0.2354.04 ▲1.93
Add New Post /wp-admin/post-new.php6.07 ▲0.1897.57 ▼0.50
Media Library /wp-admin/upload.php3.41 ▲0.1738.31 ▲1.71
All Voice Widgets /wp-admin/edit.php?post_type=wp_voicemsg_record3.4539.55
Add New /wp-admin/post-new.php?post_type=wp_voicemsg_record3.4949.43
CF7 Settings /wp-admin/edit.php?post_type=wp_voicemsg_record&page=wp_voicemsg_settings3.4235.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Voice Widgets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8514.22 ▼0.491.45 ▼0.3326.68 ▼16.81
Dashboard /wp-admin2,237 ▲575.58 ▼0.0290.74 ▼2.4341.39 ▼4.39
Posts /wp-admin/edit.php2,139 ▲391.99 ▲0.0339.78 ▼0.8437.46 ▲0.20
Add New Post /wp-admin/post-new.php1,559 ▲2922.83 ▼0.12597.21 ▼83.7852.46 ▼1.70
Media Library /wp-admin/upload.php1,439 ▲394.14 ▼0.07102.08 ▲7.2849.32 ▲7.87
All Voice Widgets /wp-admin/edit.php?post_type=wp_voicemsg_record1,1612.4743.9436.00
Add New /wp-admin/post-new.php?post_type=wp_voicemsg_record2,0823.9679.04101.46
CF7 Settings /wp-admin/edit.php?post_type=wp_voicemsg_record&page=wp_voicemsg_settings1,0992.4538.6541.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/voice-widgets/templates/help.php
    • > /wp-content/plugins/voice-widgets/class-dna88-free-plugin-upgrade-notice.php
    • > /wp-content/plugins/voice-widgets/templates/admin/audio_options.php
    • > /wp-content/plugins/voice-widgets/templates/settings.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/voice-widgets/voice-widgets-cf7.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/voice-widgets/templates/frontend/default.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/voice-widgets/templates/admin/audio_template.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=wp_voicemsg_record&page=wp_voicemsg_settings
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=wp_voicemsg_record&page=wp_voicemsg_settings 209 The specified value "Please wait while proccsing your request." cannot be parsed, or is out of range.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: voice, wpforms, voice mail, audio, voice message

voice-widgets/voice-widgets.php Passed 13 tests

The principal PHP file in "Voice Widgets" v. 2.9.0 is loaded by WordPress automatically on each request
32 characters long description:
Voice Widgets for WordPress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin19,445 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON10016,640
JavaScript4239140839
PHP824593818
SVG100685
CSS53610463

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity18.67
▷ Minimum class complexity14.00
▷ Maximum class complexity25.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods38
▷ Static methods12.63%
▷ Public methods3797.37%
▷ Protected methods00.00%
▷ Private methods12.63%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
8 PNG files occupy 0.30MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/admin/images/default-template.png11.48KB4.67KB▼ 59.35%
templates/admin/images/wave_animation.png47.34KB10.87KB▼ 77.04%
templates/admin/images/image_play.png35.48KB10.12KB▼ 71.48%
assets/images/screenshot-3.png45.30KB17.88KB▼ 60.54%
templates/admin/images/call_to_action.png71.55KB18.78KB▼ 73.75%