Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼1.72ms] Passed 4 tests
An overview of server-side resources used by ACF: Better Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 45.16 ▲3.09 |
Dashboard /wp-admin | 3.61 ▲0.31 | 54.38 ▲0.01 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 51.95 ▲2.27 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 91.88 ▼12.26 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 43.77 ▲5.54 |
ACF: Better Search /wp-admin/options-general.php?page=acfbs_admin_page | 3.46 | 42.44 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
acfbs_notice_hidden |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
acfbs_notice_converter |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ACF: Better Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲64 | 13.30 ▼1.35 | 4.95 ▲2.89 | 28.75 ▼18.25 |
Dashboard /wp-admin | 2,241 ▲50 | 4.93 ▲0.03 | 103.03 ▼0.50 | 45.76 ▲2.41 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.07 ▲0.04 | 38.51 ▲0.19 | 39.53 ▲8.52 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.28 ▲0.25 | 683.20 ▼8.35 | 58.65 ▲3.59 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.38 ▲0.26 | 109.46 ▼6.45 | 48.65 ▼1.50 |
ACF: Better Search /wp-admin/options-general.php?page=acfbs_admin_page | 1,106 | 1.76 | 25.84 | 40.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/acf-better-search/templates/components/settings/fields.php
- > /wp-content/plugins/acf-better-search/templates/components/settings/features.php
- 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Settings/Page.php:12
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Search/Request.php:10
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Search/Query.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/acf-better-search/templates/components/notices/thanks.php:15
- > PHP Fatal error
Uncaught Error: Class 'AcfBetterSearch\otice\oticeAbstract' not found in wp-content/plugins/acf-better-search/src/Notice/AcfRequiredNotice.php:8
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Admin/Plugin.php:11
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Notice/NoticeIntegration.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/acf-better-search/templates/components/widgets/settings.php:18
- > PHP Fatal error
Uncaught Error: Class 'AcfBetterSearch\otice\oticeAbstract' not found in wp-content/plugins/acf-better-search/src/Notice/ThanksNotice.php:8
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Admin/Install.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: advanced custom fields, extended search, acf search, better search, search
acf-better-search/acf-better-search.php Passed 13 tests
The main PHP script in "ACF: Better Search" version 4.2.0 is automatically included on every request by WordPress
127 characters long description:
Adds to default WordPress search engine the ability to search by content from selected fields of Advanced Custom Fields plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,760 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 397 | 893 | 1,753 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 25 | 17.48% |
▷ Public methods | 125 | 87.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 12.59% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin