Restrict WP Upload Type 1.0.0

Does Restrict WP Upload Type work with WordPress 6.4.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.13 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 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=1645573de8
Aspect after-activation
HTTP status 200
Load time 0.379 s
Memory usage 3.33 MiB
JS errors None
Resource errors None

Restrict File Type

Page screenshot: Restrict File Type
URL /wp-admin/admin.php?page=restrict_file_type
Aspect menu-item
HTTP status 200
Load time 0.275 s
Memory usage 3.36 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.284 s
Memory usage 3.31 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.609 s0.460 s-0.149 s3.38 MiB3.4 MiB+ 16.1 KiB
/wp-admin/edit.php0.291 s0.249 s-0.042 s3.41 MiB3.42 MiB+ 16.47 KiB
/wp-admin/post-new.php1.438 s1.413 s-0.025 s5.46 MiB5.48 MiB+ 22.04 KiB
/wp-admin/upload.php0.820 s0.620 s-0.200 s3.32 MiB3.32 MiB+ 520 bytes
/wp-admin/options-writing.php0.253 s0.264 s+0.011 s3.32 MiB3.31 MiB- 8.35 KiB
/wp-admin/media-new.php0.360 s0.298 s-0.062 s3.29 MiB3.31 MiB+ 11.88 KiB
/wp-admin/edit-tags.php?taxonomy=category0.227 s0.251 s+0.024 s3.31 MiB3.33 MiB+ 16.42 KiB
/wp-admin/post-new.php?post_type=page1.007 s0.755 s-0.252 s5.45 MiB5.47 MiB+ 21.63 KiB
/wp-admin/options-discussion.php0.383 s0.342 s-0.041 s3.3 MiB3.3 MiB+ 1.43 KiB
/wp-admin/edit-comments.php0.354 s0.557 s+0.203 s3.34 MiB3.33 MiB- 928 bytes
/0.332 s0.351 s+0.019 s3.31 MiB3.32 MiB+ 14.23 KiB
Average 0.552 s0.505 s-0.047 s3.72 MiB3.73 MiB+ 10.13 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
PHP78.5%73652313
CSS18.6%174162
JavaScript2.9%27542
Total 937 593 17

PHP Code Analysis | More results »

Lines of code 686
Total complexity 136
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 8

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