Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/3xpush/includes/class-xpush-admin.php+280
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.70MB] [CPU: ▼192.33ms] Passed 4 tests
A check of server-side resources used by 3xpush - PUSH sending and monetization (HTTPS)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.93 ▼0.79 | 6.55 ▼17.37 |
Dashboard /wp-admin | 1.95 ▼1.11 | 5.66 ▼43.14 |
Posts /wp-admin/edit.php | 1.95 ▼1.16 | 7.65 ▼41.68 |
Add New Post /wp-admin/post-new.php | 1.95 ▼3.49 | 6.75 ▼653.62 |
Media Library /wp-admin/upload.php | 1.95 ▼1.05 | 6.16 ▼30.86 |
3XPUSH /wp-admin/options-general.php?page=xpush-settings | 1.95 | 5.44 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Illegal file modification found: 1 file (0.10KB) outside of "wp-content/plugins/3xpush/" and "wp-content/uploads/"
- (new file) firebase-messaging-sw.js
Filesystem: 50 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_xpush_dispatch |
New WordPress options |
---|
xpush_active |
Browser metrics Passed 4 tests
3xpush - PUSH sending and monetization (HTTPS): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲139 | 16.03 ▲0.39 | 11.26 ▲1.11 | 50.54 ▼2.98 |
Dashboard /wp-admin | 2,995 ▲59 | 6.20 ▲0.27 | 143.04 ▼29.04 | 121.93 ▲3.59 |
Posts /wp-admin/edit.php | 2,787 ▲48 | 2.74 ▲0.02 | 65.08 ▼5.70 | 93.65 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,663 ▲163 | 22.44 ▲3.95 | 287.64 ▼94.23 | 119.80 ▲13.42 |
Media Library /wp-admin/upload.php | 1,780 ▼27 | 5.03 ▲0.01 | 129.41 ▼20.45 | 154.80 ▲25.49 |
3XPUSH /wp-admin/options-general.php?page=xpush-settings | 1,646 | 4.31 | 83.93 | 112.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/3xpush/includes/class-xpush-admin.php+280
Array and string offset access syntax with curly braces is deprecated
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=xpush-settings
- > Deprecated in wp-content/plugins/3xpush/includes/class-xpush-api.php+112
Array and string offset access syntax with curly braces is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=xpush-settings
- > Notice in wp-content/plugins/3xpush/templates/settings-page.php+57
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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/3xpush/templates/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/3xpush/templates/settings-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/3xpush/templates/notice.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: push, sending
3xpush/3xpush.php 92% from 13 tests
The entry point to "3xpush - PUSH sending and monetization (HTTPS)" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 218 characters long)
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
There were no executable files found in this plugin8,459 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1,044 | 64 | 5,708 |
JavaScript | 8 | 334 | 357 | 1,658 |
PHP | 12 | 215 | 10 | 855 |
PO File | 2 | 108 | 124 | 238 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 31 | 67.39% |
▷ Protected methods | 9 | 19.57% |
▷ Private methods | 6 | 13.04% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/jquery-ui-smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
assets/images/jquery-ui-smoothness/ui-icons_454545_256x240.png | 6.91KB | 4.18KB | ▼ 39.44% |
assets/images/default-icon.png | 9.90KB | 5.00KB | ▼ 49.49% |
assets/images/jquery-ui-smoothness/ui-bg_glass_55_fbf9ee_1x400.png | 0.37KB | 0.12KB | ▼ 66.04% |
assets/images/jquery-ui-smoothness/ui-bg_glass_65_ffffff_1x400.png | 0.24KB | 0.09KB | ▼ 64.23% |