84% simple-speech-to-text

Code Review | Simple Speech To Text

WordPress plugin Simple Speech To Text scored 84% from 54 tests.

About plugin

  • Plugin page: simple-speech-to-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 26, 2017
  • Latest release: Jul 26, 2017
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: techmanstudio2017 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 2,239 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.00MB] [CPU: ▼5.23ms] Passed 4 tests

Server-side resources used by Simple Speech To Text
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.86 ▼2.94
Dashboard /wp-admin3.31 ▲0.0045.14 ▼0.18
Posts /wp-admin/edit.php3.36 ▲0.0046.29 ▼2.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.95 ▼15.33
Media Library /wp-admin/upload.php3.23 ▲0.0035.06 ▲2.35

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Speech To Text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.34 ▼0.954.50 ▲2.6345.72 ▲0.39
Dashboard /wp-admin2,206 ▲155.85 ▼0.0593.81 ▼7.2937.81 ▼7.63
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0140.51 ▲6.1436.72 ▲2.42
Add New Post /wp-admin/post-new.php6,500 ▲4,96720.37 ▼2.78901.47 ▲231.5664.55 ▲8.86
Media Library /wp-admin/upload.php1,391 ▲34.16 ▲0.0492.59 ▼22.4140.36 ▼7.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-speech-to-text/simple-speech-to-text.php:160

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: audio to text, voice to word, hands free typing, speech to text, hands free text...

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

The main PHP script in "Simple Speech To Text" version 1.0.0 is automatically included on every request by WordPress
113 characters long description:
Are you lazy to type the text. Here is the solution.Use this plugin you can convert your speech into text easily.

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
No dangerous file extensions were detected138 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11318138

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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
No PNG images were found in this plugin