Random Posts Widget 2.1

Does Random Posts Widget work with WordPress 6.5.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
1PHP warnings
No JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

No data available.

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

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 1

WordPress › Error

Page screenshot: WordPress › Error
URL /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=
Requested URL /wp-admin/plugins.php?action=activate&plugin=random-posts-widget%2Frandomposts.php&plugin_status=all&paged=1&s&_wpnonce=1ade7adf69
Aspect after-activation
HTTP status 500
Load time 0.117 s
Memory usage N/A
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%212271
Total 212 27 1

PHP Code Analysis | More results »

Lines of code 212
Total complexity 42
Median class complexity 12.0
Median method complexity 1.5
Most complex class WP_ARA_Widget_Random_Posts
Most complex function widget_ara_randomposts_control()
Classes 1
Methods 4
Functions 6

Additions

No data available.

PHP Error Log 20 lines

[12-Apr-2024 04:01:29 UTC] PHP Warning:  Undefined variable $wp_db_version in /wp-content/plugins/random-posts-widget/randomposts.php on line 126
[12-Apr-2024 04:01:29 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /wp-includes/class-wp-widget.php:163
Stack trace:
#0 /wp-includes/class-wp-widget-factory.php(62): WP_Widget->__construct()
#1 /wp-includes/widgets.php(115): WP_Widget_Factory->register()
#2 /wp-content/plugins/random-posts-widget/randomposts.php(269): register_widget()
#3 /wp-includes/class-wp-hook.php(324): widget_ara_randomposts_init()
#4 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /wp-includes/widgets.php(1862): do_action()
#7 /wp-includes/class-wp-hook.php(324): wp_widgets_init()
#8 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#9 /wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /wp-settings.php(695): do_action()
#11 /wp-config.php(191): require_once('...')
#12 /wp-load.php(50): require_once('...')
#13 /wp-admin/admin.php(34): require_once('...')
#14 /wp-admin/plugins.php(10): require_once('...')
#15 {main}
  thrown in /wp-includes/class-wp-widget.php on line 163
See also: All tests for this plugin