Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/filetype-icons/filetype-icons.php+61
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.82ms] Passed 4 tests
Server-side resources used by Filetype Icons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.18 ▲0.81 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.59 ▼1.19 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 55.31 ▲7.52 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.95 ▼12.07 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.21 ▲1.17 |
Filetype Icons /wp-admin/options-general.php?page=filetype-icons/filetype-icons.php | 3.22 | 30.62 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 200 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
FTIs_options |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Filetype Icons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.48 ▼0.08 | 1.79 ▼0.21 | 40.22 ▼1.26 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.03 | 100.41 ▼11.81 | 40.01 ▼3.46 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.04 | 40.63 ▼1.81 | 36.14 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,545 ▲7 | 18.38 ▼4.84 | 633.97 ▲31.40 | 54.12 ▲0.73 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.02 | 96.88 ▼4.52 | 40.43 ▼2.70 |
Filetype Icons /wp-admin/options-general.php?page=filetype-icons/filetype-icons.php | 915 | 2.07 | 26.04 | 41.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/filetype-icons/filetype-icons.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: declaration, icon, filetype, link
filetype-icons/filetype-icons.php Passed 13 tests
The main PHP script in "Filetype Icons" version 1.1.1 is automatically included on every request by WordPress
64 characters long description:
This plugin adds an Filetype extension icon before the link text
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin227 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 23 | 176 |
PO File | 1 | 15 | 15 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
196 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/32/file_extension_sea.png | 1.73KB | 1.53KB | ▼ 11.60% |
icons/32/file_extension_thm.png | 1.47KB | 1.41KB | ▼ 4.31% |
icons/32/file_extension_tmp.png | 1.38KB | 1.31KB | ▼ 5.58% |
icons/32/file_extension_wav.png | 1.65KB | 1.50KB | ▼ 9.28% |
icons/16/file_extension_asf.png | 0.66KB | 0.70KB | 0.00% |