Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.42ms] Passed 4 tests
Server-side resources used by Minimum Featured Image Size
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.44 ▼4.14 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.82 ▼0.38 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.48 ▲1.27 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 82.76 ▼6.41 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.86 ▲2.11 |
Minimum Featured Image Size /wp-admin/options-general.php?page=mfis_settings | 3.28 | 32.07 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mfis_disable_publishing |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Minimum Featured Image Size
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 14.74 ▲0.36 | 1.80 ▼0.00 | 43.91 ▼0.24 |
Dashboard /wp-admin | 2,217 ▲29 | 4.92 ▲0.02 | 102.03 ▼8.27 | 37.24 ▼8.08 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▲0.00 | 35.48 ▼7.32 | 34.10 ▼5.38 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 18.23 ▼4.79 | 647.38 ▲46.71 | 61.56 ▲4.67 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.28 ▲0.09 | 96.42 ▲0.72 | 44.99 ▲4.04 |
Minimum Featured Image Size /wp-admin/options-general.php?page=mfis_settings | 933 | 2.11 | 26.78 | 37.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- mfis_disable_publishing
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: minimum image size, featured image, image size
minimum-featured-image-size/mfis.php 92% from 13 tests
"Minimum Featured Image Size" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("minimum-featured-image-size.php" instead of "mfis.php")
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 plugin602 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 181 | 90 | 383 |
JavaScript | 2 | 93 | 50 | 126 |
Sass | 1 | 27 | 0 | 92 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 15 | |
▷ Named functions | 15 | 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
No PNG files were detected