90% bp-search-block

Code Review | BP Search Block

WordPress plugin BP Search Block scored90%from 54 tests.

About plugin

  • Plugin page: bp-search-block
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 4, 2022
  • Latest release: Aug 29, 2023
  • Number of updates: 7
  • Update frequency: every 86.4 days
  • Top authors: imath (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,625 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
Install script ran successfully

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

Server-side resources used by BP Search Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.10 ▲2.86
Dashboard /wp-admin3.31 ▲0.0159.81 ▲11.27
Posts /wp-admin/edit.php3.36 ▲0.0150.99 ▼2.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.98 ▼1.85
Media Library /wp-admin/upload.php3.23 ▲0.0136.53 ▲0.52

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by BP Search Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,779 ▲1814.72 ▲0.092.10 ▲0.3643.03 ▲4.01
Dashboard /wp-admin2,195 ▲255.50 ▼0.1685.85 ▼13.6440.32 ▼0.11
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0140.43 ▲4.8338.53 ▲2.99
Add New Post /wp-admin/post-new.php1,526 ▼023.35 ▲0.14629.12 ▼50.5956.21 ▼1.32
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.0599.30 ▼0.7642.12 ▼2.78

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: activity, community, buddypress, block, groups...

bp-search-block/bp-search-block.php 92% from 13 tests

The principal PHP file in "BP Search Block" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 164 characters long)

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
Everything looks great! No dangerous files found in this plugin162 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON20056
PHP353342
PO File1101040
JavaScript20218
SVG1004
CSS2022

PHP code Passed 2 tests

This is a very shot 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.12
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin