84% acf-advanced-search

Code Review | ACF Advanced Search

WordPress plugin ACF Advanced Search scored 84% from 54 tests.

About plugin

  • Plugin page: acf-advanced-search
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.3
  • WordPress version: 5.9.2
  • First release: Mar 9, 2017
  • Latest release: Mar 24, 2017
  • Number of updates: 13
  • Update frequency: every 2.2 days
  • Top authors: Victor Demianenko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,357 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼296.81ms] Passed 4 tests

This is a short check of server-side resources used by ACF Advanced Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1656.83 ▲9.04
Dashboard /wp-admin3.50 ▲0.1035.46 ▲1.11
Posts /wp-admin/edit.php3.73 ▲0.0938.02 ▼9.81
Add New Post /wp-admin/post-new.php6.96 ▼0.0196.50 ▼1,179.15
Media Library /wp-admin/upload.php3.38 ▲0.0825.78 ▲0.63

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_acf_search

Browser metrics Passed 4 tests

A check of browser resources used by ACF Advanced Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.89 ▲0.085.59 ▼0.752.32 ▼0.22
Dashboard /wp-admin2,895 ▲376.14 ▼0.02119.18 ▼19.14158.74 ▲0.09
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.0072.90 ▲9.39141.49 ▼3.67
Add New Post /wp-admin/post-new.php1,757 ▲9621.45 ▲5.65486.43 ▲68.91154.96 ▼5.63
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.04153.17 ▲8.64189.38 ▲4.10

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_acf_search

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/acf-advanced-search/includes/SearchWidget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: advanced custom fields, search filters, advanced search, advanced search widget

acf-advanced-search/acf-advanced-search.php 92% from 13 tests

Analyzing the main PHP file in "ACF Advanced Search" version 1.2.1
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected399 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP614882399

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods517.86%
▷ Public methods2485.71%
▷ Protected methods00.00%
▷ Private methods414.29%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin