74% fulltext-search

Code Review | WP Fast Total Search - The Power of Indexed Search

WordPress plugin WP Fast Total Search - The Power of Indexed Search scored74%from 54 tests.

About plugin

  • Plugin page: fulltext-search
  • Plugin version: 1.59.211
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2015
  • Latest release: Oct 25, 2023
  • Number of updates: 100
  • Update frequency: every 29.4 days
  • Top authors: Epsiloncool (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

1,000+ active /44,350 total downloads

Benchmarks

Plugin footprint 65% 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: ▲1.53MB] [CPU: ▲12.78ms] Passed 4 tests

Server-side resources used by WP Fast Total Search - The Power of Indexed Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.01 ▲1.5454.06 ▲10.66
Dashboard /wp-admin4.84 ▲1.4960.45 ▲0.48
Posts /wp-admin/edit.php4.93 ▲1.5763.61 ▲18.76
Add New Post /wp-admin/post-new.php7.67 ▲1.78840.73 ▲743.47
Media Library /wp-admin/upload.php4.73 ▲1.5054.28 ▲21.22
Support & Docs /wp-admin/admin.php?page=wpfts-options-support4.9362.94
Main Configuration /wp-admin/admin.php?page=wpfts-options4.9362.65
Search & Output /wp-admin/admin.php?page=wpfts-options-search-relevance4.9359.46
Sandbox Area /wp-admin/admin.php?page=wpfts-options-sandbox-area4.9364.84
Indexing Engine /wp-admin/admin.php?page=wpfts-options-indexing-engine4.9363.34
Analytics /wp-admin/admin.php?page=wpfts-options-analytics4.9360.77

Server storage [IO: ▲4.14MB] [DB: ▲0.03MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 107 new files
Database: 13 new tables, 7 new options
New tables
wpftsi_index
wpftsi_vc
wpftsi_map
wpftsi_rawcache
wpftsi_stops
wpftsi_vectors
wpftsi_docs
wpftsi_queue
wpftsi_words
wpftsi_ilog
...
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_wpfts_custom_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Fast Total Search - The Power of Indexed Search: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲23313.69 ▼0.6610.01 ▲8.3639.12 ▼6.94
Dashboard /wp-admin2,264 ▲845.76 ▲0.1197.79 ▲7.2140.85 ▼4.01
Posts /wp-admin/edit.php2,173 ▲732.28 ▲0.2942.35 ▲5.1034.56 ▼0.12
Add New Post /wp-admin/post-new.php1,586 ▲6023.01 ▼0.07657.40 ▼15.6465.63 ▲3.62
Media Library /wp-admin/upload.php1,472 ▲724.35 ▲0.11113.14 ▲18.3543.91 ▼2.89
Support & Docs /wp-admin/admin.php?page=wpfts-options-support3,6494.2898.5199.24
Main Configuration /wp-admin/admin.php?page=wpfts-options3,6634.3694.2160.92
Search & Output /wp-admin/admin.php?page=wpfts-options-search-relevance3,6654.2994.8555.60
Sandbox Area /wp-admin/admin.php?page=wpfts-options-sandbox-area3,6484.3389.2360.06
Indexing Engine /wp-admin/admin.php?page=wpfts-options-indexing-engine3,6644.3091.5564.43
Analytics /wp-admin/admin.php?page=wpfts-options-analytics4,1875.54123.6262.59

Uninstaller [IO: ▲0.01MB] [DB: ▲0.03MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 13 tables in the database
    • wpftsi_map
    • wpftsi_vectors
    • wpftsi_tp
    • wpftsi_tw
    • wpftsi_rawcache
    • wpftsi_words
    • wpftsi_docs
    • wpftsi_qlog
    • wpftsi_vc
    • wpftsi_queue
    • ...
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_wpfts_custom_widget
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/version/1_22_46.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/wpfts_output.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/wpfts_output.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/wpfts_output.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/wpfts_output.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/wpfts_output.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/wpfts_output.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/wpfts_output.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fulltext-search/includes/version/1_14_22.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fulltext-search/includes/wpfts_shortcodes.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: search, shortcode search, search pdf, relevant search, file search...

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

"WP Fast Total Search - The Power of Indexed Search" version 1.59.211's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin27,773 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
CSS69662910,655
PHP331,8611,8478,275
PO File61,4291,5144,721
SVG30123,009
JavaScript332522001,113

PHP code Passed 2 tests

Analyzing 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 complexity74.65
▷ Minimum class complexity1.00
▷ Maximum class complexity389.00
Average method complexity5.79
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods217
▷ Static methods156.91%
▷ Public methods21599.08%
▷ Protected methods20.92%
▷ Private methods00.00%
Functions45
▷ Named functions1431.11%
▷ Anonymous functions3168.89%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
style/wpfts-logo-transparent.png31.48KB12.89KB▼ 59.06%