Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼35.64ms] Passed 4 tests
This is a short check of server-side resources used by OneSignal Sender
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.91 ▼1.55 |
Dashboard /wp-admin | 3.00 ▼0.31 | 21.61 ▼31.11 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 25.27 ▼24.62 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 27.46 ▼76.74 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 24.54 ▼10.09 |
OneSignal Sender /wp-admin/admin.php?page=SP_menu_ | 3.00 | 24.09 |
Sent /wp-admin/admin.php?page=oss_sent_notifications | 3.00 | 22.77 |
Settings /wp-admin/admin.php?page=oss_settings_page_options | 3.00 | 23.71 |
Overview /wp-admin/admin.php?page=oss_general_overview | 3.00 | 23.18 |
New Message /wp-admin/admin.php?page=oss_send_notifications | 3.00 | 18.78 |
Scheduled /wp-admin/admin.php?page=oss_all_notifications | 3.00 | 23.49 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OneSignal Sender
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.31 ▼0.07 | 1.75 ▲0.10 | 43.40 ▲1.54 |
Dashboard /wp-admin | 2,272 ▲69 | 5.84 ▲0.99 | 117.43 ▲11.82 | 37.66 ▼10.22 |
Posts /wp-admin/edit.php | 2,157 ▲54 | 2.93 ▲0.89 | 46.30 ▲7.48 | 36.75 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,569 ▲38 | 23.67 ▲0.30 | 600.38 ▼70.18 | 33.95 ▼18.91 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 5.34 ▲1.13 | 103.56 ▲2.10 | 41.19 ▼0.06 |
OneSignal Sender /wp-admin/admin.php?page=SP_menu_ | 907 | 2.88 | 29.26 | 40.31 |
Sent /wp-admin/admin.php?page=oss_sent_notifications | 907 | 2.79 | 31.07 | 36.63 |
Settings /wp-admin/admin.php?page=oss_settings_page_options | 886 | 2.89 | 29.71 | 33.38 |
Overview /wp-admin/admin.php?page=oss_general_overview | 901 | 2.90 | 30.13 | 37.93 |
New Message /wp-admin/admin.php?page=oss_send_notifications | 907 | 2.80 | 30.62 | 32.56 |
Scheduled /wp-admin/admin.php?page=oss_all_notifications | 1,783 | 4.32 | 55.19 | 40.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 105 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=oss_all_notifications
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=oss_all_notifications
- > Notice in wp-content/plugins/onesignal-sender/admin_menu/sections/all-nots.php+17
Trying to access array offset on value of type bool
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/onesignal-sender/one-signal-backend.php:14
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: onesignal, dashboard, backend, web push notifications
onesignal-sender/one-signal-backend.php 92% from 13 tests
"OneSignal Sender" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("onesignal-sender.php" instead of "one-signal-backend.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,584 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 39 | 842 | 438 | 6,351 |
PHP | 8 | 228 | 91 | 2,232 |
CSS | 1 | 1 | 3 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin_menu/images/notification-logo.png | 1.23KB | 0.65KB | ▼ 46.66% |
admin_menu/images/close_button.png | 1.44KB | 0.56KB | ▼ 61.27% |