Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.79MB] [CPU: ▼0.42ms] Passed 4 tests
This is a short check of server-side resources used by WP Search with Algolia
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.64 | 39.63 ▼1.97 |
Dashboard /wp-admin | 4.18 ▲0.88 | 51.83 ▲4.17 |
Posts /wp-admin/edit.php | 4.23 ▲0.88 | 51.22 ▲1.91 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 95.68 ▼5.79 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 41.70 ▲6.30 |
Server storage [IO: ▲8.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 959 new files
Database: no new tables, 16 new options
New WordPress options |
---|
algolia_autocomplete_enabled |
algolia_autocomplete_config |
can_compress_scripts |
widget_recent-posts |
algolia_index_name_prefix |
algolia_application_id |
algolia_search_api_key |
algolia_override_native_search |
db_upgraded |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
WP Search with Algolia: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲68 | 14.31 ▲0.04 | 1.58 ▼0.56 | 37.67 ▼7.75 |
Dashboard /wp-admin | 2,235 ▲55 | 5.75 ▲0.18 | 98.07 ▲11.80 | 42.86 ▲2.95 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.24 ▲0.29 | 38.85 ▼1.11 | 33.83 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.40 ▲0.09 | 614.68 ▲15.13 | 51.74 ▲9.31 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.16 ▼0.06 | 98.96 ▲1.21 | 41.80 ▼0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 16 options
- algolia_autocomplete_config
- algolia_api_is_reachable
- algolia_synced_indices_ids
- widget_recent-comments
- can_compress_scripts
- algolia_index_name_prefix
- widget_theysaidso_widget
- db_upgraded
- algolia_search_api_key
- algolia_powered_by_enabled
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 65× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\WPSWA\\Algolia\\AlgoliaSearch\\Response\\AbstractResponse' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/algolia/algoliasearch-client-php/src/Response/MultiResponse.php:11
- > PHP Fatal error
Uncaught Error: Interface 'WebDevStudios\\WPSWA\\Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/algolia/algoliasearch-client-php/src/Cache/NullCacheDriver.php:13
- > PHP Fatal error
Uncaught Error: Interface 'WebDevStudios\\WPSWA\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/algolia/algoliasearch-client-php/src/Http/Psr7/BufferStream.php:23
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\WPSWA\\Algolia\\AlgoliaSearch\\Exceptions\\AlgoliaException' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/MissingObjectId.php:11
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\WPSWA\\Algolia\\AlgoliaSearch\\Config\\AbstractConfig' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/AnalyticsConfig.php:11
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\WPSWA\\Psr\\Log\\AbstractLogger' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/psr/log/Psr/Log/Test/TestLogger.php:63
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\WPSWA\\Algolia\\AlgoliaSearch\\Config\\AbstractConfig' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/algolia/algoliasearch-client-php/src/Config/PlacesConfig.php:11
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\WPSWA\\Algolia\\AlgoliaSearch\\Iterators\\AbstractAlgoliaIterator' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/algolia/algoliasearch-client-php/src/Iterators/RuleIterator.php:13
- > PHP Fatal error
Uncaught Error: Interface 'WebDevStudios\\WPSWA\\Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/psr/http-message/src/ServerRequestInterface.php:49
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\WPSWA\\Algolia\\AlgoliaSearch\\Exceptions\\RequestException' not found in wp-content/plugins/wp-search-with-algolia/vendor_prefixed/algolia/algoliasearch-client-php/src/Exceptions/RetriableException.php:11
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-search-with-algolia/algolia.php 92% from 13 tests
"WP Search with Algolia" version 2.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-search-with-algolia.php" instead of "algolia.php")
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
Good job! No executable or dangerous file extensions detected85,036 lines of code in 900 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 504 | 5,427 | 7,531 | 65,034 |
PHP | 140 | 2,557 | 8,505 | 9,380 |
TypeScript | 232 | 570 | 5,637 | 6,677 |
Markdown | 4 | 2,069 | 0 | 2,153 |
HTML | 8 | 37 | 3 | 791 |
CSS | 4 | 95 | 25 | 572 |
PO File | 1 | 81 | 105 | 333 |
Bourne Shell | 2 | 12 | 0 | 54 |
JSON | 2 | 0 | 0 | 22 |
SVG | 3 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 104 | |
▷ Abstract classes | 6 | 5.77% |
▷ Concrete classes | 98 | 94.23% |
▷ Final classes | 51 | 52.04% |
Methods | 934 | |
▷ Static methods | 104 | 11.13% |
▷ Public methods | 813 | 87.04% |
▷ Protected methods | 47 | 5.03% |
▷ Private methods | 74 | 7.92% |
Functions | 34 | |
▷ Named functions | 8 | 23.53% |
▷ Anonymous functions | 26 | 76.47% |
Constants | 27 | |
▷ Global constants | 6 | 22.22% |
▷ Class constants | 21 | 77.78% |
▷ Public constants | 21 | 100.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
There are no PNG files in this plugin