Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▲0.29ms] Passed 4 tests
A check of server-side resources used by Heroic Favicon Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 40.44 ▼2.01 |
Dashboard /wp-admin | 3.58 ▲0.27 | 55.17 ▲2.25 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 55.55 ▲6.15 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 96.81 ▲0.89 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 39.22 ▲0.02 |
Heroic Favicon Generator /wp-admin/options-general.php?page=ht-ultimate-favicon-options | 3.49 | 40.58 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/favhero-favicon-generator/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
_ht_favicons_key |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Heroic Favicon Generator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲61 | 13.62 ▼0.76 | 2.22 ▼0.12 | 38.34 ▼5.78 |
Dashboard /wp-admin | 2,222 ▲19 | 5.84 ▼0.17 | 108.42 ▼10.14 | 44.81 ▼0.84 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.04 ▼0.02 | 40.53 ▼0.73 | 37.45 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,557 ▲3 | 18.21 ▼0.14 | 606.67 ▼42.90 | 52.28 ▼3.43 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.05 | 98.10 ▼12.72 | 46.07 ▲0.67 |
Heroic Favicon Generator /wp-admin/options-general.php?page=ht-ultimate-favicon-options | 1,379 | 3.02 | 40.39 | 75.12 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- _ht_favicons_key
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 2× 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/favhero-favicon-generator/php/ht-ultimate-favicon-settings.php:344
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/favhero-favicon-generator/ht-ultimate-favicon.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: favourites, icon, generator, favicon
favhero-favicon-generator/ht-ultimate-favicon.php 85% from 13 tests
"Heroic Favicon Generator" version 1.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("favhero-favicon-generator.php" instead of "ht-ultimate-favicon.php")
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
Good job! No executable or dangerous file extensions detected1,600 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 253 | 235 | 1,437 |
CSS | 1 | 24 | 0 | 86 |
JavaScript | 1 | 21 | 12 | 41 |
PO File | 1 | 10 | 11 | 36 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 66.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 54 | 71.05% |
▷ Public methods | 76 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/favicon-default.png | 4.59KB | 2.36KB | ▼ 48.62% |