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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.48MB] [CPU: ▼2.70ms] Passed 4 tests
A check of server-side resources used by Gravitec.net - Web Push Notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 41.77 ▼2.17 |
Dashboard /wp-admin | 3.82 ▲0.52 | 53.50 ▲3.28 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 57.05 ▲2.85 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 86.49 ▼14.75 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 45.02 ▲9.86 |
Header /wp-admin/themes.php?page=custom-header | 3.89 | 41.74 |
Server storage [IO: ▲2.49MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravitec.net - Web Push Notifications
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.72 ▲0.35 | 1.92 ▲0.11 | 40.25 ▼4.76 |
Dashboard /wp-admin | 2,212 ▲41 | 5.60 ▼0.10 | 89.82 ▲0.06 | 80.10 ▲35.80 |
Posts /wp-admin/edit.php | 2,140 ▲43 | 2.03 ▲0.02 | 40.80 ▲1.88 | 34.78 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.64 ▲0.25 | 767.89 ▲122.15 | 38.33 ▼16.86 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.28 ▲0.13 | 96.89 ▼17.62 | 76.14 ▲26.83 |
Header /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bcontrol%5D=header_image | 7,837 | 22.55 | 563.23 | 137.41 |
Header /wp-admin/themes.php?page=custom-header | 1,349 | 3.95 | 56.40 | 82.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/gravitec-net-web-push-notifications/includes/class-gravitecnet-i18n.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/includes/class-gravitecnet-security-helper.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/includes/class-gravitecnet-form.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/includes/class-gravitecnet.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/includes/class-gravitecnet-settings.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/includes/class-gravitecnet-loader.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/admin/views/gravitecnet-admin-page.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/public/class-gravitecnet-public.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/admin/class-gravitecnet-admin.php
- > /wp-content/plugins/gravitec-net-web-push-notifications/sdk_files/sw.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bcontrol%5D=header_image
- > Security (warning) in unknown
/?customize_changeset_uuid=b9a4a50f-04af-4a7b-9349-65e37e4958b5&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (34 tag instead of maximum 10)
gravitec-net-web-push-notifications/gravitecnet.php 85% from 13 tests
The entry point to "Gravitec.net - Web Push Notifications" version 2.9.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gravitec-net-web-push-notifications.php" instead of "gravitecnet.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,818 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 528 | 608 | 2,107 |
CSS | 1 | 68 | 0 | 384 |
SVG | 1 | 0 | 0 | 200 |
JavaScript | 3 | 29 | 28 | 127 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 3 | 1.69% |
▷ Public methods | 169 | 94.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 5.06% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 2.31MB with 1.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/badge.png | 0.65KB | 0.58KB | ▼ 11.21% |
screenshot-3.png | 410.00KB | 116.16KB | ▼ 71.67% |
screenshot-1.png | 157.75KB | 58.38KB | ▼ 62.99% |
admin/images/favicon-32x32.png | 2.27KB | 1.76KB | ▼ 22.54% |
screenshot-2.png | 309.88KB | 83.72KB | ▼ 72.98% |