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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.69MB] [CPU: ▲1.62ms] Passed 4 tests
Server-side resources used by Yext AI Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.66 | 47.34 ▲8.87 |
Dashboard /wp-admin | 4.01 ▲0.70 | 49.71 ▲3.00 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 51.92 ▲4.53 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 87.26 ▼9.92 |
Media Library /wp-admin/upload.php | 3.94 ▲0.70 | 44.73 ▲9.24 |
Server storage [IO: ▲2.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 252 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Yext AI Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲132 | 14.65 ▲0.24 | 56.03 ▲54.06 | 39.04 ▼5.18 |
Dashboard /wp-admin | 2,278 ▲98 | 5.72 ▲0.07 | 89.31 ▼1.32 | 44.58 ▲4.51 |
Posts /wp-admin/edit.php | 2,185 ▲88 | 2.35 ▲0.39 | 41.51 ▲6.75 | 43.93 ▲11.22 |
Add New Post /wp-admin/post-new.php | 6,429 ▲4,903 | 28.68 ▲5.66 | 999.65 ▲292.01 | 41.62 ▼10.94 |
Media Library /wp-admin/upload.php | 1,485 ▲85 | 4.48 ▲0.26 | 114.71 ▲14.46 | 56.06 ▲10.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Yext\\Admin\\Fields\\Type\\AbstractField' not found in wp-content/plugins/yext-ai-search/includes/classes/Admin/Fields/Type/HiddenField.php:15
- > PHP Fatal error
Trait 'Yext\\Traits\\Singleton' not found in wp-content/plugins/yext-ai-search/includes/classes/Components/SearchBar.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Yext\\Admin\\Fields\\Type\\SelectField' not found in wp-content/plugins/yext-ai-search/includes/classes/Admin/Fields/Type/SelectPagesField.php:15
- > PHP Fatal error
Trait 'Yext\\Traits\\Singleton' not found in wp-content/plugins/yext-ai-search/includes/classes/Install.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yext-ai-search/includes/partials/settings.php:26
- > PHP Fatal error
Uncaught Error: Class 'Yext\\Templates\\AbstractTemplate' not found in wp-content/plugins/yext-ai-search/includes/classes/Templates/SearchPageTemplate.php:17
- > PHP Fatal error
Uncaught Error: Class 'Yext\\Admin\\Fields\\Type\\AbstractField' not found in wp-content/plugins/yext-ai-search/includes/classes/Admin/Fields/Type/ColorField.php:15
- > PHP Fatal error
Trait 'Yext\\Traits\\Singleton' not found in wp-content/plugins/yext-ai-search/includes/classes/Admin/Settings.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'Yext\\Admin\\Fields\\Type\\AbstractField' not found in wp-content/plugins/yext-ai-search/includes/classes/Admin/Fields/Type/SelectField.php:15
- > PHP Fatal error
Uncaught Error: Class 'Yext\\Admin\\Fields\\Type\\AbstractField' not found in wp-content/plugins/yext-ai-search/includes/classes/Admin/Fields/Type/NumberField.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: search-engine, search, site-search, better-search, autocomplete...
yext-ai-search/yext-ai-search.php 85% from 13 tests
The main PHP file in "Yext AI Search" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin9,423 lines of code in 219 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 659 | 1,694 | 4,004 |
JavaScript | 44 | 377 | 718 | 3,314 |
CSS | 53 | 280 | 43 | 1,329 |
Markdown | 1 | 58 | 0 | 281 |
SVG | 58 | 0 | 0 | 259 |
JSON | 5 | 0 | 0 | 173 |
TypeScript | 3 | 5 | 8 | 63 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 22 | |
▷ Abstract classes | 2 | 9.09% |
▷ Concrete classes | 20 | 90.91% |
▷ Final classes | 7 | 35.00% |
Methods | 137 | |
▷ Static methods | 32 | 23.36% |
▷ Public methods | 114 | 83.21% |
▷ Protected methods | 20 | 14.60% |
▷ Private methods | 3 | 2.19% |
Functions | 46 | |
▷ Named functions | 35 | 76.09% |
▷ Anonymous functions | 11 | 23.91% |
Constants | 21 | |
▷ Global constants | 5 | 23.81% |
▷ Class constants | 16 | 76.19% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/logos/marstons.png | 2.58KB | 2.68KB | 0.00% |
assets/images/logos/samsung.png | 5.38KB | 3.43KB | ▼ 36.20% |
assets/images/logos/fazolis.png | 6.69KB | 6.68KB | 0.07% |
dist/images/logos/fazolis.png | 6.66KB | 6.66KB | 0.07% |
assets/images/logos/cox.png | 8.74KB | 8.48KB | ▼ 2.97% |