Restrict WP Upload Type 1.0.3

Does Restrict WP Upload Type work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 10.17 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.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 200+
WordPress.org page https://wordpress.org/plugins/restrict-wp-upload-type/
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=restrict-wp-upload-type%2Frestrict-wp-upload-type.php&plugin_status=all&paged=1&s&_wpnonce=11ec4257fa
Aspect after-activation
HTTP status 200
Load time 0.265 s
Memory usage 3.54 MiB
JS errors None
Resource errors None

Restrict Files

Page screenshot: Restrict Files
URL /wp-admin/admin.php?page=restrict_file_type
Aspect menu-item
HTTP status 200
Load time 0.191 s
Memory usage 3.5 MiB
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.203 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.348 s0.301 s-0.047 s3.51 MiB3.52 MiB+ 15.57 KiB
/wp-admin/edit.php0.216 s0.183 s-0.033 s3.57 MiB3.59 MiB+ 15.56 KiB
/wp-admin/post-new.php0.779 s0.628 s-0.151 s6.06 MiB6.08 MiB+ 20.84 KiB
/wp-admin/upload.php0.552 s0.498 s-0.054 s3.52 MiB3.52 MiB- 784 bytes
/wp-admin/options-writing.php0.217 s0.204 s-0.013 s3.5 MiB3.5 MiB+ 2.15 KiB
/wp-admin/media-new.php0.284 s0.195 s-0.089 s3.49 MiB3.5 MiB+ 10.34 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.196 s+0.006 s3.5 MiB3.52 MiB+ 21.02 KiB
/wp-admin/post-new.php?post_type=page0.613 s0.620 s+0.007 s6.05 MiB6.07 MiB+ 16.37 KiB
/wp-admin/options-discussion.php0.474 s0.248 s-0.226 s3.5 MiB3.5 MiB- 1.35 KiB
/wp-admin/edit-comments.php0.409 s0.191 s-0.218 s3.52 MiB3.52 MiB- 1.85 KiB
/0.326 s0.386 s+0.060 s3.43 MiB3.45 MiB+ 14.03 KiB
Average 0.401 s0.332 s-0.069 s3.97 MiB3.98 MiB+ 10.17 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
CSS
Language % Lines of code Comment lines Files
PHP76.2%74454113
CSS21.0%205172
JavaScript2.9%28542
Total 977 612 17

PHP Code Analysis | More results »

Lines of code 694
Total complexity 138
Median class complexity 3.0
Median method complexity 1.0
Most complex class Restrict_Wp_Upload_Type
Most complex function restrict_wp_upload_remove_mime_types()
Classes 7
Methods 23
Functions 9

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.

No new entries found.

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Restrict Files" Admin Menu