Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.51ms] Passed 4 tests
An overview of server-side resources used by MimeTypes Link Icons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.87 ▲0.12 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.58 ▼17.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.89 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.74 ▼20.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.05 ▼2.31 |
Server storage [IO: ▲4.13MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 902 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for MimeTypes Link Icons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.35 ▼1.01 | 1.77 ▼0.09 | 44.93 ▲4.48 |
Dashboard /wp-admin | 2,224 ▲23 | 4.84 ▼1.02 | 111.10 ▲2.90 | 41.89 ▲0.28 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.01 | 35.82 ▼5.37 | 33.79 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,550 ▲6 | 23.19 ▼0.16 | 658.43 ▲7.90 | 53.15 ▼0.38 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.06 | 95.96 ▼5.17 | 42.15 ▼2.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mimetypes-link-icons/css/style.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/mimetypes-link-icons/css/style.php on line 7
- > PHP Notice
Undefined variable: mtli_height in wp-content/plugins/mimetypes-link-icons/css/style.php on line 12
- > PHP Notice
Undefined variable: mtli_leftorright in wp-content/plugins/mimetypes-link-icons/css/style.php on line 13
- > PHP Notice
Undefined index: cssvars in wp-content/plugins/mimetypes-link-icons/css/style.php on line 4
- > PHP Notice
Undefined variable: active_types in wp-content/plugins/mimetypes-link-icons/css/style.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mimetypes-link-icons/mime_type_link_images.php:2175
- > PHP Notice
Undefined variable: mtli_image_type in wp-content/plugins/mimetypes-link-icons/css/style.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/mimetypes-link-icons/uninstall.php:14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Screenshot of the administration screen), #2 (Screenshot of the administration screen - advanced settings), #3 (Screenshot of plugin in action.), #4 (MimeTypes Link Icons adds icons automatically to your inline attachments.), #5 (Now you can get MimeTypes Link Icons to add the file size of your attachment, too.)
- Tags: You are using too many tags: 81 tag instead of maximum 10
mimetypes-link-icons/mime_type_link_images.php 85% from 13 tests
This is the main PHP file of "MimeTypes Link Icons" version 3.2.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("mimetypes-link-icons.php" instead of "mime_type_link_images.php")
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,555 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 403 | 746 | 1,163 |
PO File | 1 | 78 | 108 | 247 |
JavaScript | 4 | 17 | 24 | 66 |
CSS | 2 | 13 | 13 | 63 |
XML | 1 | 6 | 3 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 251.00 |
▷ Minimum class complexity | 251.00 |
▷ Maximum class complexity | 251.00 |
Average method complexity | 5.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.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 | 54 | |
▷ Static methods | 3 | 5.56% |
▷ Public methods | 34 | 62.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 37.04% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
446 PNG files occupy 2.74MB with 1.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/qt-icon-16x16.png | 0.96KB | 0.96KB | 0.30% |
images/ods-icon-64x64.png | 3.28KB | 2.26KB | ▼ 31.12% |
images/air-icon-48x48.png | 9.12KB | 2.00KB | ▼ 78.08% |
screenshot-1.png | 55.83KB | 22.01KB | ▼ 60.57% |
images/indd-icon-128x128.png | 12.67KB | 4.46KB | ▼ 64.82% |