93% talkify-text-to-speech

Code Review | Talkify Text To Speech

WordPress plugin Talkify Text To Speech scored 93% from 53 tests.

About plugin

  • Plugin page: talkify-text-to-s...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 30, 2020
  • Latest release: Jul 31, 2020
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: talkify (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 433 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼297.66ms] Passed 4 tests

An overview of server-side resources used by Talkify Text To Speech
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1829.86 ▲10.07
Dashboard /wp-admin3.12 ▲0.0743.96 ▼6.56
Posts /wp-admin/edit.php3.17 ▲0.0743.70 ▼0.46
Add New Post /wp-admin/post-new.php5.48 ▲0.0692.97 ▼1,174.45
Media Library /wp-admin/upload.php3.06 ▲0.0627.08 ▼9.17

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Talkify Text To Speech
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,719 ▲13715.97 ▲0.159.61 ▲2.3745.74 ▲2.47
Dashboard /wp-admin2,948 ▲986.08 ▲0.24133.69 ▼3.47108.89 ▲9.08
Posts /wp-admin/edit.php2,721 ▲152.68 ▲0.0069.10 ▼1.5392.02 ▲1.20
Add New Post /wp-admin/post-new.php1,876 ▲2518.98 ▲1.26376.44 ▲11.73125.25 ▲20.66
Media Library /wp-admin/upload.php1,787 ▲125.03 ▲0.02145.89 ▲0.30113.83 ▼2.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/talkify-text-to-speech/talkify-tts.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/talkify-text-to-speech/partials/talkify-tts-admin-settings-display.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (56 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

talkify-text-to-speech/talkify-tts.php 85% from 13 tests

"Talkify Text To Speech" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("talkify-text-to-speech.php" instead of "talkify-tts.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)

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,773 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS10234391,005
JavaScript3641539
PHP2349229

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin