Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▲1.21ms] Passed 4 tests
Server-side resources used by Web Push Notifications - Webpushr
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.84 ▲2.29 |
Dashboard /wp-admin | 3.50 ▲0.20 | 48.24 ▲1.39 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 47.25 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.64 ▼0.25 | 931.78 ▲843.64 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 36.03 ▲2.45 |
Server storage [IO: ▲2.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Web Push Notifications - Webpushr
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.26 ▼0.01 | 1.74 ▲0.12 | 36.98 ▼5.86 |
Dashboard /wp-admin | 2,213 ▲33 | 5.53 ▼0.07 | 81.68 ▼5.31 | 42.47 ▲3.46 |
Posts /wp-admin/edit.php | 2,118 ▲21 | 2.01 ▼0.01 | 33.91 ▼1.77 | 34.72 ▼1.19 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,710 | 25.83 ▲2.90 | 819.86 ▲171.80 | 49.56 ▼2.48 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.22 ▼0.16 | 97.51 ▼9.37 | 43.68 ▼1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/webpushr-web-push-notifications/include/woocommerce/webpushr_woo_menu.php
- > /wp-content/plugins/webpushr-web-push-notifications/sdk_files/webpushr-sw.js.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/webpushr-web-push-notifications/include/woocommerce/sale_price.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/webpushr-web-push-notifications/include/woocommerce/new_product.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/webpushr-web-push-notifications/include/woocommerce/price_drop.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/webpushr-web-push-notifications/include/woocommerce/abandoned_cart.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
webpushr-web-push-notifications/push.php 92% from 13 tests
This is the main PHP file of "Web Push Notifications - Webpushr" version 4.35.0, 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: Name the main plugin file the same as the plugin slug ("webpushr-web-push-notifications.php" instead of "push.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected28,016 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 2,608 | 369 | 22,238 |
JavaScript | 8 | 955 | 383 | 3,725 |
PHP | 16 | 440 | 114 | 2,012 |
SVG | 1 | 0 | 0 | 41 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 1 | 12.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 1 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/check_mark.png | 2.86KB | 0.33KB | ▼ 88.35% |
images/delete.png | 0.50KB | 0.40KB | ▼ 20.23% |
images/android_icon.png | 7.62KB | 2.80KB | ▼ 63.31% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |