89% bp-search

Code Review | BP Search

WordPress plugin BP Search scored89%from 54 tests.

About plugin

  • Plugin page: bp-search
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 2, 2017
  • Latest release: Jan 13, 2020
  • Number of updates: 8
  • Update frequency: every 138.3 days
  • Top authors: zhuyi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,879 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by BP Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.52 ▲2.74
Dashboard /wp-admin3.32 ▲0.0142.96 ▼4.24
Posts /wp-admin/edit.php3.37 ▲0.0144.15 ▲0.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.75 ▼17.39
Media Library /wp-admin/upload.php3.24 ▲0.0135.10 ▲5.47

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for BP Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲6713.44 ▼1.186.87 ▲4.7742.19 ▼0.11
Dashboard /wp-admin2,203 ▲115.81 ▲0.8998.93 ▼11.2039.98 ▲3.80
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0841.54 ▲0.5434.93 ▼0.49
Add New Post /wp-admin/post-new.php1,533 ▼918.19 ▼0.13660.29 ▲26.3664.63 ▲11.30
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.01105.10 ▼3.0646.73 ▲3.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 no errors were found, this is by no means 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 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
9 plugin tags: member search, fast search, angularjs, buddypress search, search...

bp-search/buddypress-search.php 77% from 13 tests

The entry point to "BP Search" version 1.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 280 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bp-search.php" instead of "buddypress-search.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected123 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131563
JavaScript3032460

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions4
▷ Named functions4100.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 are no PNG files in this plugin