10% wavetech-tts

Code Review | wavetech. - Text-to-speech

WordPress plugin wavetech. - Text-to-speech scored 10% from 54 tests.

About plugin

  • Plugin page: wavetech-tts
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 5.8.1
  • First release: Nov 30, 2020
  • Latest release: Feb 16, 2021
  • Number of updates: 6
  • Update frequency: every 13.8 days
  • Top authors: wavetech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 167 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wavetech-tts/wavetech.php+126
    Undefined offset: 0

Server metrics [RAM: ▼1.82MB] [CPU: ▼185.34ms] Passed 4 tests

This is a short check of server-side resources used by wavetech. - Text-to-speech
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.81 ▼1.027.24 ▼24.33
Dashboard /wp-admin1.83 ▼1.236.49 ▼36.54
Posts /wp-admin/edit.php1.83 ▼1.286.70 ▼35.30
Add New Post /wp-admin/post-new.php1.83 ▼3.606.12 ▼645.18
Media Library /wp-admin/upload.php1.83 ▼1.179.53 ▼22.51

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: 1 new table, 1 new option
New tables
wp_wt_posts
New WordPress options
my_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for wavetech. - Text-to-speech
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,755 ▲15917.62 ▲2.0314.76 ▲1.2948.13 ▼5.92
Dashboard /wp-admin3,002 ▲717.35 ▲1.30140.86 ▼2.99141.69 ▲21.05
Posts /wp-admin/edit.php2,778 ▲393.36 ▲0.6466.56 ▲4.8682.75 ▼11.58
Add New Post /wp-admin/post-new.php2,298 ▲62626.46 ▲7.70389.83 ▲24.77123.93 ▲6.77
Media Library /wp-admin/upload.php1,867 ▲576.12 ▲1.11131.13 ▼15.83144.89 ▲26.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wavetech-tts/wavetech.php+126
    Undefined offset: 0
  • Zombie WordPress options detected upon uninstall: 1 option
    • my_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wavetech-tts/templates/front-audio.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wavetech-tts/templates/meta_box.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wavetech-tts/wavetech.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wavetech-tts/templates/body.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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:
  • Contributors: Contributors not specified
You can look at the official readme.txt

wavetech-tts/wavetech.php 92% from 13 tests

This is the main PHP file of "wavetech. - Text-to-speech" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wavetech-tts.php" instead of "wavetech.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,520 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP420195740
CSS18411573
JavaScript43314154
SVG110053

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions13
▷ Named functions13100.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