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
Install script ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▲1.49ms] Passed 4 tests
A check of server-side resources used by Push Notifications for WordPress by PushAssist
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 41.14 ▲0.28 |
Dashboard /wp-admin | 3.87 ▲0.52 | 54.95 ▼11.94 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 59.96 ▲14.57 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 105.82 ▲4.45 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 49.58 ▲13.15 |
PushAssist /wp-admin/admin.php?page=pushassist-admin | 3.73 | 40.61 |
Create Account /wp-admin/admin.php?page=pushassist-create-account | 3.73 | 38.44 |
Server storage [IO: ▲4.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Push Notifications for WordPress by PushAssist: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.61 ▼0.62 | 1.69 ▼0.45 | 37.46 ▼4.87 |
Dashboard /wp-admin | 2,222 ▲43 | 5.86 ▲0.04 | 110.36 ▲2.38 | 79.45 ▲36.18 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.02 ▲0.02 | 40.09 ▲1.17 | 35.68 ▲3.32 |
Add New Post /wp-admin/post-new.php | 1,538 ▲8 | 17.57 ▼5.33 | 767.93 ▲181.32 | 56.97 ▼8.55 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.21 ▼0.01 | 103.84 ▲1.52 | 66.59 ▲23.36 |
PushAssist /wp-admin/admin.php?page=pushassist-admin | 2,851 | 3.88 | 73.16 | 86.88 |
Create Account /wp-admin/admin.php?page=pushassist-create-account | 2,854 | 4.17 | 71.37 | 38.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-admin-display.php
- > /wp-content/plugins/push-notification-for-wp-by-pushassist/public/partials/pushassist-public-display.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-create-account.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-amp-integration-steps.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-welcome-message-setting.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-campaign.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/class-pushassist-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-subscribers.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-segments.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-setting.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-custom-setting.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-notification-for-wp-by-pushassist/admin/partials/pushassist-dashboard.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #7 in push-notification-for-wp-by-pushassist/assets to your readme.txt
- Tags: You are using too many tags: 51 tag instead of maximum 10
push-notification-for-wp-by-pushassist/pushassist.php 85% from 13 tests
The main file in "Push Notifications for WordPress by PushAssist" v. 3.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("push-notification-for-wp-by-pushassist.php" instead of "pushassist.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
No dangerous file extensions were detected8,884 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,520 | 806 | 6,882 |
PO File | 2 | 353 | 567 | 825 |
SVG | 2 | 0 | 0 | 797 |
JavaScript | 15 | 7 | 57 | 198 |
HTML | 3 | 17 | 14 | 168 |
CSS | 13 | 0 | 7 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 56.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 342.00 |
Average method complexity | 6.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.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 | 72 | |
▷ Static methods | 44 | 61.11% |
▷ Public methods | 67 | 93.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 PNG files occupy 0.88MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo-login.png | 1.81KB | 0.75KB | ▼ 58.75% |
admin/images/setting-icons/price-drop.png | 2.48KB | 1.12KB | ▼ 54.91% |
admin/images/setting-icons/promo-icon.png | 3.61KB | 1.79KB | ▼ 50.42% |
admin/images/setting-icons/order-delivery-notifications.png | 2.92KB | 1.62KB | ▼ 44.34% |
admin/images/btn_icon_yes.png | 1.00KB | 0.25KB | ▼ 74.61% |