Restrict WP Upload Type 1.0.2

Does Restrict WP Upload Type work with WordPress 6.7.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: 7.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.7.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=85ef975ce5
Aspect after-activation
HTTP status 200
Load time 0.285 s
Memory usage 3.51 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.206 s
Memory usage 3.47 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.222 s
Memory usage 3.42 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.310 s0.317 s+0.007 s3.48 MiB3.5 MiB+ 15.52 KiB
/wp-admin/edit.php0.209 s0.187 s-0.022 s3.54 MiB3.56 MiB+ 15.88 KiB
/wp-admin/post-new.php0.843 s0.651 s-0.192 s5.92 MiB5.97 MiB+ 41.56 KiB
/wp-admin/upload.php0.776 s0.468 s-0.308 s3.49 MiB3.49 MiB- 456 bytes
/wp-admin/options-writing.php0.244 s0.192 s-0.052 s3.47 MiB3.47 MiB+ 2.46 KiB
/wp-admin/media-new.php0.291 s0.198 s-0.093 s3.46 MiB3.47 MiB+ 10.66 KiB
/wp-admin/edit-tags.php?taxonomy=category0.200 s0.180 s-0.020 s3.48 MiB3.5 MiB+ 21.34 KiB
/wp-admin/post-new.php?post_type=page0.710 s0.629 s-0.081 s5.92 MiB5.95 MiB+ 37.09 KiB
/wp-admin/options-discussion.php0.506 s0.254 s-0.252 s3.47 MiB3.47 MiB- 1.03 KiB
/wp-admin/edit-comments.php0.232 s0.225 s-0.007 s3.49 MiB3.49 MiB- 1.53 KiB
/0.324 s0.183 s-0.141 s3.48 MiB3.42 MiB- 57.38 KiB
Average 0.422 s0.317 s-0.106 s3.93 MiB3.94 MiB+ 7.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
CSS
Language % Lines of code Comment lines Files
PHP76.1%73752713
CSS21.1%204172
JavaScript2.9%28542
Total 969 598 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