63% minibb-widget

Code Review | miniBB Widget

WordPress plugin miniBB Widget scored63%from 54 tests.

About plugin

  • Plugin page: minibb-widget
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.7.4
  • WordPress version: 6.3.1
  • First release: Nov 12, 2016
  • Latest release: May 12, 2017
  • Number of updates: 16
  • Update frequency: every 11.3 days
  • Top authors: kuopassa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /535 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼9.20ms] Passed 4 tests

This is a short check of server-side resources used by miniBB Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.82 ▼5.65
Dashboard /wp-admin3.42 ▲0.1247.83 ▼9.37
Posts /wp-admin/edit.php3.47 ▲0.1253.41 ▼1.83
Add New Post /wp-admin/post-new.php6.00 ▲0.1284.69 ▼19.93
Media Library /wp-admin/upload.php3.35 ▲0.1237.00 ▲0.03
miniBB Widget /wp-admin/tools.php?page=minibb_widget3.3236.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
kuo_minibb_widget_url_scheme
widget_recent-posts
widget_recent-comments
widget_minibb_widget
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for miniBB Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.75 ▲0.561.83 ▼0.4339.50 ▼5.56
Dashboard /wp-admin2,199 ▲195.64 ▲0.0097.27 ▲4.6041.58 ▲0.29
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0741.14 ▲4.1536.47 ▲4.45
Add New Post /wp-admin/post-new.php1,548 ▲2222.99 ▲5.33641.77 ▼52.2149.77 ▼7.19
Media Library /wp-admin/upload.php1,401 ▲14.20 ▼0.1099.38 ▲1.9343.02 ▼1.57
miniBB Widget /wp-admin/tools.php?page=minibb_widget9552.1829.6831.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Error in wp-includes/option.php+2485
    Uncaught ArgumentCountError: Too few arguments to function unregister_setting(), 1 passed in wp-content/plugins/minibb-widget/minibb_widget.php on line 116 and at least 2 expected in wp-includes/option.php:2485
    Stack trace:
    #0 wp-content/plugins/minibb-widget/minibb_widget.php(116): unregister_setting()
    #1 wp-includes/class-wp-hook.php(310): kuo_minibb_widget_uninstall()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(1269): do_action()
    #5 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • This plugin has failed uninstalling correctly, leaving 3 files (0.04MB) in the plugin directory
    • (new file) README.txt
    • (new file) index.php
    • (new file) minibb_widget.php
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_minibb_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=minibb_widget
    • > Warning in wp-content/plugins/minibb-widget/minibb_widget.php+233
    mysqli_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: YES)

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === minibb-widget === )
You can take inspiration from this readme.txt

minibb-widget/minibb_widget.php 92% from 13 tests

The main PHP file in "miniBB Widget" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("minibb-widget.php" instead of "minibb_widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin560 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2108181560

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.42
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity9.75
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin