Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼298.72ms] Passed 4 tests
This is a short check of server-side resources used by ACF: Better Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.28 | 54.36 ▲1.68 |
Dashboard /wp-admin | 3.63 ▲0.22 | 36.30 ▲3.73 |
Posts /wp-admin/edit.php | 3.86 ▲0.22 | 40.41 ▲1.90 |
Add New Post /wp-admin/post-new.php | 7.19 ▲0.19 | 97.62 ▼1,201.15 |
Media Library /wp-admin/upload.php | 3.57 ▲0.28 | 25.53 ▲2.68 |
ACF: Better Search /wp-admin/options-general.php?page=acfbs_admin_page | 3.57 | 25.96 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 1 new option
New WordPress options |
---|
acfbs_notice_hidden |
Browser metrics Passed 4 tests
A check of browser resources used by ACF: Better Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲48 | 16.08 ▲0.43 | 5.66 ▼0.32 | 2.05 ▼0.46 |
Dashboard /wp-admin | 2,931 ▲70 | 6.31 ▲0.14 | 127.49 ▼8.07 | 190.49 ▲30.78 |
Posts /wp-admin/edit.php | 2,727 ▲33 | 3.27 ▲0.03 | 65.60 ▲3.45 | 157.72 ▲15.64 |
Add New Post /wp-admin/post-new.php | 1,688 ▲27 | 16.14 ▼0.76 | 405.04 ▲6.01 | 155.59 ▼4.44 |
Media Library /wp-admin/upload.php | 1,731 ▲33 | 5.61 ▲0.12 | 137.74 ▼3.57 | 197.25 ▲6.44 |
ACF: Better Search /wp-admin/options-general.php?page=acfbs_admin_page | 1,518 | 2.54 | 56.20 | 123.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/acf-better-search/templates/components/settings/features.php
- > /wp-content/plugins/acf-better-search/templates/components/settings/fields.php
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: features in wp-content/plugins/acf-better-search/templates/components/settings/features.php on line 13
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Admin/Assets.php:11
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Search/Where.php:11
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Search/Init.php:10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/acf-better-search/templates/components/settings/fields.php on line 14
- > 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: Call to undefined function AcfBetterSearch\\plugin_basename() in wp-content/plugins/acf-better-search/src/PluginInfo.php:42
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Admin/Install.php:11
- > PHP Fatal error
Uncaught Error: Interface 'AcfBetterSearch\\HookableInterface' not found in wp-content/plugins/acf-better-search/src/Admin/Notice.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/acf-better-search/templates/components/notices/thanks.php:12
- > PHP Notice
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
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: extended search, better search, search, advanced custom fields, acf search
acf-better-search/acf-better-search.php Passed 13 tests
The main PHP file in "ACF: Better Search" ver. 4.0.1 adds more information about the plugin and also serves as the entry point for this plugin
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,598 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 353 | 734 | 1,591 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 19 | 17.12% |
▷ Public methods | 94 | 84.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 15.32% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin