10% booli-search

Code Review | Booli Search

WordPress plugin Booli Search scored10%from 54 tests.

About plugin

  • Plugin page: booli-search
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: Aug 7, 2013
  • Latest release: Aug 7, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: emilkaiser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,004 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/booli-search/booli-search.php+129
    Function create_function() is deprecated

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.39ms] Passed 4 tests

Server-side resources used by Booli Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.65 ▼36.78
Dashboard /wp-admin2.10 ▼1.215.66 ▼48.46
Posts /wp-admin/edit.php2.10 ▼1.267.31 ▼39.69
Add New Post /wp-admin/post-new.php2.10 ▼3.795.51 ▼84.62
Media Library /wp-admin/upload.php2.10 ▼1.136.14 ▼30.31

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Booli Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.751.68 ▼0.1841.59 ▼2.41
Dashboard /wp-admin2,206 ▲185.85 ▲0.97112.60 ▼7.3342.42 ▼5.82
Posts /wp-admin/edit.php2,089 ▲182.00 ▲0.0040.88 ▲2.1235.20 ▼0.86
Add New Post /wp-admin/post-new.php1,533 ▲1923.21 ▲5.77675.58 ▼22.5051.71 ▼7.94
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0599.51 ▼4.9042.10 ▼1.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/booli-search/booli-search.php+129
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_booli-search
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/booli-search/views/widget.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/booli-search/views/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booli-search/booli-search.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: real estate, widget

booli-search/booli-search.php Passed 13 tests

The principal PHP file in "Booli Search" v. 1.0 is loaded by WordPress automatically on each request
71 characters long description:
Displays search results from swedish real estate search engine Booli.se

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin136 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33227106
PO File16630

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.29
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
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
There were not PNG files found in your plugin