84% spoken-search

Code Review | Spoken Search

WordPress plugin Spoken Search scored84%from 54 tests.

About plugin

  • Plugin page: spoken-search
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2020
  • Latest release: Apr 12, 2023
  • Number of updates: 7
  • Update frequency: every 162.1 days
  • Top authors: twicetwomedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.52ms] Passed 4 tests

Analyzing server-side resources used by Spoken Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2234.66 ▼3.37
Dashboard /wp-admin3.58 ▲0.2744.67 ▼6.26
Posts /wp-admin/edit.php3.63 ▲0.2751.43 ▲7.92
Add New Post /wp-admin/post-new.php6.09 ▲0.2187.63 ▼11.63
Media Library /wp-admin/upload.php3.44 ▲0.2138.30 ▲7.18
Spoken Search /wp-admin/tools.php?page=SS2T_Settings3.4029.57

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_ss2t_widget
SS2T
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Spoken Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7514.46 ▲0.202.43 ▲0.7541.07 ▼1.81
Dashboard /wp-admin2,209 ▲214.86 ▼0.9897.75 ▼24.0540.68 ▼6.56
Posts /wp-admin/edit.php2,095 ▲92.05 ▼0.0340.13 ▲4.4736.62 ▲1.28
Add New Post /wp-admin/post-new.php1,533 ▲523.12 ▲4.91675.78 ▲27.2367.14 ▲17.08
Media Library /wp-admin/upload.php1,397 ▲94.34 ▲0.1994.14 ▼5.4940.90 ▼4.91
Spoken Search /wp-admin/tools.php?page=SS2T_Settings1,2192.0525.1244.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • SS2T
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_ss2t_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/spoken-search/spoken-search.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: speech search, speech to text, voice search, mobile voice search, voice to text...

spoken-search/spoken-search.php 92% from 13 tests

This is the main PHP file of "Spoken Search" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected1,631 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP15257881,206
CSS4412423
JavaScript1062

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.80
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods4765.28%
▷ Protected methods2534.72%
▷ Private methods00.00%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants20
▷ Global constants1050.00%
▷ Class constants1050.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/ss2t-search-light_medium.png4.80KB2.44KB▼ 49.25%
assets/img/ss2t-search-dark_medium.png4.65KB2.06KB▼ 55.81%
assets/img/ss2t-microphone-for-light.png23.74KB3.63KB▼ 84.70%
assets/img/ss2t-microphone.png8.05KB3.25KB▼ 59.56%
assets/img/ss2t-search-light_small.png2.04KB0.92KB▼ 54.62%