94% wp-admin-search-meta

Code Review | WP-Admin Search Post Meta

WordPress plugin WP-Admin Search Post Meta scored 94% from 54 tests.

About plugin

  • Plugin page: wp-admin-search-meta
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 5.8.1
  • First release: Apr 15, 2013
  • Latest release: Jun 22, 2021
  • Number of updates: 4
  • Update frequency: every 747.5 days
  • Top authors: meloniq (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active / 3,721 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼176.21ms] Passed 4 tests

Server-side resources used by WP-Admin Search Post Meta
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0239.84 ▲3.19
Dashboard /wp-admin3.08 ▲0.0242.78 ▼7.15
Posts /wp-admin/edit.php3.16 ▲0.0646.60 ▼4.81
Add New Post /wp-admin/post-new.php5.43 ▼0.0099.33 ▼688.56
Media Library /wp-admin/upload.php3.02 ▲0.0236.80 ▼4.30

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP-Admin Search Post Meta
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.83 ▲0.2113.40 ▲3.6955.38 ▲1.85
Dashboard /wp-admin2,960 ▲295.90 ▼0.15179.58 ▲16.45179.56 ▲65.95
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.00105.69 ▲35.86101.55 ▲0.38
Add New Post /wp-admin/post-new.php1,683 ▲10218.72 ▲2.26420.52 ▼36.18114.32 ▼19.80
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.03158.83 ▲0.42125.36 ▲5.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-admin-search-meta/wp-admin-search-meta.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: wp-admin, custom fields, admin, search, postmeta...

wp-admin-search-meta/wp-admin-search-meta.php Passed 13 tests

The entry point to "WP-Admin Search Post Meta" version 0.3 is a PHP file that has certain tags in its header comment area
50 characters long description:
Enables searching post meta fields on admin pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2336669

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods685.71%
▷ Protected methods114.29%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin