Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.94ms] Passed 4 tests
Analyzing server-side resources used by WP Add Mime Types
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.45 ▼7.32 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.94 ▼3.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.63 ▼1.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 101.18 ▼3.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.28 ▼1.37 |
Mime Type Settings /wp-admin/options-general.php?page=wp-add-mime-types/includes/admin.php | 3.20 | 31.75 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Add Mime Types
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.08 | 1.83 ▲0.10 | 38.98 ▼2.49 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.05 | 86.38 ▼10.67 | 42.63 ▼5.13 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 33.98 ▼4.28 | 38.13 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 21.00 ▼1.92 | 661.44 ▼34.87 | 53.80 ▼6.37 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.15 ▼0.07 | 97.95 ▲1.39 | 41.68 ▼3.15 |
Mime Type Settings /wp-admin/options-general.php?page=wp-add-mime-types/includes/admin.php | 1,619 | 1.99 | 23.82 | 29.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-add-mime-types/wp-add-mime-types.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Setting Menu), #2 (Setting Menu in case of the multisite), #3 (Ignore to the right of '#' on a line), #4 (Security Options)
wp-add-mime-types/wp-add-mime-types.php 92% from 13 tests
The entry point to "WP Add Mime Types" version 3.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin395 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 68 | 395 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
3 PNG files occupy 0.25MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 77.30KB | 21.36KB | ▼ 72.37% |
screenshot-1.png | 115.50KB | 20.79KB | ▼ 82.00% |
screenshot-3.png | 63.16KB | 17.23KB | ▼ 72.72% |