Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▲1.92ms] Passed 4 tests
A check of server-side resources used by Search with Typesense
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.42 ▲0.69 | 48.54 ▲0.74 |
Dashboard /wp-admin | 4.20 ▲0.63 | 54.20 ▲2.19 |
Posts /wp-admin/edit.php | 4.25 ▲0.57 | 57.36 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.80 ▲0.65 | 99.26 ▲2.94 |
Media Library /wp-admin/upload.php | 4.12 ▲0.63 | 45.34 ▲5.63 |
Server storage [IO: ▲6.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
cm_typesense_plugin_activate |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Search with Typesense
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲209 | 15.05 ▲0.81 | 27.82 ▲25.93 | 37.89 ▼2.97 |
Dashboard /wp-admin | 2,211 ▲34 | 5.68 ▲0.07 | 91.50 ▲0.39 | 40.04 ▼6.37 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 2.04 ▲0.01 | 39.38 ▲3.19 | 36.79 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,563 ▲18 | 23.12 ▲0.07 | 663.02 ▲3.68 | 57.13 ▼18.26 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.23 ▲0.10 | 96.23 ▼14.39 | 43.63 ▼7.35 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/search-with-typesense/templates/instant-search/main-panel.php
- > /wp-content/plugins/search-with-typesense/codemanas-typesense.php
- > /wp-content/plugins/search-with-typesense/templates/autocomplete/header.php
- > /wp-content/plugins/search-with-typesense/templates/instant-search/partials/sort-by.php
- > /wp-content/plugins/search-with-typesense/templates/instant-search/partials/current-refinements.php
- > /wp-content/plugins/search-with-typesense/templates/instant-search/partials/index-switcher.php
- 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/search-with-typesense/includes/views/AdminArea/index.php:2
- > PHP Fatal error
Uncaught Error: Class 'Codemanas\\Typesense\\Backend\\Admin' not found in wp-content/plugins/search-with-typesense/templates/autocomplete.php:6
- > PHP Warning
require_once(CODEMANAS_TYPESENSE_ROOT_DIR_PATH/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/search-with-typesense/includes/Bootstrap.php on line 81
- > PHP Notice
Undefined index: post_types in wp-content/plugins/search-with-typesense/templates/instant-search/main-panel.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/search-with-typesense/templates/instant-search/partials/index-switcher.php on line 6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/search-with-typesense/templates/instant-search/partials/sort-by.php on line 10
- > PHP Notice
Undefined index: filter in wp-content/plugins/search-with-typesense/templates/instant-search/filter-panel.php on line 8
- > PHP Notice
Undefined index: post_types in wp-content/plugins/search-with-typesense/templates/instant-search.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function _wp_specialchars() in wp-content/plugins/search-with-typesense/templates/instant-search/search-header.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/search-with-typesense/templates/instant-search/partials/stats.php:2
- > 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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: typesense, search, instant search, autocomplete, lightning fast
search-with-typesense/codemanas-typesense.php 85% from 13 tests
The main file in "Search with Typesense" v. 1.9.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("6.2.0" instead of "6.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("search-with-typesense.php" instead of "codemanas-typesense.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
There were no executable files found in this plugin3,388 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 649 | 718 | 3,225 |
JavaScript | 7 | 24 | 29 | 154 |
JSON | 1 | 0 | 0 | 5 |
CSS | 4 | 1 | 1 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 189 | |
▷ Static methods | 33 | 17.46% |
▷ Public methods | 174 | 92.06% |
▷ Protected methods | 4 | 2.12% |
▷ Private methods | 11 | 5.82% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 5.47KB | 2.37KB | ▼ 56.70% |
assets/images/logo-ts.png | 8.36KB | 4.27KB | ▼ 48.97% |