Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/favicon-notifications/favicon-notifications.php+37
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.97MB] [CPU: ▼55.30ms] Passed 4 tests
An overview of server-side resources used by Favicon Notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.89 ▼37.03 |
Dashboard /wp-admin | 2.05 ▼1.30 | 10.15 ▼49.14 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.37 ▼42.38 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.21 ▼92.65 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.84 ▼22.80 |
Favicon /wp-admin/options-general.php?page=favicon_settings | 2.05 | 6.67 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_fav_notifications_unread |
wp_fav_notifications_posts |
wp_fav_notifications |
New WordPress options |
---|
widget_recent-comments |
fav_db_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Favicon Notifications
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲147 | 14.02 ▼0.36 | 7.51 ▲5.68 | 39.12 ▼4.38 |
Dashboard /wp-admin | 2,212 ▲21 | 5.86 ▲1.02 | 107.36 ▲4.01 | 38.91 ▼5.23 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 39.02 ▼2.05 | 35.20 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,519 ▼28 | 17.62 ▼0.34 | 637.89 ▲30.93 | 60.01 ▲0.64 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.11 ▼0.12 | 95.00 ▼2.07 | 45.10 ▲2.87 |
Favicon /wp-admin/options-general.php?page=favicon_settings | 1,082 | 1.95 | 32.37 | 25.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/favicon-notifications/favicon-notifications.php+37
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_fav_notifications_posts
- wp_fav_notifications
- wp_fav_notifications_unread
- The uninstall procedure has failed, leaving 7 options in the database
- fav_db_version
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=favicon_settings
- > Notice in wp-content/plugins/favicon-notifications/favicon-notifications.php+46
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=favicon_settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=favicon_settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/favicon-notifications/favicon-notifications.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
favicon-notifications/favicon-notifications.php Passed 13 tests
Analyzing the main PHP file in "Favicon Notifications" version 0.3
53 characters long description:
Animate your favicon with animated notification badge
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 detected1,372 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 17 | 42 | 510 |
PHP | 5 | 105 | 66 | 460 |
CSS | 1 | 68 | 23 | 379 |
Markdown | 1 | 12 | 0 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin