83% voxpow

Code Review | Voxpow — Speech Recognition for your website

WordPress plugin Voxpow — Speech Recognition for your website scored83%from 54 tests.

About plugin

  • Plugin page: voxpow
  • Plugin version: 1.1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.2
  • WordPress version: 6.3.1
  • First release: Jan 2, 2020
  • Latest release: May 16, 2021
  • Number of updates: 23
  • Update frequency: every 21.8 days
  • Top authors: voxpow (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /1,783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Voxpow — Speech Recognition for your website
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.28 ▲0.44
Dashboard /wp-admin3.36 ▲0.0646.79 ▼6.77
Posts /wp-admin/edit.php3.47 ▲0.1248.31 ▼2.61
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.09 ▼15.59
Media Library /wp-admin/upload.php3.28 ▲0.0536.72 ▼1.21

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Voxpow — Speech Recognition for your website
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲2714.39 ▲0.031.65 ▼0.0538.89 ▼0.93
Dashboard /wp-admin2,219 ▲425.61 ▼0.0381.17 ▼2.5869.70 ▲26.54
Posts /wp-admin/edit.php2,124 ▲212.00 ▲0.0336.22 ▼7.4434.59 ▼7.37
Add New Post /wp-admin/post-new.php1,548 ▲2223.51 ▲0.55752.25 ▲72.2055.95 ▲2.35
Media Library /wp-admin/upload.php1,427 ▲274.24 ▲0.0595.29 ▼18.8079.00 ▲30.20

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/voxpow/loader.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/voxpow/voxpow_settings_page.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in voxpow/assets to your readme.txt
  • Plugin Name: You should set the name of your plugin on the first line ( === Voxpow — Speech Recognition for your website === )
The official readme.txt is a good inspiration

voxpow/loader.php 92% from 13 tests

This is the main PHP file of "Voxpow — Speech Recognition for your website" version 1.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("voxpow.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected600 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4113133344
CSS1507232
JavaScript18124

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.00
▷ Minimum class complexity7.00
▷ Maximum class complexity21.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/voxpow.png11.18KB5.77KB▼ 48.34%
assets/images/logo_voxpow.png15.19KB6.15KB▼ 59.52%
assets/images/voxpow-icon.png1.17KB0.73KB▼ 37.77%