89% voice-dialog-navigation

Code Review | Voice Assistant Dialog Navigation

WordPress plugin Voice Assistant Dialog Navigation scored89%from 54 tests.

About plugin

  • Plugin page: voice-dialog-navi...
  • Plugin version: 3.2.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2019
  • Latest release: May 24, 2021
  • Number of updates: 44
  • Update frequency: every 18.5 days
  • Top authors: mspanwa2 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,851 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.97MB] [CPU: ▲556.93ms] 50% from 4 tests

A check of server-side resources used by Voice Assistant Dialog Navigation
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 626.36ms on /wp-admin/options-general.php?page=vd-navigation-settings)
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 556.93ms on /wp-admin/options-general.php?page=vd-navigation-settings)
PageMemory (MB)CPU Time (ms)
Home /4.36 ▲0.90586.78 ▲545.11
Dashboard /wp-admin4.30 ▲1.00608.38 ▲561.38
Posts /wp-admin/edit.php4.35 ▲1.00625.96 ▲576.57
Add New Post /wp-admin/post-new.php6.90 ▲1.01652.78 ▲560.97
Media Library /wp-admin/upload.php4.22 ▲1.00597.73 ▲560.25
Voice Dialog – Navigation /wp-admin/options-general.php?page=vd-navigation-settings4.14626.36

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 138 new files
Database: no new tables, 17 new options
New WordPress options
vd_navigation_mic_listening_timeout
widget_recent-comments
vd_navigation_license_key
vd_navigation_settings_updated_timestamp
vd_navigation_first_activation
vd_navigation_searchable_hints
vd_navigation_type_of_search
vd_navigation_trial_valid_until
vd_navigation_uuid
vd_navigation_api_system_key
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Voice Assistant Dialog Navigation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,002 ▲26714.81 ▲0.426.17 ▲4.5041.89 ▲0.28
Dashboard /wp-admin2,294 ▲1065.87 ▲0.9196.26 ▼9.7372.44 ▲27.52
Posts /wp-admin/edit.php2,177 ▲882.12 ▲0.1335.13 ▼1.2634.56 ▲0.78
Add New Post /wp-admin/post-new.php1,748 ▲23420.40 ▲2.86712.73 ▲36.4660.34 ▲0.38
Media Library /wp-admin/upload.php1,467 ▲794.26 ▲0.01109.13 ▲11.2877.33 ▲34.91
Voice Dialog – Navigation /wp-admin/options-general.php?page=vd-navigation-settings8,8331.8530.2098.73

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
  • The uninstall procedure has failed, leaving 17 options in the database
    • can_compress_scripts
    • vd_navigation_first_activation
    • vd_navigation_settings_updated_timestamp
    • vd_navigation_uuid
    • vd_navigation_floating_mic_position
    • vd_navigation_api_system_key
    • db_upgraded
    • vd_navigation_trial_valid_until
    • widget_recent-comments
    • vd_navigation_license_key
    • ...

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

voice-dialog-navigation/voice-dialog-navigation.php 85% from 13 tests

The entry point to "Voice Assistant Dialog Navigation" version 3.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

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
No dangerous file extensions were detected8,711 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP84636404,662
JavaScript147269042,943
CSS41249985
SVG1012104
JSON10017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity44.29
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity6.12
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods53
▷ Static methods1935.85%
▷ Public methods4584.91%
▷ Protected methods35.66%
▷ Private methods59.43%
Functions11
▷ Named functions218.18%
▷ Anonymous functions981.82%
Constants31
▷ Global constants412.90%
▷ Class constants2787.10%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vdn-floating-robot-icon.png1.25KB1.30KB0.00%
images/speak2web_logo.png3.16KB3.26KB0.00%
images/Voice Assistant Bot Icon.png3.06KB3.20KB0.00%
images/vdn-floating-mic-icon.png0.82KB0.86KB0.00%
images/vdn-widget-robot.png0.96KB0.98KB0.00%