84% admin-meta-search

Code Review | Admin Meta Search

WordPress plugin Admin Meta Search scored84%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: 6.3.1
  • 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

60+ active /1,599 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.05MB] [CPU: ▼7.90ms] Passed 4 tests

Server-side resources used by Admin Meta Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.85 ▼2.95
Dashboard /wp-admin3.31 ▲0.0144.99 ▼3.49
Posts /wp-admin/edit.php3.15 ▼0.2029.52 ▼20.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.39 ▼4.85
Media Library /wp-admin/upload.php3.23 ▲0.0038.16 ▲5.31

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Admin Meta Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.81 ▲0.441.97 ▲0.0943.52 ▼1.37
Dashboard /wp-admin2,203 ▲155.83 ▼0.0599.26 ▼2.2839.75 ▼2.46
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0439.17 ▼1.9436.10 ▼0.78
Add New Post /wp-admin/post-new.php1,547 ▲2818.37 ▼4.93602.64 ▼54.0674.81 ▲20.43
Media Library /wp-admin/upload.php1,388 ▲94.23 ▲0.0296.49 ▼4.5942.17 ▼0.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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 errors 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: search post, admin

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

Analyzing the main PHP file in "Admin Meta Search" version 1.0
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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2114121

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.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

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