Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.09ms] Passed 4 tests
Server-side resources used by File Upload Types by WPForms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 48.88 ▲7.70 |
Dashboard /wp-admin | 3.51 ▲0.21 | 44.10 ▼5.34 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.20 ▼0.67 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 101.30 ▲0.35 |
Media Library /wp-admin/upload.php | 3.99 ▲0.77 | 38.11 ▲5.29 |
File Upload Types /wp-admin/options-general.php?page=file-upload-types | 5.23 | 57.05 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by File Upload Types by WPForms
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.29 ▼0.94 | 5.98 ▲4.33 | 42.60 ▼0.81 |
Dashboard /wp-admin | 2,213 ▲28 | 5.85 ▼0.05 | 96.87 ▼2.90 | 38.38 ▼4.61 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.02 ▲0.04 | 38.05 ▼3.45 | 33.17 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,548 ▲35 | 18.45 ▲1.02 | 587.41 ▼15.51 | 48.60 ▼5.07 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▲0.01 | 98.53 ▼1.11 | 44.74 ▼0.11 |
File Upload Types /wp-admin/options-general.php?page=file-upload-types | 8,508 | 1.34 | 30.27 | 99.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: file upload, upload, mime, attachments, files
file-upload-types/file-upload-types.php Passed 13 tests
This is the main PHP file of "File Upload Types by WPForms" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
Easily allow WordPress to accept and upload any file type extension or MIME type, including custom file types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,405 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 338 | 750 | 1,332 |
JavaScript | 2 | 9 | 2 | 45 |
XML | 1 | 0 | 0 | 16 |
SVG | 9 | 0 | 0 | 9 |
JSON | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 64 | |
▷ Static methods | 19 | 29.69% |
▷ Public methods | 58 | 90.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.38% |
Functions | 18 | |
▷ Named functions | 12 | 66.67% |
▷ Anonymous functions | 6 | 33.33% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 16.67KB | 9.41KB | ▼ 43.57% |