Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.31ms] Passed 4 tests
This is a short check of server-side resources used by Mime Types Plus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 38.91 ▲3.83 |
Dashboard /wp-admin | 3.44 ▲0.14 | 47.92 ▼1.38 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.20 ▲5.16 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 92.20 ▼5.98 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 37.78 ▲2.30 |
Edit Mime Type /wp-admin/admin.php?page=mimetypesplus-edit | 3.33 | 33.14 |
Edit Users /wp-admin/admin.php?page=mimetypesplus-users-edit | 3.33 | 33.54 |
Mime Types Plus /wp-admin/admin.php?page=mimetypesplus | 3.33 | 31.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
mimetypesplus |
db_upgraded |
mimetypesplus_exts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Mime Types Plus
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.34 ▼0.01 | 1.67 ▲0.06 | 43.62 ▼1.66 |
Dashboard /wp-admin | 2,223 ▲46 | 5.58 ▼0.05 | 89.68 ▼2.17 | 40.87 ▼0.18 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.98 ▼0.02 | 38.83 ▲2.53 | 36.50 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,556 ▲21 | 23.30 ▲5.18 | 650.30 ▲30.01 | 49.98 ▼16.48 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.18 ▼0.00 | 94.12 ▼3.56 | 41.65 ▼1.14 |
Edit Mime Type /wp-admin/admin.php?page=mimetypesplus-edit | 9,437 | 2.02 | 26.21 | 41.19 |
Edit Users /wp-admin/admin.php?page=mimetypesplus-users-edit | 1,369 | 2.01 | 22.33 | 30.20 |
Mime Types Plus /wp-admin/admin.php?page=mimetypesplus | 854 | 1.99 | 24.59 | 32.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mime-types-plus/lib/class-mimetypesplus.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mime-types-plus/lib/class-mimetypesplusadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mime-types-plus/lib/class-mimetypesplusregist.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mime-types-plus/lib/class-mimetypesplusregist.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: mime types, media library, file type, filename extention
mime-types-plus/mimetypesplus.php 92% from 13 tests
The entry point to "Mime Types Plus" version 2.04 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mime-types-plus.php" instead of "mimetypesplus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin713 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 101 | 196 | 713 |
PHP code Passed 2 tests
A brief analysis 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.52 |
Average class complexity | 42.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin