94% admin-meta-search

Code Review | Admin Meta Search

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

About plugin

  • Plugin page: admin-meta-search
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 5.9.2
  • First release: May 7, 2014
  • Latest release: May 8, 2014
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: eric_wijaya_87 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 1,401 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼294.58ms] Passed 4 tests

Analyzing server-side resources used by Admin Meta Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.02103.28 ▲50.76
Dashboard /wp-admin3.42 ▲0.0136.37 ▼6.05
Posts /wp-admin/edit.php3.23 ▼0.4121.05 ▼46.88
Add New Post /wp-admin/post-new.php6.89 ▼0.08127.54 ▼1,122.78
Media Library /wp-admin/upload.php3.30 ▲0.0129.54 ▼2.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin Meta Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.18 ▲0.565.82 ▼0.582.42 ▼0.49
Dashboard /wp-admin2,888 ▲386.05 ▼0.14126.33 ▲1.15160.95 ▼0.65
Posts /wp-admin/edit.php2,691 ▲343.36 ▼0.0063.41 ▼4.96146.53 ▼12.02
Add New Post /wp-admin/post-new.php1,773 ▲7521.79 ▲0.07473.45 ▲24.93210.72 ▲52.90
Media Library /wp-admin/upload.php1,692 ▼35.59 ▲0.07149.57 ▼2.60221.71 ▲23.14

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

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

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)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-meta-search/admin-meta-search.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: admin, search post

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

The entry point to "Admin Meta Search" version 1.0 is a PHP file that has certain tags in its header comment area
65 characters long description:
Extend Search Post, Page, Custom Post Type with custom meta value

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2114121

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.78
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%
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