100% wp-search-include-meta-fields

Code Review | WP Search Include Meta Fields

WordPress plugin WP Search Include Meta Fields scored 100% from 54 tests.

About plugin

  • Plugin page: wp-search-include...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.3
  • WordPress version: 5.8.1
  • First release: Feb 19, 2019
  • Latest release: Feb 19, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 330 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by WP Search Include Meta Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1338.88 ▲11.80
Dashboard /wp-admin3.07 ▲0.0150.84 ▼2.79
Posts /wp-admin/edit.php3.15 ▲0.0547.66 ▼3.59
Add New Post /wp-admin/post-new.php5.42 ▼0.01102.51 ▼561.30
Media Library /wp-admin/upload.php3.01 ▲0.0138.79 ▲0.99

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Search Include Meta Fields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲9715.87 ▲0.2614.26 ▲5.9750.26 ▼8.71
Dashboard /wp-admin2,967 ▲335.93 ▼0.02170.58 ▲9.81111.03 ▼3.89
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0072.77 ▼24.6795.80 ▲4.99
Add New Post /wp-admin/post-new.php1,591 ▲1018.52 ▲0.26433.76 ▲11.18119.45 ▼1.90
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01161.91 ▼5.82118.34 ▼9.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
3 plugin tags: custom fields, meta fields, search

wp-search-include-meta-fields/wp-search-include-meta-fields.php Passed 13 tests

"WP Search Include Meta Fields" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
WordPress plugin to extend default search to include meta fields

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161528

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected