84% bukazu-search-widget

Code Review | BUKAZU Search widget

WordPress plugin BUKAZU Search widget scored84%from 54 tests.

About plugin

  • Plugin page: bukazu-search-widget
  • Plugin version: 3.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 16, 2018
  • Latest release: Jun 25, 2021
  • Number of updates: 23
  • Update frequency: every 53.2 days
  • Top authors: bobvanoorschot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,150 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
Installer ran successfully

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

This is a short check of server-side resources used by BUKAZU Search widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.40 ▲1.26
Dashboard /wp-admin3.36 ▲0.0550.19 ▲0.34
Posts /wp-admin/edit.php3.41 ▲0.0548.34 ▼4.25
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.61 ▼11.46
Media Library /wp-admin/upload.php3.28 ▲0.0534.26 ▼2.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_bukazu_search_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

BUKAZU Search widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17816.09 ▲1.8279.42 ▲77.4846.82 ▲9.23
Dashboard /wp-admin2,206 ▲155.80 ▲0.90101.95 ▼4.3342.20 ▲1.13
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0534.42 ▼8.9833.66 ▼4.31
Add New Post /wp-admin/post-new.php1,533 ▼423.47 ▲5.35661.96 ▲62.4559.75 ▲0.12
Media Library /wp-admin/upload.php1,388 ▼34.11 ▼0.2294.68 ▼6.5540.29 ▼3.82

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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_bukazu_search_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bukazu-search-widget/bukazu-widget.php:17

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

bukazu-search-widget/bukazu-widget.php 92% from 13 tests

The primary PHP file in "BUKAZU Search widget" version 3.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bukazu-search-widget.php" instead of "bukazu-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin12,067 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript443913211,022
CSS36015532
PO File3114120267
PHP24562246

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin