Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/more-file-types/more-file-types.php+62
Use of undefined constant our_custom_check_filetype_and_ext - assumed 'our_custom_check_filetype_and_ext' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.91ms] Passed 4 tests
A check of server-side resources used by More File Types
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.66 ▼36.53 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.92 ▼47.36 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.04 ▼46.40 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.87 ▼93.36 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.33 ▼33.93 |
More File Types /wp-admin/options-general.php?page=mft_settings | 2.05 | 5.67 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by More File Types
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.74 ▲0.15 | 1.61 ▼0.26 | 40.93 ▼9.75 |
Dashboard /wp-admin | 2,228 ▲25 | 5.88 ▲0.96 | 112.58 ▲8.60 | 38.32 ▼7.07 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.10 | 38.33 ▼0.97 | 35.30 ▼8.34 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.09 ▲0.09 | 644.84 ▼11.00 | 73.84 ▼3.77 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.20 ▲0.00 | 103.57 ▼16.64 | 49.86 ▲2.08 |
More File Types /wp-admin/options-general.php?page=mft_settings | 831 | 2.02 | 23.13 | 34.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/more-file-types/more-file-types.php+62
Use of undefined constant our_custom_check_filetype_and_ext - assumed 'our_custom_check_filetype_and_ext' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=mft_settings
- > Warning in wp-content/plugins/more-file-types/more-file-types.php+62
Use of undefined constant our_custom_check_filetype_and_ext - assumed 'our_custom_check_filetype_and_ext' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/more-file-types/more-file-types.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
There were no plugin tags found
more-file-types/more-file-types.php Passed 13 tests
The main PHP script in "More File Types" version 0.1.2 is automatically included on every request by WordPress
36 characters long description:
Allow more file types to be uploaded
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin62 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 13 | 62 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected