83% aivoov-text-to-speech

Code Review | AiVOOV - Realistic Text to Speech & AI Voice Generator Online

WordPress plugin AiVOOV - Realistic Text to Speech & AI Voice Generator Online scored83%from 54 tests.

About plugin

  • Plugin page: aivoov-text-to-sp...
  • Plugin version: 1.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2023
  • Latest release: Jun 2, 2023
  • Number of updates: 20
  • Update frequency: every 5.6 days
  • Top authors: aivoov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,651 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.24MB] [CPU: ▼5.98ms] Passed 4 tests

This is a short check of server-side resources used by AiVOOV - Realistic Text to Speech & AI Voice Generator Online
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2544.84 ▲1.34
Dashboard /wp-admin3.55 ▲0.2051.05 ▼14.03
Posts /wp-admin/edit.php3.66 ▲0.3052.76 ▼2.35
Add New Post /wp-admin/post-new.php6.15 ▲0.26103.47 ▼8.87
Media Library /wp-admin/upload.php3.47 ▲0.2439.72 ▲4.19

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
aivoov_tts_player_background_color
aivoov_tts_player_text_color
aivoov_tts_player_button_color
db_upgraded
can_compress_scripts
aivoov_tts_default_voice_id
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by AiVOOV - Realistic Text to Speech & AI Voice Generator Online
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲20714.14 ▼0.1414.08 ▲12.4937.26 ▼2.52
Dashboard /wp-admin2,241 ▲615.67 ▲0.0389.09 ▼3.4874.90 ▲37.00
Posts /wp-admin/edit.php2,146 ▲492.14 ▲0.1735.85 ▼4.3736.10 ▼4.52
Add New Post /wp-admin/post-new.php1,565 ▲3723.69 ▲0.59758.64 ▲111.5068.08 ▲17.84
Media Library /wp-admin/upload.php1,440 ▲404.11 ▼0.06106.31 ▲3.9576.04 ▲32.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • aivoov_tts_player_position
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aivoov-text-to-speech/admin/posts-list.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aivoov-text-to-speech/aivoov.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aivoov-text-to-speech/admin/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aivoov-text-to-speech/public/public.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aivoov-text-to-speech/admin/ajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aivoov-text-to-speech/admin/single-post.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aivoov-text-to-speech/admin/notices.php:140
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aivoov-text-to-speech/admin/elementor-addon.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/aivoov-text-to-speech/admin/widgets/aivoov-widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Connect to AiVOOV account.), #2 (Create post with audio when add post.), #3 (Audio player on post view)
The official readme.txt might help

aivoov-text-to-speech/aivoov.php 77% from 13 tests

The entry point to "AiVOOV - Realistic Text to Speech & AI Voice Generator Online" version 1.1.9 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Please don't use more than 140 characters for the plugin description (currently 330 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aivoov-text-to-speech.php" instead of "aivoov.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,369 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP112861731,470
CSS61501,063
JavaScript5145193836

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
Functions56
▷ Named functions56100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png1.17KB0.93KB▼ 20.47%
admin/images/play-button.png0.32KB0.28KB▼ 11.46%
admin/images/pause-button.png0.24KB0.15KB▼ 36.21%