Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.04MB] [CPU: ▼146.05ms] Passed 4 tests
Analyzing server-side resources used by Web Push Notification
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▲0.08 | 26.01 ▲3.25 |
Dashboard /wp-admin | 3.13 ▲0.07 | 47.37 ▲4.60 |
Posts /wp-admin/edit.php | 3.19 ▲0.07 | 45.33 ▲3.00 |
Add New Post /wp-admin/post-new.php | 5.04 ▼0.40 | 77.23 ▼583.87 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 25.41 ▼6.56 |
Push Notif /wp-admin/options-general.php?page=web-push-notifications-main-menu | 3.02 | 23.84 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
web-push-notifications |
Browser metrics Passed 4 tests
Checking browser requirements for Web Push Notification
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲54 | 15.93 ▲0.35 | 8.52 ▼3.77 | 49.60 ▼0.70 |
Dashboard /wp-admin | 2,976 ▲45 | 5.91 ▼0.22 | 139.86 ▼13.01 | 108.96 ▼8.63 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.73 ▲0.01 | 70.07 ▲0.26 | 90.75 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,668 ▲64 | 21.89 ▲3.28 | 271.54 ▼138.25 | 117.00 ▲12.04 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.04 ▲0.03 | 137.74 ▼14.66 | 116.88 ▲5.86 |
Push Notif /wp-admin/options-general.php?page=web-push-notifications-main-menu | 1,209 | 2.34 | 55.55 | 83.60 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- web-push-notifications
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
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=web-push-notifications-main-menu
- > Notice in wp-content/plugins/web-push-notification/wpn/wpn.php+193
Undefined index: pluginPublicKey
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=web-push-notifications-main-menu
- > Notice in wp-content/plugins/web-push-notification/wpn/wpn.php+286
Undefined index: pluginPrivateKey
- > GET request to /wp-admin/options-general.php?page=web-push-notifications-main-menu
- > Notice in wp-content/plugins/web-push-notification/wpn/wpn.php+199
Undefined index: pluginTestingKey
- > GET request to /wp-admin/options-general.php?page=web-push-notifications-main-menu
- > Notice in wp-content/plugins/web-push-notification/wpn/wpn.php+276
Undefined index: actionMessage
- > GET request to /wp-admin/options-general.php?page=web-push-notifications-main-menu
- > Notice in wp-content/plugins/web-push-notification/wpn/wpn.php+278
Undefined index: actionMessageInterval
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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web-push-notification/wpn/wpn.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Edit post), #2 (Front end), #3 (Settings)
web-push-notification/index.php 92% from 13 tests
The main file in "Web Push Notification" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("web-push-notification.php" instead of "index.php")
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 plugin672 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 13 | 37 | 277 |
CSS | 2 | 3 | 0 | 192 |
JavaScript | 2 | 4 | 2 | 137 |
PO File | 1 | 25 | 25 | 66 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
6 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 57.24KB | 23.67KB | ▼ 58.64% |
screenshot-1.png | 65.49KB | 30.54KB | ▼ 53.37% |
wpn/images/32.png | 0.84KB | 0.68KB | ▼ 19.31% |
screenshot-2.png | 57.73KB | 25.52KB | ▼ 55.81% |
wpn/images/16.png | 0.46KB | 0.42KB | ▼ 9.75% |