Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.58MB] [CPU: ▼33.68ms] Passed 4 tests
This is a short check of server-side resources used by ReachDrip - Web Push Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 46.70 ▲7.88 |
Dashboard /wp-admin | 3.38 ▲0.03 | 33.90 ▼31.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 33.71 ▼25.58 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.51 | 32.66 ▼73.97 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.18 ▼3.38 |
ReachDrip /wp-admin/admin.php?page=reachdrip-admin | 3.38 | 31.62 |
Create Account /wp-admin/admin.php?page=reachdrip-create-account | 3.38 | 30.10 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by ReachDrip - Web Push Notifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.16 ▼0.23 | 1.78 ▲0.00 | 44.90 ▲0.76 |
Dashboard /wp-admin | 2,238 ▲58 | 5.80 ▲0.17 | 97.90 ▲4.92 | 85.55 ▲44.66 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.98 ▲0.96 | 37.02 ▼2.64 | 34.45 ▼7.56 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 24.08 ▲0.87 | 720.80 ▲45.74 | 38.39 ▼20.51 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 5.39 ▲1.19 | 106.45 ▲4.57 | 82.38 ▲38.25 |
ReachDrip /wp-admin/admin.php?page=reachdrip-admin | 2,796 | 3.70 | 52.39 | 54.58 |
Create Account /wp-admin/admin.php?page=reachdrip-create-account | 2,796 | 3.84 | 52.87 | 34.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/reachdrip-web-push-notifications/admin/class-reachdrip-admin.php+651
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=reachdrip-create-account
- > Notice in wp-content/plugins/reachdrip-web-push-notifications/admin/class-reachdrip-admin.php+763
Trying to access array offset on value of type bool
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/reachdrip-web-push-notifications/public/partials/reachdrip-public-display.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-subscribers-stats.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-create-account.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-new-notification.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-segment-list.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-dashboard.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-notification-history.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/reachdrip-web-push-notifications/admin/class-reachdrip-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-campaign.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-new-segments.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reachdrip-web-push-notifications/admin/partials/reachdrip-setting.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
- Tags: There are too many tags (47 tag instead of maximum 10)
reachdrip-web-push-notifications/reachdrip.php 85% from 13 tests
The entry point to "ReachDrip - Web Push Notifications" version 2.0.1 is a PHP file that has certain tags in its header comment area
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 ("reachdrip-web-push-notifications.php" instead of "reachdrip.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
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
Success! There were no dangerous files found in this plugin7,681 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 1,093 | 653 | 3,296 |
JavaScript | 5 | 178 | 505 | 2,332 |
CSS | 2 | 133 | 43 | 1,228 |
PO File | 2 | 353 | 567 | 825 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 38.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 231.00 |
Average method complexity | 5.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.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 | 63 | |
▷ Static methods | 35 | 55.56% |
▷ Public methods | 58 | 92.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.94% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/reachdrip.png | 0.98KB | 0.67KB | ▼ 31.70% |
admin/images/flags.png | 67.65KB | 23.60KB | ▼ 65.12% |
admin/images/flags@2x.png | 169.54KB | 64.26KB | ▼ 62.10% |