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: 6.3.1
  • 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,732 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.92ms] Passed 4 tests

Analyzing server-side resources used by ACF Advanced Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.23 ▼4.85
Dashboard /wp-admin3.32 ▲0.0247.50 ▼15.92
Posts /wp-admin/edit.php3.38 ▲0.0250.60 ▲3.19
Add New Post /wp-admin/post-new.php5.91 ▲0.02111.43 ▲19.88
Media Library /wp-admin/upload.php3.24 ▲0.0235.01 ▼2.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_acf_search

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Advanced Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.131.67 ▼0.3640.35 ▼8.01
Dashboard /wp-admin2,209 ▲215.85 ▲0.0196.18 ▼18.9340.71 ▼6.37
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0440.24 ▲0.5236.71 ▼0.33
Add New Post /wp-admin/post-new.php1,519 ▼123.30 ▲0.10634.14 ▲44.4050.68 ▼1.24
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0096.78 ▼2.2843.02 ▼1.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_acf_search

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: search filters, advanced custom fields, advanced search widget, advanced search

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

"ACF Advanced Search" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
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
There are no cyclomatic complexity problems detected for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin