10% search-for-ipboard

Code Review | IP.Board Search

WordPress plugin IP.Board Search scored 10% from 54 tests.

About plugin

  • Plugin page: search-for-ipboard
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.0
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Feb 14, 2019
  • Number of updates: 12
  • Update frequency: every 82.2 days
  • Top authors: thekrotek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 630 total downloads

Benchmarks

Plugin footprint 58% 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
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-includes/class-wpdb.php+2035
    mysqli_real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.44ms] Passed 4 tests

Analyzing server-side resources used by IP.Board Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.48 ▲1.54
Dashboard /wp-admin3.31 ▲0.0043.80 ▼2.26
Posts /wp-admin/edit.php3.36 ▲0.0042.75 ▼4.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.42 ▼16.17
Media Library /wp-admin/upload.php3.23 ▲0.0034.31 ▲2.07

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

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

Browser metrics Passed 4 tests

IP.Board Search: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲1413.19 ▼1.481.96 ▲0.0940.97 ▼3.64
Dashboard /wp-admin2,203 ▼05.83 ▲0.0397.51 ▲2.1938.29 ▼1.06
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0333.15 ▼1.0435.65 ▼0.33
Add New Post /wp-admin/post-new.php1,533 ▼823.30 ▲0.17637.84 ▲31.6656.74 ▼3.22
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0196.19 ▼7.4943.38 ▼5.85

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/search-for-ipboard/ipboard-search.php
  • 3× 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/search-for-ipboard/settings.php:22
    • > PHP Notice
      Undefined variable: fields in wp-content/plugins/search-for-ipboard/helpers/fields.php on line 12
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/search-for-ipboard/helpers/fields.php on line 12

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: forum bridge, search, ipboard, forum, custom search...

search-for-ipboard/ipboard-search.php 85% from 13 tests

Analyzing the main PHP file in "IP.Board Search" version 1.0.0
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("search-for-ipboard.php" instead of "ipboard-search.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin468 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP410239359
PO File124062
CSS18047

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
PNG images were not found in this plugin