90% dashboard-search-memberpress

Code Review | Dashboard Search for MemberPress

WordPress plugin Dashboard Search for MemberPress scored90%from 54 tests.

About plugin

  • Plugin page: dashboard-search-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jul 17, 2020
  • Latest release: Jan 26, 2022
  • Number of updates: 4
  • Update frequency: every 143.3 days
  • Top authors: treeflips (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,847 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.01MB] [CPU: ▼13.94ms] Passed 4 tests

An overview of server-side resources used by Dashboard Search for MemberPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.96 ▲4.79
Dashboard /wp-admin3.31 ▼0.0349.68 ▼12.26
Posts /wp-admin/edit.php3.36 ▲0.0045.10 ▼17.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.62 ▼20.96
Media Library /wp-admin/upload.php3.23 ▲0.0032.17 ▼5.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard Search for MemberPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲5214.31 ▼0.061.96 ▼0.2443.73 ▲0.08
Dashboard /wp-admin2,241 ▲675.57 ▲0.0084.35 ▼1.3938.90 ▼0.82
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0337.02 ▼2.5837.31 ▼0.68
Add New Post /wp-admin/post-new.php1,545 ▼923.35 ▲5.30673.57 ▲65.1653.91 ▲2.28
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.0296.79 ▼8.5843.78 ▼2.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: membership, members, memberpress, search

dashboard-search-memberpress/dashboard-search-memberpress.php Passed 13 tests

This is the main PHP file of "Dashboard Search for MemberPress" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Adds a widget to search MemberPress member information by any field (email, username, first and last name, id) from the WordPress Dashboard.

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
Everything looks great! No dangerous files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP152830
JavaScript1112329

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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 functions133.33%
▷ Anonymous functions266.67%
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
PNG images were not found in this plugin