Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.95ms] Passed 4 tests
Analyzing server-side resources used by AI Search Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.86 ▲2.37 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.10 ▼14.50 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.44 ▼10.12 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.08 | 97.56 ▲2.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 36.96 ▲3.33 |
Documentation /wp-admin/admin.php?page=documentation | 3.26 | 33.29 |
AI Search Bar /wp-admin/admin.php?page=ai_search_bar | 3.26 | 37.59 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for AI Search Bar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 15.87 ▲1.28 | 30.31 ▲28.62 | 36.34 ▼8.19 |
Dashboard /wp-admin | 2,228 ▲54 | 5.68 ▲0.14 | 88.54 ▼8.15 | 38.30 ▼3.49 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.05 ▲0.00 | 36.60 ▼3.85 | 34.86 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,552 ▲4 | 23.29 ▼0.01 | 629.25 ▼14.44 | 68.65 ▲17.42 |
Media Library /wp-admin/upload.php | 1,430 ▲27 | 4.29 ▲0.04 | 100.59 ▲0.69 | 43.73 ▼1.84 |
Documentation /wp-admin/admin.php?page=documentation | 956 | 2.03 | 27.84 | 42.15 |
AI Search Bar /wp-admin/admin.php?page=ai_search_bar | 893 | 2.03 | 23.89 | 38.16 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-ai-search-bar/includes/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-ai-search-bar/includes/utils.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in open-ai-search-bar/assets to your readme.txt
open-ai-search-bar/ai_search_bar.php 92% from 13 tests
The primary PHP file in "AI Search Bar" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("open-ai-search-bar.php" instead of "ai_search_bar.php")
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
No dangerous file extensions were detected14,502 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 978 | 1,026 | 13,845 |
CSS | 3 | 49 | 39 | 356 |
PHP | 6 | 53 | 61 | 301 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/uploads/logo-black-text.png | 47.92KB | 19.92KB | ▼ 58.44% |
assets/uploads/check-mark.png | 2.53KB | 1.70KB | ▼ 32.52% |