94% retell-text-to-speech

Code Review | Retell

WordPress plugin Retell scored 94% from 54 tests.

About plugin

  • Plugin page: retell-text-to-sp...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 5.8.1
  • First release: Jul 12, 2021
  • Latest release: Jul 12, 2021
  • Number of updates: 5
  • Update frequency: every 3.0 days
  • Top authors: retell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 146 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.19MB] [CPU: ▼153.91ms] Passed 4 tests

Analyzing server-side resources used by Retell
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.82 ▲0.0925.94 ▲4.93
Dashboard /wp-admin3.07 ▲0.0142.89 ▲0.65
Posts /wp-admin/edit.php3.12 ▲0.0143.70 ▼3.68
Add New Post /wp-admin/post-new.php4.67 ▼0.7756.18 ▼603.21
Media Library /wp-admin/upload.php3.01 ▲0.0031.24 ▼9.38

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Retell
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲9816.56 ▲0.9612.67 ▲3.4245.63 ▼8.14
Dashboard /wp-admin2,972 ▲416.14 ▲0.21134.34 ▼3.48110.08 ▼8.81
Posts /wp-admin/edit.php2,744 ▲52.98 ▲0.2662.96 ▼5.4993.66 ▼3.20
Add New Post /wp-admin/post-new.php1,676 ▼19619.08 ▼0.10358.49 ▼39.68112.08 ▼1.69
Media Library /wp-admin/upload.php1,809 ▲25.34 ▲0.32152.84 ▲0.90128.43 ▲8.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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 | 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 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/retell-text-to-speech/retell.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: text to speech, accessibility, voice, podcasts, audio...

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

This is the main PHP file of "Retell" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("retell-text-to-speech.php" instead of "retell.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141142

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected