90% vonic-voice-assistant-for-woocommerce

Code Review | Vonic Voice assistant for WooCommerce

WordPress plugin Vonic Voice assistant for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: vonic-voice-assis...
  • Plugin version: 0.9.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Sep 3, 2020
  • Latest release: Oct 27, 2020
  • Number of updates: 15
  • Update frequency: every 3.6 days
  • Top authors: neocheema (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.97ms] Passed 4 tests

Server-side resources used by Vonic Voice assistant for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0130.08 ▼13.06
Dashboard /wp-admin3.38 ▲0.0850.09 ▼0.95
Posts /wp-admin/edit.php3.43 ▲0.0747.63 ▼0.47
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.19 ▼9.38
Media Library /wp-admin/upload.php3.30 ▲0.0743.13 ▲6.22
Vonic Plugin /wp-admin/options-general.php?page=vonic-plugin3.2734.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options
vonic_woocommerce_is_activated_option
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
vonic_woocommerce_domain_key_name
can_compress_scripts
vonic_woocommerce_initial_sync_completed
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Vonic Voice assistant for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,484 ▼27714.70 ▲0.300.57 ▼1.2818.87 ▼25.37
Dashboard /wp-admin2,225 ▲224.84 ▼0.06112.90 ▼2.6744.83 ▼0.50
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0435.17 ▼1.8732.12 ▼3.26
Add New Post /wp-admin/post-new.php1,549 ▲2323.23 ▲5.73654.06 ▼31.1159.47 ▲3.96
Media Library /wp-admin/upload.php1,398 ▼24.24 ▲0.02102.27 ▼15.0446.86 ▼0.72
Vonic Plugin /wp-admin/options-general.php?page=vonic-plugin7662.0525.3028.54

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: voice search, voice assistant, voice

vonic-voice-assistant-for-woocommerce/vonic_voice_assistant_woocommerce_plugin.php 92% from 13 tests

Analyzing the main PHP file in "Vonic Voice assistant for WooCommerce" version 0.9.4.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vonic-voice-assistant-for-woocommerce.php" instead of "vonic_voice_assistant_woocommerce_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected393 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP174153393

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions14
▷ Named functions14100.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