90% better-user-search

Code Review | Better User Search

WordPress plugin Better User Search scored90%from 54 tests.

About plugin

  • Plugin page: better-user-search
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2015
  • Latest release: Feb 3, 2016
  • Number of updates: 31
  • Update frequency: every 11.3 days
  • Top authors: dale3h (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /10,392 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Better User Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.41 ▼5.41
Dashboard /wp-admin3.36 ▲0.0652.10 ▲3.54
Posts /wp-admin/edit.php3.41 ▲0.0547.54 ▼6.11
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.82 ▼16.04
Media Library /wp-admin/upload.php3.29 ▲0.0537.54 ▲0.39
User Search /wp-admin/options-general.php?page=bu-search3.2632.29

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Better User Search: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.62 ▼0.961.81 ▼0.3739.55 ▼9.19
Dashboard /wp-admin2,213 ▲315.86 ▲0.0499.91 ▼1.9638.07 ▼5.09
Posts /wp-admin/edit.php2,090 ▼22.00 ▼0.0534.67 ▼9.3534.78 ▼1.77
Add New Post /wp-admin/post-new.php1,536 ▼623.19 ▲4.66625.46 ▲11.0046.36 ▼8.41
Media Library /wp-admin/upload.php1,395 ▲44.26 ▲0.0796.49 ▼2.1042.39 ▼2.37
User Search /wp-admin/options-general.php?page=bu-search9182.4832.6827.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
8 plugin tags: users, meta, backend, admin, user...

better-user-search/better-user-search.php 92% from 13 tests

The main PHP script in "Better User Search" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin258 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP277114239
JavaScript22318
CSS1111

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/chosen-sprite.png0.53KB0.88KB0.00%
images/chosen-sprite@2x.png0.72KB0.83KB0.00%