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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 46.47 ▲3.13 |
Dashboard /wp-admin | 3.75 ▲0.41 | 54.85 ▼10.36 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 55.14 ▲2.60 |
Add New Post /wp-admin/post-new.php | 3.57 ▼2.32 | 41.51 ▼52.89 |
Media Library /wp-admin/upload.php | 3.61 ▲0.39 | 39.75 ▲5.82 |
Chat Logs /wp-admin/admin.php?page=wdgpt_logs | 3.59 | 38.02 |
Summaries /wp-admin/admin.php?page=wdgpt_summary | 3.58 | 38.71 |
SmartSearchWP /wp-admin/admin.php?page=wdgpt | 3.58 | 34.16 |
Error Logs /wp-admin/admin.php?page=wdgpt_error_logs | 3.59 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,008 ▲261 | 15.93 ▲1.59 | 12.00 ▲10.30 | 42.02 ▼1.36 |
Dashboard /wp-admin | 2,325 ▲147 | 8.01 ▲2.30 | 98.14 ▼18.61 | 50.07 ▲9.44 |
Posts /wp-admin/edit.php | 2,225 ▲125 | 4.51 ▲2.55 | 43.65 ▲2.05 | 37.54 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,576 ▲50 | 25.35 ▲2.48 | 641.97 ▼43.97 | 37.59 ▼11.87 |
Media Library /wp-admin/upload.php | 1,516 ▲122 | 6.61 ▲2.45 | 107.99 ▲10.22 | 43.19 ▲1.45 |
Chat Logs /wp-admin/admin.php?page=wdgpt_logs | 1,107 | 4.06 | 32.32 | 32.40 |
Summaries /wp-admin/admin.php?page=wdgpt_summary | 904 | 3.96 | 42.62 | 31.59 |
SmartSearchWP /wp-admin/admin.php?page=wdgpt | 1,118 | 4.09 | 27.57 | 52.08 |
Error Logs /wp-admin/admin.php?page=wdgpt_error_logs | 1,188 | 4.09 | 31.51 | 33.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 239 | 897 | 1,712 |
PO File | 5 | 375 | 530 | 979 |
CSS | 2 | 66 | 25 | 337 |
JavaScript | 2 | 0 | 2 | 2 |
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 code | 0.27 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 3 | 4.41% |
▷ Public methods | 60 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.76% |
Functions | 42 | |
▷ Named functions | 28 | 66.67% |
▷ Anonymous functions | 14 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/SmartSearchWP-logo copy.png | 43.18KB | 22.29KB | ▼ 48.38% |
img/SmartSearchWP-logo-.png | 3.21KB | 1.51KB | ▼ 53.04% |
assets/screenshots/smartsearchwp_chatbot_interface.png | 74.10KB | 20.14KB | ▼ 72.82% |
img/SmartSearchWP-logo.png | 3.21KB | 1.51KB | ▼ 53.04% |
assets/screenshots/smartsearchwp_back_settings.png | 135.17KB | 34.75KB | ▼ 74.29% |