10% simple-forum-widgets

Code Review | Simple Forum Widgets

WordPress plugin Simple Forum Widgets scored10%from 54 tests.

About plugin

  • Plugin page: simple-forum-widgets
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2016
  • Latest release: Aug 3, 2016
  • Number of updates: 29
  • Update frequency: every 2.8 days
  • Top authors: tecdiary (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,655 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/simple-forum-widgets/widgets/threads-widget.php+3
    Function create_function() is deprecated

Server metrics [RAM: ▼1.88MB] [CPU: ▼52.82ms] Passed 4 tests

This is a short check of server-side resources used by Simple Forum Widgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.355.30 ▼30.46
Dashboard /wp-admin2.13 ▼1.176.27 ▼46.56
Posts /wp-admin/edit.php2.13 ▼1.237.91 ▼39.60
Add New Post /wp-admin/post-new.php2.13 ▼3.766.61 ▼94.67
Media Library /wp-admin/upload.php2.13 ▼1.107.76 ▼24.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Forum Widgets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲15213.59 ▼1.225.30 ▲3.6543.41 ▲0.85
Dashboard /wp-admin2,211 ▲204.93 ▲0.01113.96 ▲13.0670.27 ▲26.77
Posts /wp-admin/edit.php2,103 ▲142.04 ▲0.0032.67 ▼9.2833.76 ▼0.62
Add New Post /wp-admin/post-new.php1,692 ▲15624.90 ▲1.89728.20 ▲129.9452.81 ▼6.05
Media Library /wp-admin/upload.php1,402 ▲174.16 ▼0.03100.15 ▼0.0776.12 ▲28.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/simple-forum-widgets/widgets/threads-widget.php+3
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_simple_forum_threads_widget
    • widget_simple_forum_categories_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-forum-widgets/simple-forum-widgets.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-forum-widgets/widgets/threads-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-forum-widgets/simple-forum-widgets-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-forum-widgets/widgets/categories-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function simple_forum_widgets_get_value() in wp-content/plugins/simple-forum-widgets/simple-forum-widgets-sso.php:3

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg)
You can take inspiration from this readme.txt

simple-forum-widgets/simple-forum-widgets.php Passed 13 tests

This is the main PHP file of "Simple Forum Widgets" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
118 characters long description:
Adds two new widgets (Forum Threads and Forum Categories) to display your simple forum threads/categories on your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin674 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP811217601
PO File1121738
CSS19233
JavaScript1102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.50
▷ Minimum class complexity17.00
▷ Maximum class complexity18.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png1.62KB0.81KB▼ 49.91%