84% wiloke-ai-text-to-speech

Code Review | Wiloke AI Text To Speech

WordPress plugin Wiloke AI Text To Speech scored84%from 54 tests.

About plugin

  • Plugin page: wiloke-ai-text-to...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Oct 27, 2020
  • Latest release: Nov 10, 2021
  • Number of updates: 7
  • Update frequency: every 54.1 days
  • Top authors: wiloke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Wiloke AI Text To Speech
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.03 ▲0.13
Dashboard /wp-admin3.31 ▲0.0144.02 ▼5.71
Posts /wp-admin/edit.php3.36 ▲0.0146.80 ▼3.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.11 ▼6.59
Media Library /wp-admin/upload.php3.24 ▲0.0133.88 ▲1.30

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Wiloke AI Text To Speech
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.70 ▼0.882.09 ▲0.0942.37 ▼3.65
Dashboard /wp-admin2,203 ▲155.81 ▼0.0197.15 ▲0.6140.97 ▼2.82
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0640.65 ▼1.0134.67 ▼0.57
Add New Post /wp-admin/post-new.php6,265 ▲4,75126.04 ▲8.52901.53 ▲206.6756.74 ▲0.87
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0293.45 ▼12.4638.54 ▼6.08

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wiloke-ai-text-to-speech/src/Views/admin-edit-post-sidebar/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wiloke-ai-text-to-speech/configs/config.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wiloke-ai-text-to-speech/wiloke-ai-text-to-speech.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: speech, post, ai, text

wiloke-ai-text-to-speech/wiloke-ai-text-to-speech.php 92% from 13 tests

The primary PHP file in "Wiloke AI Text To Speech" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 412 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin955 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12101183557
JavaScript2170324
CSS110067
JSON1007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods32
▷ Static methods39.38%
▷ Public methods3196.88%
▷ Protected methods00.00%
▷ Private methods13.12%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin