Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲1.47ms] Passed 4 tests
This is a short check of server-side resources used by PushAlert - Web Push Notifications for WordPress and WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 42.91 ▲6.95 |
Dashboard /wp-admin | 3.62 ▲0.31 | 51.64 ▲4.69 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 54.91 ▲4.00 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 87.70 ▼9.78 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 46.28 ▲13.45 |
General Settings /wp-admin/admin.php?page=pushalert-general-settings | 3.51 | 38.83 |
Stats /wp-admin/admin.php?page=pushalert-web-push-notifications | 3.49 | 37.00 |
Send Notification /wp-admin/admin.php?page=pushalert-send-notification | 3.51 | 38.76 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 18 new options
New WordPress options |
---|
_pushalert_woocommerce_enable |
can_compress_scripts |
_pushalert_enable_auto_sw_manifest |
woocommerce_settings_pushalert_confirm_message |
woocommerce_settings_pushalert_association_css |
widget_recent-comments |
woocommerce_settings_pushalert_auto_assoc_yes |
woocommerce_settings_pushalert_dashboard_option |
theysaidso_admin_options |
woocommerce_settings_pushalert_button_no |
... |
Browser metrics Passed 4 tests
PushAlert - Web Push Notifications for WordPress and WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲84 | 14.18 ▼0.20 | 1.98 ▼0.31 | 42.25 ▲3.73 |
Dashboard /wp-admin | 2,252 ▲84 | 5.50 ▼0.13 | 86.46 ▼5.59 | 41.70 ▲0.48 |
Posts /wp-admin/edit.php | 2,156 ▲53 | 1.96 ▼0.01 | 39.82 ▲2.68 | 36.62 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.33 ▲0.36 | 660.61 ▼31.42 | 54.54 ▲2.88 |
Media Library /wp-admin/upload.php | 1,460 ▲57 | 4.21 ▲0.04 | 114.29 ▲13.20 | 48.99 ▲4.10 |
General Settings /wp-admin/admin.php?page=pushalert-general-settings | 976 | 1.69 | 24.91 | 30.45 |
Stats /wp-admin/admin.php?page=pushalert-web-push-notifications | 1,096 | 3.33 | 98.49 | 39.45 |
Send Notification /wp-admin/admin.php?page=pushalert-send-notification | 909 | 2.14 | 23.42 | 25.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 18 options in the database
- _pushalert_version
- woocommerce_settings_pushalert_dashboard_option
- theysaidso_admin_options
- widget_theysaidso_widget
- woocommerce_settings_pushalert_association_css
- pushalert_encrypt_key
- widget_recent-posts
- _pushalert_woocommerce_enable
- woocommerce_settings_pushalert_button_no
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pushalert-web-push-notifications
- > Notice in wp-content/plugins/pushalert-web-push-notifications/pushalert.php+1599
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pushalert-web-push-notifications/pushalert.php:11
- > PHP Notice
Undefined index: elem in wp-content/plugins/pushalert-web-push-notifications/sw.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (22 tag instead of maximum 10)
pushalert-web-push-notifications/pushalert.php 85% from 13 tests
The primary PHP file in "PushAlert - Web Push Notifications for WordPress and WooCommerce" version 2.8.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 225 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pushalert-web-push-notifications.php" instead of "pushalert.php")
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 detected2,250 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 310 | 177 | 1,746 |
CSS | 1 | 64 | 0 | 392 |
JavaScript | 2 | 6 | 5 | 112 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 62 | |
▷ Named functions | 62 | 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
No PNG images were found in this plugin