79% robust-user-search

Code Review | Robust User Search

WordPress plugin Robust User Search scored79%from 54 tests.

About plugin

  • Plugin page: robust-user-search
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 11, 2020
  • Latest release: Oct 26, 2023
  • Number of updates: 19
  • Update frequency: every 60.0 days
  • Top authors: smitpatelx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /788 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.46ms] Passed 4 tests

Server-side resources used by Robust User Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.42 ▼3.20
Dashboard /wp-admin3.46 ▲0.1652.14 ▲5.50
Posts /wp-admin/edit.php3.58 ▲0.2249.80 ▲3.49
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.64 ▼2.54
Media Library /wp-admin/upload.php3.39 ▲0.1632.89 ▼3.58
Robust search /wp-admin/admin.php?page=rus3.3530.91
Settings /wp-admin/admin.php?page=rus-settings3.3529.86

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 280 new files
Database: no new tables, 7 new options
New WordPress options
rus_allowed_roles
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Robust User Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲6114.33 ▼0.061.82 ▼0.0938.82 ▼1.25
Dashboard /wp-admin2,225 ▲485.56 ▼0.0987.36 ▲1.5975.00 ▲30.78
Posts /wp-admin/edit.php2,136 ▲361.98 ▲0.0038.52 ▲2.4934.52 ▼1.16
Add New Post /wp-admin/post-new.php1,556 ▲3023.13 ▼0.07594.24 ▼40.64181.15 ▲132.30
Media Library /wp-admin/upload.php1,433 ▲304.22 ▼0.0996.21 ▼2.6869.82 ▲25.67
Robust search /wp-admin/admin.php?page=rus1,2924.36112.9754.97
Settings /wp-admin/admin.php?page=rus-settings8812.0424.0756.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • rus_allowed_roles
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/robust-user-search/robust-user-search.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=rus
    • > Console-api (severe) in unknown
    /wp-content/plugins/robust-user-search/dist/assets/index.js 0:14790 RangeError: Invalid array lengthat Vo.fn (/wp-content/plugins/robust-user-search/dist/assets/index.js:15:15830)at Vo.run (/wp-content/plugins/robust-user-search/dist/assets/index.js:1:5553)at get value [as value] (/wp-content/plugins/robust-user-search/dist/assets/index.js:1:14102)at Proxy. (/wp-content/plugins/robust-user-search/dist/assets/index.js:15:16662)at Fi (/wp-content/plugins/robust-user-search/dist/assets/index.js:1:17505)at Vo.B [as fn] (/wp-content/plugins/robust-user-search/dist/assets/index.js:1:41480)at Vo.run (/wp-content/plugins/robust-user-search/dist/assets/index.js:1:5553)at h.update (/wp-content/plugins/robust-user-search/dist/assets/index.js:1:41751)at le (/wp-content/plugins/robust-user-search/dist/assets/index.js:1:41777)at ie (/wp-content/plugins/robust-user-search/dist/assets/index.js:1:40617)
    • > GET request to /wp-admin/admin.php?page=rus
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'init')" "TypeError: Cannot read properties of undefined (reading 'init')\n at HTMLDocument.\u003Canonymous> (/wp-admin/js/svg-painter.js?ver=6.3.1:19:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=rus
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'init')
    • > GET request to /wp-admin/admin.php?page=rus-settings
    • > Network (severe)
    assets/Inter-roman-latin-1b58736b.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)

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
9 plugin tags: user management, ajax, update, vue, edit user...

robust-user-search/robust-user-search.php Passed 13 tests

"Robust User Search" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Search users easily with this supercharged plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,074 lines of code in 270 files:
LanguageFilesBlank linesComment linesLines of code
PHP14136412724
SVG25300287
Markdown115049
JavaScript10613
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.43
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1122.92%
▷ Public methods3368.75%
▷ Protected methods918.75%
▷ Private methods612.50%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants9
▷ Global constants9100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
dist/robust_teal.png0.70KB0.45KB▼ 36.62%