Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.53MB] [CPU: ▲6.23ms] Passed 4 tests
Analyzing server-side resources used by Relevanssi - A Better Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.52 | 49.45 ▲10.13 |
Dashboard /wp-admin | 4.85 ▲1.54 | 54.00 ▲4.32 |
Posts /wp-admin/edit.php | 4.96 ▲1.60 | 55.52 ▲3.67 |
Add New Post /wp-admin/post-new.php | 7.43 ▲1.54 | 108.19 ▲7.35 |
Media Library /wp-admin/upload.php | 4.77 ▲1.53 | 46.26 ▲9.59 |
Relevanssi /wp-admin/options-general.php?page=relevanssi/relevanssi.php | 4.81 | 42.89 |
User searches /wp-admin/index.php?page=relevanssi/relevanssi.php | 4.74 | 43.23 |
Admin search /wp-admin/index.php?page=relevanssi_admin_search | 4.75 | 42.93 |
Server storage [IO: ▲1.01MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 90 new files
Database: 3 new tables, 61 new options
New tables |
---|
wp_relevanssi_stopwords |
wp_relevanssi_log |
wp_relevanssi |
New WordPress options |
---|
relevanssi_throttle_limit |
relevanssi_wpml_only_current |
relevanssi_highlight_docs |
relevanssi_css |
relevanssi_index_author |
relevanssi_excerpt_custom_fields |
relevanssi_implicit_operator |
relevanssi_index_taxonomies_list |
relevanssi_index_post_types |
relevanssi_cat |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Relevanssi - A Better Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.80 ▲0.39 | 1.77 ▲0.12 | 39.07 ▲1.99 |
Dashboard /wp-admin | 2,221 ▲30 | 5.79 ▲0.89 | 104.33 ▲6.27 | 37.70 ▼7.71 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.00 ▼0.03 | 33.44 ▼2.66 | 36.17 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,545 ▲24 | 23.14 ▼0.14 | 598.70 ▼83.22 | 52.50 ▼11.79 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.18 ▲0.00 | 96.07 ▼1.93 | 43.04 ▼3.48 |
Relevanssi /wp-admin/options-general.php?page=relevanssi/relevanssi.php | 1,383 | 2.06 | 32.07 | 31.18 |
User searches /wp-admin/index.php?page=relevanssi/relevanssi.php | 816 | 2.57 | 30.77 | 23.77 |
Admin search /wp-admin/index.php?page=relevanssi_admin_search | 939 | 2.52 | 34.37 | 28.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 39× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/members.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/bricks.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/wp-file-download.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/elementor.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/wp-search-suggest.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/aioseo.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/tablepress.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/relevanssi/lib/init.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/paidmembershippro.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/relevanssi/lib/compatibility/woocommerce.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
5 plugin tags: product search, search, woocommerce search, relevance, better search
relevanssi/relevanssi.php Passed 13 tests
The entry point to "Relevanssi - A Better Search" version 4.21.1 is a PHP file that has certain tags in its header comment area
70 characters long description:
This plugin replaces WordPress search with a relevance-sorting search.
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
Everything looks great! No dangerous files found in this plugin15,494 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 1,771 | 6,188 | 12,497 |
PO File | 2 | 726 | 899 | 2,377 |
JavaScript | 2 | 57 | 12 | 524 |
CSS | 1 | 22 | 0 | 96 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 5.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 410 | |
▷ Named functions | 378 | 92.20% |
▷ Anonymous functions | 32 | 7.80% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
delete.png | 0.70KB | 0.72KB | 0.00% |