77% wp-custom-fields-search

Code Review | WP Custom Fields Search

WordPress plugin WP Custom Fields Search scored 77% from 54 tests.

About plugin

  • Plugin page: wp-custom-fields-...
  • Plugin version: 1.2.34
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.1+
  • WordPress version: 5.9.2
  • First release: Mar 23, 2009
  • Latest release: Mar 25, 2022
  • Number of updates: 342
  • Update frequency: every 13.9 days
  • Top authors: don@don-benjamin.co.uk (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

4,000+ active / 174,426 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼295.92ms] Passed 4 tests

A check of server-side resources used by WP Custom Fields Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2157.88 ▲0.73
Dashboard /wp-admin3.57 ▲0.1738.33 ▼0.24
Posts /wp-admin/edit.php3.80 ▲0.1642.58 ▲3.91
Add New Post /wp-admin/post-new.php7.04 ▲0.07113.45 ▼1,177.73
Media Library /wp-admin/upload.php3.46 ▲0.1627.33 ▼6.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Custom Fields Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,834 ▲8016.66 ▲0.886.89 ▼1.262.13 ▼1.45
Dashboard /wp-admin2,931 ▲807.13 ▲0.92128.38 ▼10.59157.76 ▼6.75
Posts /wp-admin/edit.php2,733 ▲393.38 ▲0.1467.66 ▲6.20160.29 ▲22.06
Add New Post /wp-admin/post-new.php1,701 ▼5119.12 ▼2.44395.73 ▼56.42169.77 ▲15.74
Media Library /wp-admin/upload.php1,735 ▲406.32 ▲0.89127.62 ▼15.44182.70 ▼11.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 2 options in the database
    • wp_custom_fields_search-version
    • widget_wp_custom_fields_search

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 | 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
Almost there! Just fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-custom-fields-search/templates/input-checkbox.php
    • > /wp-content/plugins/wp-custom-fields-search/templates/input-text.php
    • > /wp-content/plugins/wp-custom-fields-search/templates/input-select.php
    • > /wp-content/plugins/wp-custom-fields-search/templates/input-radio-buttons.php
  • 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPCustomFieldsSearch_DataType' not found in wp-content/plugins/wp-custom-fields-search/datatypes.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-custom-fields-search/widget.php:19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-custom-fields-search/templates/input-select.php on line 3
    • > PHP Notice
      Undefined variable: html_name in wp-content/plugins/wp-custom-fields-search/templates/input-checkbox.php on line 4
    • > PHP Notice
      Undefined variable: html_name in wp-content/plugins/wp-custom-fields-search/templates/input-text.php on line 1
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/wp-custom-fields-search/templates/preset-display.php on line 1
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/wp-custom-fields-search/templates/input-radio-buttons.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-custom-fields-search/templates/unsupported-message.php:6
    • > PHP Notice
      Undefined variable: html_name in wp-content/plugins/wp-custom-fields-search/templates/input-select.php on line 1
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/wp-custom-fields-search/templates/input-text.php on line 1

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


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-custom-fields-search === )
  • Tested up to: Invalid version format
You can take inspiration from this readme.txt

wp-custom-fields-search/plugin.php 85% from 13 tests

"WP Custom Fields Search" version 1.2.34's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-custom-fields-search.php" instead of "plugin.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin11,594 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PO File17173154

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.73
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity1.99
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
▷ Static methods43.20%
▷ Public methods125100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions685.71%
▷ Anonymous functions114.29%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ng/css/icons/stop32.png0.60KB0.31KB▼ 48.86%
ng/css/icons/spanner32.png0.56KB0.32KB▼ 44.12%