84% speech-to-text

Code Review | Speech To Text

WordPress plugin Speech To Text scored84%from 54 tests.

About plugin

  • Plugin page: speech-to-text
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Dec 31, 2014
  • Latest release: Jul 26, 2018
  • Number of updates: 17
  • Update frequency: every 76.7 days
  • Top authors: biztechc (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /9,145 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.75ms] Passed 4 tests

Server-side resources used by Speech To Text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.57 ▲0.19
Dashboard /wp-admin3.31 ▼0.0443.21 ▼15.22
Posts /wp-admin/edit.php3.36 ▲0.0042.25 ▼3.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.02 ▼10.29
Media Library /wp-admin/upload.php3.23 ▲0.0029.69 ▼2.47

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Speech To Text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.341.63 ▼0.2041.45 ▲0.16
Dashboard /wp-admin2,206 ▲185.85 ▲0.99100.32 ▼2.3039.08 ▼5.63
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0135.56 ▼5.8031.82 ▼2.97
Add New Post /wp-admin/post-new.php6,270 ▲4,75626.16 ▲8.59946.18 ▲299.7374.15 ▲16.58
Media Library /wp-admin/upload.php1,388 ▼34.28 ▼0.0294.66 ▼5.9542.18 ▼1.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speech-to-text/speech-to-text.php:11

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (screenshot-1.png) image required
The official readme.txt might help

speech-to-text/speech-to-text.php Passed 13 tests

Analyzing the main PHP file in "Speech To Text" version 1.0.0
57 characters long description:
User can speak and add content into posts without typing.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin270 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22113270

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.83
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.16KB6.31KB▼ 65.24%