Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼12.89ms] Passed 4 tests
An overview of server-side resources used by WPFavicon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.40 ▼2.87 |
Dashboard /wp-admin | 3.13 ▼0.17 | 30.46 ▼20.98 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 34.57 ▼10.44 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 75.86 ▼13.45 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 27.10 ▼6.70 |
Favicons /wp-admin/options-general.php?page=cwfav-options | 3.11 | 24.95 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
WPFavicon: 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,818 ▲83 | 13.55 ▼0.83 | 1.70 ▼0.05 | 38.92 ▼8.45 |
Dashboard /wp-admin | 2,221 ▲33 | 5.98 ▲0.08 | 96.56 ▼22.84 | 40.45 ▼3.35 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 2.00 ▲0.04 | 40.41 ▲1.79 | 34.03 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 23.46 ▲0.40 | 674.17 ▼5.59 | 60.04 ▲9.61 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.21 ▲0.04 | 99.30 ▲0.99 | 46.52 ▲3.46 |
Favicons /wp-admin/options-general.php?page=cwfav-options | 876 | 1.85 | 25.60 | 24.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cwfav-options
- > Notice in wp-content/plugins/wpfavicon/admin/cwfav_options.php+25
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfavicon/display/inc/admin.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfavicon/display/inc/login.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wpfavicon/favicon.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfavicon/admin/cwfav_options.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfavicon/display/inc/login.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=cwfav-options
- > Network (severe)
wp-content/plugins//wpfavicon/style.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=cwfav-options
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=cwfav-options
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (A Favicon), #2 (Admin Panel)
wpfavicon/favicon.php 92% from 13 tests
Analyzing the main PHP file in "WPFavicon" version 2.1.1
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpfavicon.php" instead of "favicon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected144 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 29 | 32 | 119 |
PO File | 1 | 4 | 4 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 39.43KB | 12.46KB | ▼ 68.40% |
screenshot-1.png | 28.70KB | 10.67KB | ▼ 62.80% |
screenshot-2.png | 52.57KB | 16.43KB | ▼ 68.75% |