89% voice-forms

Code Review | Voice Forms

WordPress plugin Voice Forms scored89%from 54 tests.

About plugin

  • Plugin page: voice-forms
  • Plugin version: 3.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 28, 2019
  • Latest release: Jul 13, 2023
  • Number of updates: 20
  • Update frequency: every 67.9 days
  • Top authors: mspanwa2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,784 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.76MB] [CPU: ▲539.92ms] 50% from 4 tests

Analyzing server-side resources used by Voice Forms
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 602.79ms on /wp-admin/options-general.php?page=voice-forms-settings)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 539.92ms on /wp-admin/options-general.php?page=voice-forms-settings)
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.79619.94 ▲570.30
Dashboard /wp-admin4.07 ▲0.72583.49 ▲515.61
Posts /wp-admin/edit.php4.12 ▲0.76602.92 ▲551.16
Add New Post /wp-admin/post-new.php6.67 ▲0.78627.20 ▲524.21
Media Library /wp-admin/upload.php3.99 ▲0.76602.31 ▲568.71
Voice Forms /wp-admin/options-general.php?page=voice-forms-settings3.91602.79

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 15 new options
New WordPress options
can_compress_scripts
vf_api_system_key
db_upgraded
widget_theysaidso_widget
vf_version
vf_settings_updated_timestamp
vf_selected_language
widget_recent-comments
widget_recent-posts
vf_floating_mic
...

Browser metrics Passed 4 tests

A check of browser resources used by Voice Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲18114.79 ▲0.565.70 ▲3.9146.89 ▲3.86
Dashboard /wp-admin2,223 ▲355.84 ▼0.00100.00 ▼9.3373.19 ▲28.71
Posts /wp-admin/edit.php2,121 ▲321.96 ▼0.0535.61 ▲0.4836.74 ▼0.79
Add New Post /wp-admin/post-new.php1,694 ▲17420.15 ▼3.06716.89 ▲91.8761.02 ▲10.21
Media Library /wp-admin/upload.php1,411 ▲234.31 ▲0.09101.73 ▲2.6879.34 ▲36.29
Voice Forms /wp-admin/options-general.php?page=voice-forms-settings1,7642.1725.3952.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 14 options in the database
    • vf_selected_language
    • db_upgraded
    • vf_floating_mic
    • vf_api_system_key
    • widget_recent-comments
    • can_compress_scripts
    • vf_uuid
    • vf_first_activation
    • vf_settings_updated_timestamp
    • theysaidso_admin_options
    • ...

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

voice-forms/voice-forms.php 92% from 13 tests

The entry point to "Voice Forms" version 3.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,939 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP103664674,151
JavaScript144804591,954
CSS415236726
SVG71292
JSON10016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity18.20
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods61
▷ Static methods1931.15%
▷ Public methods4980.33%
▷ Protected methods69.84%
▷ Private methods69.84%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants23
▷ Global constants417.39%
▷ Class constants1982.61%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/speak2web_logo.png3.16KB3.26KB0.00%