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.27MB] [CPU: ▲4.22ms] Passed 4 tests
A check of server-side resources used by Getback – Optimize & Web Push Notifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 46.29 ▼1.86 |
Dashboard /wp-admin | 3.64 ▲0.33 | 60.51 ▲6.64 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 56.66 ▲8.07 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 96.58 ▲4.04 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 49.15 ▲8.83 |
Server storage [IO: ▲0.20MB] [DB: ▲0.31MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Getback – Optimize & Web Push Notifications
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,169 ▲408 | 14.80 ▲0.13 | 1.67 ▼0.43 | 48.40 ▲4.59 |
Dashboard /wp-admin | 2,575 ▲372 | 6.56 ▲0.70 | 128.11 ▲24.97 | 37.13 ▼1.78 |
Posts /wp-admin/edit.php | 2,445 ▲345 | 3.51 ▲1.54 | 51.70 ▲9.35 | 37.51 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,717 ▲172 | 22.48 ▲1.68 | 605.90 ▼82.65 | 29.88 ▼73.92 |
Media Library /wp-admin/upload.php | 1,650 ▲250 | 4.13 ▼0.01 | 98.29 ▼13.08 | 47.80 ▲0.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/getback-optimize-web-push-notifications/getback_web_push_notifications.php
- > /wp-content/plugins/getback-optimize-web-push-notifications/class-getback-admin.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getback-optimize-web-push-notifications/api/routes.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: webpush, send, push, broadcast, notification
getback-optimize-web-push-notifications/getback_web_push_notifications.php 92% from 13 tests
The main file in "Getback – Optimize & Web Push Notifications" v. 2.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("getback-optimize-web-push-notifications.php" instead of "getback_web_push_notifications.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
Everything looks great! No dangerous files found in this plugin1,246 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 289 | 364 | 1,239 |
JavaScript | 3 | 0 | 3 | 4 |
CSS | 1 | 1 | 4 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 30.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 8 | 12.12% |
▷ Public methods | 59 | 89.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.61% |
Functions | 17 | |
▷ Named functions | 1 | 5.88% |
▷ Anonymous functions | 16 | 94.12% |
Constants | 1 | |
▷ Global constants | 1 | 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
7 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ui-icons_777777_256x240.png | 4.16KB | 4.17KB | 0.00% |
assets/img/ui-icons_555555_256x240.png | 4.16KB | 4.17KB | 0.00% |
assets/img/getback-logo.png | 31.46KB | 30.49KB | ▼ 3.07% |
assets/img/ui-icons_cc0000_256x240.png | 4.16KB | 4.17KB | 0.00% |
assets/img/ui-icons_777620_256x240.png | 4.16KB | 4.17KB | 0.00% |