83% extended-user-search-in-wp-admin

Code Review | Extended User Search In WP-Admin

WordPress plugin Extended User Search In WP-Admin scored83%from 54 tests.

About plugin

  • Plugin page: extended-user-sea...
  • Plugin version: 3...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: Dec 13, 2022
  • Number of updates: 18
  • Update frequency: every 77.4 days
  • Top authors: amit5204 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /6,207 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.47ms] Passed 4 tests

An overview of server-side resources used by Extended User Search In WP-Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.17 ▼5.32
Dashboard /wp-admin3.32 ▲0.0250.11 ▼3.79
Posts /wp-admin/edit.php3.37 ▲0.0248.80 ▼3.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.50 ▼17.75
Media Library /wp-admin/upload.php3.24 ▲0.0140.88 ▼3.03

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Extended User Search In WP-Admin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.001.91 ▼0.0643.02 ▼3.90
Dashboard /wp-admin2,206 ▲185.85 ▲0.98101.97 ▼13.1739.94 ▼5.86
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0040.25 ▲4.0234.28 ▲2.92
Add New Post /wp-admin/post-new.php1,534 ▲2023.08 ▲5.70669.63 ▼55.7053.95 ▼0.65
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.0298.64 ▼3.1841.43 ▼9.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/extended-user-search-in-wp-admin/extend-user-search-in-wp-admin.php:16

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Plugin Name: You should set the name of your plugin on the first line ( === extended-user-search-in-wp-admin === )
You can take inspiration from this readme.txt

extended-user-search-in-wp-admin/extend-user-search-in-wp-admin.php 85% from 13 tests

The main PHP script in "Extended User Search In WP-Admin" version 3... is automatically included on every request by WordPress
The following require your attention:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "3...")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("extended-user-search-in-wp-admin.php" instead of "extend-user-search-in-wp-admin.php")

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 plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191561

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.57
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin