79% wow-fulltext-search

Code Review | Wow FullText Search

WordPress plugin Wow FullText Search scored79%from 54 tests.

About plugin

  • Plugin page: wow-fulltext-search
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2019
  • Latest release: Mar 9, 2019
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: wowpresshost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Wow FullText Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.33 ▲0.06
Dashboard /wp-admin3.37 ▲0.0244.60 ▼15.04
Posts /wp-admin/edit.php3.48 ▲0.1243.93 ▼5.15
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.13 ▼11.56
Media Library /wp-admin/upload.php3.29 ▲0.0635.96 ▲3.08
Search /wp-admin/options-general.php?page=wow-search-page3.2628.23

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Wow FullText Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4713.91 ▼0.471.80 ▲0.1542.65 ▲0.26
Dashboard /wp-admin2,199 ▲195.63 ▼0.0382.99 ▼4.6837.13 ▼7.17
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0834.53 ▼3.3236.08 ▲1.58
Add New Post /wp-admin/post-new.php1,537 ▲1123.38 ▲0.14650.42 ▼34.8551.94 ▼0.83
Media Library /wp-admin/upload.php1,401 ▼24.20 ▼0.01106.47 ▲9.3745.93 ▲2.93
Search /wp-admin/options-general.php?page=wow-search-page1,0371.7023.0823.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wow-search-page
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WowFullTextSearch\\AdminUi' not found in wp-content/plugins/wow-fulltext-search/AdminPage_View_Settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WowFullTextSearch\\esc_attr() in wp-content/plugins/wow-fulltext-search/AdminPage_View_Build.php:10
    • > PHP Notice
      Undefined variable: message_errors in wp-content/plugins/wow-fulltext-search/AdminPage_View.php on line 4
    • > PHP Notice
      Undefined variable: message_saved in wp-content/plugins/wow-fulltext-search/AdminPage_View.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wow-fulltext-search/AdminPage_View.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: better search, solr, full-text, fulltext, search...

wow-fulltext-search/wow-fulltext-search.php Passed 13 tests

The main PHP file in "Wow FullText Search" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Fast fulltext search replacing default search.

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 plugin1,777 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP17550451,593
JavaScript1666184

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.15
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods96
▷ Static methods6062.50%
▷ Public methods8083.33%
▷ Protected methods00.00%
▷ Private methods1616.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin