84% speechkit

Code Review | BeyondWords - Text-to-Speech

WordPress plugin BeyondWords - Text-to-Speech scored84%from 54 tests.

About plugin

  • Plugin page: speechkit
  • Plugin version: 4.2.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Nov 15, 2023
  • Number of updates: 289
  • Update frequency: every 8.1 days
  • Top authors: speechkit (74.74%)stuartmcalpine (25.61%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active /59,684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.39MB] [CPU: ▼3.76ms] Passed 4 tests

Analyzing server-side resources used by BeyondWords - Text-to-Speech
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.7641.75 ▼6.17
Dashboard /wp-admin3.67 ▲0.3745.17 ▼2.24
Posts /wp-admin/edit.php3.72 ▲0.3750.48 ▲3.88
Add New Post /wp-admin/post-new.php6.34 ▲0.4592.00 ▼6.74
Media Library /wp-admin/upload.php3.59 ▲0.3632.46 ▲0.12
BeyondWords /wp-admin/options-general.php?page=beyondwords3.5634.26

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 202 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
beyondwords_player_version
widget_recent-posts
widget_theysaidso_widget
beyondwords_version
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for BeyondWords - Text-to-Speech
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5514.72 ▲0.371.64 ▼0.2741.23 ▼2.90
Dashboard /wp-admin2,222 ▲485.60 ▼0.0090.71 ▼8.6840.20 ▼7.96
Posts /wp-admin/edit.php2,198 ▲1012.11 ▲0.1639.98 ▲3.1236.90 ▲2.43
Add New Post /wp-admin/post-new.php6,239 ▲4,70120.53 ▼2.52916.49 ▲249.5059.66 ▲5.67
Media Library /wp-admin/upload.php1,427 ▲334.21 ▼0.0199.45 ▲0.7044.35 ▲0.21
BeyondWords /wp-admin/options-general.php?page=beyondwords8581.7325.1628.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\DomCrawler\\AbstractUriElement' not found in wp-content/plugins/speechkit/vendor/symfony/dom-crawler/Image.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Base_Control' not found in wp-content/plugins/speechkit/src/Compatibility/Elementor/Controls/Player.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/speechkit/uninstall.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\DomCrawler\\AbstractUriElement' not found in wp-content/plugins/speechkit/vendor/symfony/dom-crawler/Link.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/speechkit/vendor/symfony/polyfill-php80/PhpToken.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/speechkit/src/Compatibility/Elementor/Controls/InspectText.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/speechkit/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\DomCrawler\\Field\\FormField' not found in wp-content/plugins/speechkit/vendor/symfony/dom-crawler/Field/TextareaFormField.php:19
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/speechkit/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/speechkit/vendor/symfony/dom-crawler/Test/Constraint/CrawlerSelectorExists.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please describe screenshot #1 in speechkit/assets to your readme.txt
You can look at the official readme.txt

speechkit/speechkit.php Passed 13 tests

Analyzing the main PHP file in "BeyondWords - Text-to-Speech" version 4.2.4
121 characters long description:
The effortless way to make content listenable. Automatically create audio versions and embed via our customizable player.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin15,191 lines of code in 190 files:
LanguageFilesBlank linesComment linesLines of code
PHP942,1615,04412,135
JavaScript763514092,190
JSON800637
Markdown7500148
CSS59081

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity16.92
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces38
Interfaces1
Traits0
Classes72
▷ Abstract classes22.78%
▷ Concrete classes7097.22%
▷ Final classes811.43%
Methods557
▷ Static methods13924.96%
▷ Public methods50189.95%
▷ Protected methods254.49%
▷ Private methods315.57%
Functions136
▷ Named functions10980.15%
▷ Anonymous functions2719.85%
Constants54
▷ Global constants1120.37%
▷ Class constants4379.63%
▷ Public constants4297.67%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
src/Component/Post/AddPlayer/tinymce-button.png2.90KB1.54KB▼ 46.94%