Random Featured Post 1.1.3

Does Random Featured Post work with WordPress 6.4.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
31PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: -6.65 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.4.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 100+
WordPress.org page https://wordpress.org/plugins/random-featured-post-plugin/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Plugins ‹ Test site — WordPress

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

Settings → Featured Post

Page screenshot: Settings → Featured Post
URL /wp-admin/options-general.php?page=random-featured-post-plugin%2Ffeaturedpost.php
Requested URL /wp-admin/options-general.php?page=random-featured-post-plugin/featuredpost.php
Aspect menu-item
HTTP status 200
Load time 0.188 s
Memory usage N/A
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.258 s
Memory usage 3.3 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.476 s0.372 s-0.104 s3.38 MiB3.38 MiB+ 4.95 KiB
/wp-admin/edit.php0.440 s0.233 s-0.207 s3.41 MiB3.41 MiB+ 4.95 KiB
/wp-admin/post-new.php0.963 s0.666 s-0.297 s5.46 MiB5.47 MiB+ 9.33 KiB
/wp-admin/upload.php0.693 s0.710 s+0.017 s3.32 MiB3.31 MiB- 11.37 KiB
/wp-admin/options-writing.php0.248 s0.294 s+0.046 s3.32 MiB3.3 MiB- 18.3 KiB
/wp-admin/media-new.php0.354 s0.299 s-0.055 s3.29 MiB3.3 MiB+ 1.3 KiB
/wp-admin/edit-tags.php?taxonomy=category0.245 s0.227 s-0.018 s3.31 MiB3.32 MiB+ 5.65 KiB
/wp-admin/post-new.php?post_type=page0.878 s0.648 s-0.230 s5.45 MiB5.46 MiB+ 8.91 KiB
/wp-admin/options-discussion.php0.423 s0.316 s-0.107 s3.3 MiB3.29 MiB- 10.39 KiB
/wp-admin/edit-comments.php0.296 s0.245 s-0.051 s3.33 MiB3.32 MiB- 12.46 KiB
/0.349 s0.385 s+0.036 s3.36 MiB3.3 MiB- 55.69 KiB
Average 0.488 s0.400 s-0.088 s3.72 MiB3.71 MiB- 6.65 KiB

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%196231
Total 196 23 1

PHP Code Analysis | More results »

Lines of code 206
Total complexity 49
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function show_featured_post()
Classes 0
Methods 0
Functions 3

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 1

PHP Error Log 40 lines

[20-Nov-2023 23:31:59 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:31:59 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:00 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:00 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:00 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:00 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:00 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_query() in /wp-content/plugins/random-featured-post-plugin/featuredpost.php:120
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): fp_options_page()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-admin/admin.php(259): do_action()
#4 /wp-admin/options-general.php(10): require_once('...')
#5 {main}
  thrown in /wp-content/plugins/random-featured-post-plugin/featuredpost.php on line 120
[20-Nov-2023 23:32:02 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:02 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:03 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:03 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:03 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:03 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:06 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:06 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:07 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:07 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:07 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:07 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:08 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:08 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:08 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:08 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:11 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:11 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:11 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:11 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:12 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:12 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:12 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:12 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[20-Nov-2023 23:32:13 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
See also: All tests for this plugin