79% smartsearchwp

Code Review | SmartSearchWP

WordPress plugin SmartSearchWP scored79%from 54 tests.

About plugin

  • Plugin page: smartsearchwp
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2023
  • Latest release: Nov 29, 2023
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: webdigit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /65 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.27MB] [CPU: ▼14.38ms] Passed 4 tests

A check of server-side resources used by SmartSearchWP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4746.47 ▲3.13
Dashboard /wp-admin3.75 ▲0.4154.85 ▼10.36
Posts /wp-admin/edit.php3.80 ▲0.4555.14 ▲2.60
Add New Post /wp-admin/post-new.php3.57 ▼2.3241.51 ▼52.89
Media Library /wp-admin/upload.php3.61 ▲0.3939.75 ▲5.82
Chat Logs /wp-admin/admin.php?page=wdgpt_logs3.5938.02
Summaries /wp-admin/admin.php?page=wdgpt_summary3.5838.71
SmartSearchWP /wp-admin/admin.php?page=wdgpt3.5834.16
Error Logs /wp-admin/admin.php?page=wdgpt_error_logs3.5940.27

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: 3 new tables, 6 new options
New tables
wp_wd_error_logs
wp_wdgpt_logs_messages
wp_wdgpt_logs
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by SmartSearchWP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,008 ▲26115.93 ▲1.5912.00 ▲10.3042.02 ▼1.36
Dashboard /wp-admin2,325 ▲1478.01 ▲2.3098.14 ▼18.6150.07 ▲9.44
Posts /wp-admin/edit.php2,225 ▲1254.51 ▲2.5543.65 ▲2.0537.54 ▲0.86
Add New Post /wp-admin/post-new.php1,576 ▲5025.35 ▲2.48641.97 ▼43.9737.59 ▼11.87
Media Library /wp-admin/upload.php1,516 ▲1226.61 ▲2.45107.99 ▲10.2243.19 ▲1.45
Chat Logs /wp-admin/admin.php?page=wdgpt_logs1,1074.0632.3232.40
Summaries /wp-admin/admin.php?page=wdgpt_summary9043.9642.6231.59
SmartSearchWP /wp-admin/admin.php?page=wdgpt1,1184.0927.5752.08
Error Logs /wp-admin/admin.php?page=wdgpt_error_logs1,1884.0931.5133.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_wdgpt_logs
    • wp_wdgpt_logs_messages
    • wp_wd_error_logs
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
7 plugin tags: natural-language, smartsearch, chatbot, search, searchwp...

smartsearchwp/wdgpt.php 85% from 13 tests

Analyzing the main PHP file in "SmartSearchWP" version 1.0.1
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("smartsearchwp.php" instead of "wdgpt.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,030 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP152398971,712
PO File5375530979
CSS26625337
JavaScript2022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.75
▷ Minimum class complexity2.00
▷ Maximum class complexity45.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods68
▷ Static methods34.41%
▷ Public methods6088.24%
▷ Protected methods00.00%
▷ Private methods811.76%
Functions42
▷ Named functions2866.67%
▷ Anonymous functions1433.33%
Constants3
▷ Global constants3100.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
5 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/SmartSearchWP-logo copy.png43.18KB22.29KB▼ 48.38%
img/SmartSearchWP-logo-.png3.21KB1.51KB▼ 53.04%
assets/screenshots/smartsearchwp_chatbot_interface.png74.10KB20.14KB▼ 72.82%
img/SmartSearchWP-logo.png3.21KB1.51KB▼ 53.04%
assets/screenshots/smartsearchwp_back_settings.png135.17KB34.75KB▼ 74.29%