Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼9.03ms] Passed 4 tests
Server-side resources used by Pushdy - Web Push Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 39.57 ▲3.34 |
Dashboard /wp-admin | 3.47 ▲0.12 | 46.54 ▼14.95 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.56 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 81.30 ▼23.31 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.30 ▼0.56 |
Server storage [IO: ▲2.13MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_pushdywidget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Pushdy - Web Push Notifications
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.28 ▼0.07 | 1.94 ▲0.27 | 45.02 ▲5.35 |
Dashboard /wp-admin | 2,213 ▲33 | 5.66 ▲0.06 | 82.72 ▼6.01 | 38.91 ▼2.20 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.04 ▲0.02 | 33.80 ▼5.16 | 35.68 ▼2.80 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,723 | 18.80 ▼4.58 | 941.13 ▲266.65 | 67.47 ▲1.40 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.28 ▲0.03 | 94.47 ▼0.17 | 46.14 ▲3.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_pushdywidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 fix the following items
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pushdy-notifications/pushdy.php
- > /wp-content/plugins/pushdy-notifications/views/config.php
- > /wp-content/plugins/pushdy-notifications/sdk_files/PushdySDKWorker.js.php
- > /wp-content/plugins/pushdy-notifications/pushdy-utils.php
- > /wp-content/plugins/pushdy-notifications/pushdy-admin.php
- > /wp-content/plugins/pushdy-notifications/pushdy-public.php
- > /wp-content/plugins/pushdy-notifications/pushdy-widget.php
- > /wp-content/plugins/pushdy-notifications/pushdy-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
pushdy-notifications/pushdy.php 92% from 13 tests
The primary PHP file in "Pushdy - Web Push Notifications" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pushdy-notifications.php" instead of "pushdy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,153 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 207 | 121 | 1,106 |
SVG | 2 | 0 | 0 | 566 |
JavaScript | 4 | 83 | 97 | 476 |
CSS | 5 | 0 | 453 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 25.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 33 | 75.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/images/settings/https-url.png | 86.63KB | 28.80KB | ▼ 66.75% |
views/images/menu_icon.png | 8.99KB | 4.22KB | ▼ 53.02% |