Random Post for Widget 5.0

Does Random Post for Widget work with WordPress 6.4.3 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
The plugin could not be activated
1PHP fatal errors
No JavaScript exceptions
No resource errors
Performance

No data available.

Environment
WordPress version6.4.3
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 3,000+
WordPress.org page https://wordpress.org/plugins/random-post-for-widget/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 1

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin=random-post-for-widget%2Frandom_post_widget.php
Requested URL /wp-admin/plugins.php?action=activate&plugin=random-post-for-widget%2Frandom_post_widget.php&plugin_status=all&paged=1&s&_wpnonce=8c1a4623a6
Aspect after-activation
HTTP status 200
Load time 0.264 s
Memory usage 3.32 MiB
JS errors None
Resource errors None

Benchmark

No benchmark data available.

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
Language % Lines of code Comment lines Files
PHP100.0%69161
Total 69 16 1

PHP Code Analysis | More results »

Lines of code 69
Total complexity 9
Median class complexity 9.0
Median method complexity 1.0
Most complex class RandomPostForWidget
Most complex function RandomPostForWidget::widget()
Classes 1
Methods 4
Functions 0

Additions

No data available.

PHP Error Log 7 lines

[01-Feb-2024 15:46:26 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function create_function() in /wp-content/plugins/random-post-for-widget/random_post_widget.php:95
Stack trace:
#0 /wp-admin/includes/plugin.php(2318): include_once()
#1 /wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
#2 /wp-admin/plugins.php(58): activate_plugin()
#3 {main}
  thrown in /wp-content/plugins/random-post-for-widget/random_post_widget.php on line 95
See also: All tests for this plugin