Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▲5.58ms] Passed 4 tests
This is a short check of server-side resources used by Mime Types Extended
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 42.61 ▲1.79 |
Dashboard /wp-admin | 3.57 ▲0.27 | 59.04 ▲5.73 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 55.02 ▲2.47 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 110.22 ▲12.32 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 62.51 ▲25.51 |
Mime types /wp-admin/options-general.php?page=mime-types-extended/class-mime-types-extended.php | 3.50 | 52.97 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Mime Types Extended
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.59 ▼0.79 | 1.60 ▼0.17 | 40.87 ▼2.74 |
Dashboard /wp-admin | 2,225 ▲22 | 5.85 ▲0.81 | 107.37 ▼9.21 | 39.08 ▼0.36 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▼0.02 | 37.55 ▼5.07 | 32.94 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.02 ▼0.10 | 648.26 ▼47.42 | 70.84 ▲12.64 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.23 ▲0.06 | 115.54 ▲4.85 | 50.14 ▲6.62 |
Mime types /wp-admin/options-general.php?page=mime-types-extended/class-mime-types-extended.php | 1,550 | 2.03 | 23.49 | 31.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/mime-types-extended/mime-types-extended.php:43
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (The settings dialog)
mime-types-extended/mime-types-extended.php 77% from 13 tests
The main PHP file in "Mime Types Extended" ver. 0.11 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,160 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 62 | 724 |
PO File | 2 | 192 | 392 | 424 |
JavaScript | 1 | 1 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 167.00 |
▷ Minimum class complexity | 167.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 24.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 6 | 85.71% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG images were not found in this plugin