Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼3.15ms] Passed 4 tests
Analyzing server-side resources used by Quick Favicon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 39.10 ▼1.39 |
Dashboard /wp-admin | 3.68 ▲0.38 | 48.77 ▼0.03 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 51.07 ▲5.64 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 94.36 ▼12.21 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 35.78 ▲1.03 |
Icons /wp-admin/themes.php?page=icon_settings | 3.59 | 39.13 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Quick Favicon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.18 ▼1.26 | 1.66 ▼0.05 | 39.24 ▼11.24 |
Dashboard /wp-admin | 2,213 ▲25 | 5.00 ▼0.90 | 98.29 ▼6.71 | 38.57 ▼7.39 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.04 | 39.51 ▲2.15 | 35.27 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 18.27 ▼5.15 | 608.61 ▼19.54 | 56.17 ▲4.08 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.07 | 99.89 ▲3.94 | 43.87 ▲2.04 |
Icons /wp-admin/themes.php?page=icon_settings | 2,721 | 3.26 | 50.35 | 50.41 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=icon_settings
- > Notice in wp-content/plugins/quick-favicon/quickfavicon.php+2002
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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-favicon/quickfavicon.php on line 27
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-favicon/quickfavicon.php on line 27
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/quick-favicon/quickfavicon.php on line 27
- > 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 browser errors
- > GET request to /wp-admin/themes.php?page=icon_settings
- > Javascript (severe) in unknown
/wp-content/plugins/quick-favicon/js/quickfavicon.min.js?ver=0.22.4 2:33 Uncaught TypeError: Cannot read properties of undefined (reading 'model')
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
quick-favicon/quickfavicon.php 85% from 13 tests
This is the main PHP file of "Quick Favicon" version 0.22.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quick-favicon.php" instead of "quickfavicon.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 243 characters long)
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
No dangerous file extensions were detected16,721 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 135 | 62 | 8,465 |
JavaScript | 6 | 742 | 263 | 6,436 |
PHP | 1 | 320 | 352 | 1,532 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.37MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/transparency-bg.png | 1.19KB | 0.11KB | ▼ 90.60% |
img/bootstrap-colorpicker/hue-horizontal.png | 2.77KB | 0.47KB | ▼ 83.15% |
img/bootstrap-colorpicker/saturation.png | 8.61KB | 5.13KB | ▼ 40.41% |
img/android-preview-bg.png | 73.30KB | 29.76KB | ▼ 59.39% |
(invalid) img/hue.png | 32.37KB | 0.00KB | ▼ 100.00% |