Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼310.91ms] Passed 4 tests
This is a short check of server-side resources used by FIT: Featured Image Toolkit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.48 | 58.71 ▼1.96 |
Dashboard /wp-admin | 3.58 ▲0.17 | 25.41 ▼14.21 |
Posts /wp-admin/edit.php | 3.78 ▲0.14 | 24.88 ▼17.76 |
Add New Post /wp-admin/post-new.php | 6.48 ▼0.49 | 80.51 ▼1,209.71 |
Media Library /wp-admin/upload.php | 3.60 ▲0.31 | 26.62 ▼0.49 |
Featured Image Toolkit /wp-admin/options-general.php?page=fisr-setting-admin | 3.57 | 25.00 |
Freemius Debug [v.2.1.0] /wp-admin/admin.php?page=freemius | 3.57 | 24.08 |
Server storage [IO: ▲3.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 219 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_active_plugins |
fs_gdpr |
fs_accounts |
fs_debug_mode |
fs_api_cache |
Browser metrics Passed 4 tests
FIT: Featured Image Toolkit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,131 ▲383 | 17.69 ▲1.69 | 9.13 ▲2.46 | 2.16 ▼0.13 |
Dashboard /wp-admin | 3,119 ▲265 | 8.02 ▲1.71 | 141.12 ▲5.89 | 166.28 ▲6.13 |
Posts /wp-admin/edit.php | 2,954 ▲263 | 5.10 ▲1.87 | 78.91 ▲15.68 | 153.89 ▲11.13 |
Add New Post /wp-admin/post-new.php | 1,720 ▲52 | 16.76 ▼2.94 | 377.02 ▼14.40 | 180.29 ▲25.09 |
Media Library /wp-admin/upload.php | 1,732 ▲34 | 5.45 ▼0.14 | 105.61 ▼40.18 | 192.40 ▲7.68 |
Featured Image Toolkit /wp-admin/options-general.php?page=fisr-setting-admin | 1,496 | 4.19 | 72.27 | 173.86 |
Freemius Debug [v.2.1.0] /wp-admin/admin.php?page=freemius | 1,680 | 4.31 | 68.99 | 124.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall_fisr' not found or invalid function name
- Zombie WordPress options detected upon uninstall: 5 options
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- fs_gdpr
- fs_api_cache
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-content/plugins/featured-image-toolkit/admin/class-fisr-admin.php+149
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/featured-image-toolkit/freemius/templates/ajax-loader.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/featured-image-toolkit/admin/partials/fisr-admin-display.php:247
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/featured-image-toolkit/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/featured-image-toolkit/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/featured-image-toolkit/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/featured-image-toolkit/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/featured-image-toolkit/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/featured-image-toolkit/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/featured-image-toolkit/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/featured-image-toolkit/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
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)
Everything seems fine on the user side
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 your attention:
- License uri: Please fix this invalid url: ""
- Requires php: Invalid version format
featured-image-toolkit/fit.php 85% from 13 tests
This is the main PHP file of "FIT: Featured Image Toolkit" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("featured-image-toolkit.php" instead of "fit.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected38,996 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 6,156 | 14,431 | 25,553 |
PO File | 9 | 4,743 | 5,573 | 10,287 |
Sass | 26 | 391 | 79 | 2,517 |
JavaScript | 8 | 71 | 140 | 404 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
CSS | 14 | 0 | 4 | 16 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,212)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,212.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,058 | |
▷ Static methods | 159 | 15.03% |
▷ Public methods | 751 | 70.98% |
▷ Protected methods | 15 | 1.42% |
▷ Private methods | 292 | 27.60% |
Functions | 96 | |
▷ Named functions | 96 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 112 | |
▷ Global constants | 92 | 82.14% |
▷ Class constants | 20 | 17.86% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/fisr.png | 1.61KB | 1.11KB | ▼ 31.44% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/featured-image-toolkit.png | 1.61KB | 1.11KB | ▼ 31.44% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |