78% sitespeaker-widget

Code Review | ReadAloud Widget

WordPress plugin ReadAloud Widget scored78%from 54 tests.

About plugin

  • Plugin page: sitespeaker-widget
  • Plugin version: 1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Oct 9, 2023
  • Number of updates: 36
  • Update frequency: every 46.5 days
  • Top authors: ken107 (97.22%)sitespeaker (5.56%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /9,976 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.73ms] Passed 4 tests

Server-side resources used by ReadAloud Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.88 ▼3.40
Dashboard /wp-admin3.33 ▲0.0351.04 ▼2.51
Posts /wp-admin/edit.php3.38 ▲0.0344.40 ▼8.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.70 ▼16.42
Media Library /wp-admin/upload.php3.25 ▲0.0336.34 ▼1.59
ReadAloud Widget /wp-admin/options-general.php?page=sitespeaker_settings_page3.2032.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ReadAloud Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.421.74 ▼0.1843.70 ▲0.13
Dashboard /wp-admin2,199 ▲255.59 ▼0.1084.49 ▼9.3237.45 ▼5.67
Posts /wp-admin/edit.php2,104 ▲71.98 ▲0.0133.70 ▼5.5033.92 ▼2.89
Add New Post /wp-admin/post-new.php1,532 ▲423.14 ▲0.11670.80 ▲1.5657.23 ▼8.02
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.03102.32 ▼13.4143.01 ▼5.71
ReadAloud Widget /wp-admin/options-general.php?page=sitespeaker_settings_page1,4922.0628.8631.41

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sitespeaker_settings_page
    • > Notice in wp-content/plugins/sitespeaker-widget/sitespeaker.php+79
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sitespeaker-widget/sitespeaker.php:96

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: speech, speechify, voice, text-to-speech, widget...

sitespeaker-widget/sitespeaker.php 92% from 13 tests

The primary PHP file in "ReadAloud Widget" version 1.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sitespeaker-widget.php" instead of "sitespeaker.php")

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
Everything looks great! No dangerous files found in this plugin197 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript160100
PHP115882
HTML10015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin