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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 5.30 ▼30.46 |
Dashboard /wp-admin | 2.13 ▼1.17 | 6.27 ▼46.56 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 7.91 ▼39.60 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.61 ▼94.67 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 13.59 ▼1.22 | 5.30 ▲3.65 | 43.41 ▲0.85 |
Dashboard /wp-admin | 2,211 ▲20 | 4.93 ▲0.01 | 113.96 ▲13.06 | 70.27 ▲26.77 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.04 ▲0.00 | 32.67 ▼9.28 | 33.76 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,692 ▲156 | 24.90 ▲1.89 | 728.20 ▲129.94 | 52.81 ▼6.05 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.16 ▼0.03 | 100.15 ▼0.07 | 76.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 112 | 17 | 601 |
PO File | 1 | 12 | 17 | 38 |
CSS | 1 | 9 | 2 | 33 |
JavaScript | 1 | 1 | 0 | 2 |
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 code | 0.32 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 1.62KB | 0.81KB | ▼ 49.91% |