Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼4.32ms] Passed 4 tests
Server-side resources used by SVG Favicon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 42.07 ▲6.99 |
Dashboard /wp-admin | 3.71 ▲0.37 | 48.21 ▼9.33 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 53.60 ▲10.31 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 83.43 ▼16.86 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 36.78 ▲1.93 |
SVG Favicon /wp-admin/themes.php?page=svg-favicon | 3.69 | 33.70 |
Server storage [IO: ▲0.34MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
SVG Favicon: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.25 ▼1.10 | 7.53 ▲6.03 | 41.24 ▲1.43 |
Dashboard /wp-admin | 2,196 ▲22 | 5.50 ▼0.10 | 80.63 ▼4.28 | 37.02 ▼7.17 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.03 ▲0.06 | 39.60 ▲5.48 | 37.08 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,529 ▼15 | 23.43 ▲5.13 | 660.42 ▲29.89 | 50.38 ▼17.14 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.26 ▲0.05 | 93.49 ▼12.31 | 44.92 ▲1.42 |
SVG Favicon /wp-admin/themes.php?page=svg-favicon | 1,649 | 3.10 | 53.21 | 43.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/svg-favicon/vendor/enshrined/svg-sanitize/src/svg-scanner.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'FOF\\SVGFAVICON\\Traits\\Singleton' not found in wp-content/plugins/svg-favicon/inc/classes/KERNEL.php on line 19
- > PHP Warning
array_values() expects parameter 1 to be array, null given in wp-content/plugins/svg-favicon/vendor/enshrined/svg-sanitize/src/svg-scanner.php on line 70
- > PHP Fatal error
Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\AttributeInterface' not found in wp-content/plugins/svg-favicon/vendor/enshrined/svg-sanitize/src/data/AllowedAttributes.php:9
- > PHP Fatal error
Uncaught Error: Class 'enshrined\\svgSanitize\\data\\AllowedTags' not found in wp-content/plugins/svg-favicon/inc/classes/tools/SVGAllowedTags.php:5
- > PHP Fatal error
Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\TagInterface' not found in wp-content/plugins/svg-favicon/vendor/enshrined/svg-sanitize/src/data/AllowedTags.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: svg favicon, dark mode, faviconico, svg, favicon
svg-favicon/svg-favicon.php Passed 13 tests
Analyzing the main PHP file in "SVG Favicon" version 1.3
41 characters long description:
Quickly upload a SVG favicon to your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,234 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 749 | 1,011 | 3,089 |
JSON | 2 | 0 | 0 | 87 |
Markdown | 1 | 43 | 0 | 49 |
JavaScript | 3 | 2 | 27 | 5 |
CSS | 5 | 0 | 4 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 29 | 16.38% |
▷ Public methods | 138 | 77.97% |
▷ Protected methods | 23 | 12.99% |
▷ Private methods | 16 | 9.04% |
Functions | 21 | |
▷ Named functions | 3 | 14.29% |
▷ Anonymous functions | 18 | 85.71% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/remove.png | 1.68KB | 0.79KB | ▼ 52.97% |
admin/images/information.png | 2.46KB | 0.62KB | ▼ 74.86% |