84% responsivevoice-text-to-speech

Code Review | ResponsiveVoice Text To Speech

WordPress plugin ResponsiveVoice Text To Speech scored84%from 54 tests.

About plugin

  • Plugin page: responsivevoice-t...
  • Plugin version: 1.7.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 25, 2015
  • Latest release: Nov 6, 2023
  • Number of updates: 98
  • Update frequency: every 30.9 days
  • Top authors: ResponsiveVoice (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

8,000+ active /175,254 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.63ms] Passed 4 tests

Analyzing server-side resources used by ResponsiveVoice Text To Speech
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.38 ▲1.37
Dashboard /wp-admin3.36 ▲0.0548.09 ▼2.07
Posts /wp-admin/edit.php3.41 ▲0.0545.60 ▼0.61
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.01 ▼1.20
Media Library /wp-admin/upload.php3.28 ▲0.0536.63 ▲1.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for ResponsiveVoice Text To Speech
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7714.24 ▼0.049.50 ▲7.8335.93 ▼10.33
Dashboard /wp-admin2,197 ▲205.55 ▲0.0188.56 ▼1.7779.78 ▲39.75
Posts /wp-admin/edit.php2,114 ▲141.95 ▼0.0036.15 ▼4.1133.98 ▼4.58
Add New Post /wp-admin/post-new.php1,550 ▲2125.33 ▲1.97773.46 ▲94.5162.19 ▲12.27
Media Library /wp-admin/upload.php1,417 ▲144.18 ▼0.0299.92 ▲1.8762.86 ▲19.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/responsivevoice-text-to-speech/responsivevoice-text-to-speech.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsivevoice-text-to-speech/includes/responsivevoice-includes.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsivevoice-text-to-speech/includes/responsivevoice-options.php:2

User-side errors Passed 1 test

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

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 require attention:
  • Tags: Please delete some tags, you are using 73 tag instead of maximum 10
You can take inspiration from this readme.txt

responsivevoice-text-to-speech/responsivevoice-text-to-speech.php Passed 13 tests

The main file in "ResponsiveVoice Text To Speech" v. 1.7.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
84 characters long description:
An easy to use plugin to integrate ResponsiveVoice Text to Speech into your WP blog.

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
Good job! No executable or dangerous file extensions detected372 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP36873308
SVG10147
CSS22517

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png75.11KB39.70KB▼ 47.14%
includes/images/responsivevoice-icon-16x16.png19.54KB0.94KB▼ 95.21%
includes/images/responsivevoice-icon-20x20.png3.97KB1.23KB▼ 69.01%
includes/images/responsivevoice-icon-192x192.png50.89KB11.83KB▼ 76.75%
includes/images/responsivevoice-logo-300x58.png11.67KB5.53KB▼ 52.61%