Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/pushpro-push-notifications/includes/class-pushpro-connection.php+6
The use statement with non-compound name 'Requests' has no effect
Server metrics [RAM: ▼1.92MB] [CPU: ▼52.62ms] Passed 4 tests
A check of server-side resources used by PushPro - Push Notifications for WordPress and WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.38 ▼35.77 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.94 ▼46.53 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.40 ▼43.64 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.50 ▼84.54 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 8.43 ▼31.20 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by PushPro - Push Notifications for WordPress and WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.27 ▼1.17 | 1.64 ▼0.14 | 38.41 ▼1.93 |
Dashboard /wp-admin | 2,213 ▲28 | 4.95 ▲0.07 | 97.17 ▼15.07 | 83.80 ▲38.47 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.22 ▲0.21 | 33.50 ▼3.27 | 34.39 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,686 ▲156 | 22.28 ▼0.74 | 677.24 ▲13.29 | 38.89 ▼20.82 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.34 ▲0.15 | 104.46 ▼0.79 | 49.87 ▲6.71 |
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
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/pushpro-push-notifications/includes/class-pushpro-connection.php+6
The use statement with non-compound name 'Requests' has no effect
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
The use statement with non-compound name 'Requests' has no effect in wp-content/plugins/pushpro-push-notifications/includes/class-pushpro-connection.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Pushpro_Basic' not found in wp-content/plugins/pushpro-push-notifications/admin/class-pushpro-admin.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pushpro_Basic' not found in wp-content/plugins/pushpro-push-notifications/public/class-pushpro-public.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
2 plugin tags: marketing automation, web push notification
pushpro-push-notifications/pushpro.php 85% from 13 tests
The main PHP file in "PushPro - Push Notifications for WordPress and WooCommerce" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pushpro-push-notifications.php" instead of "pushpro.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 275 characters long)
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 plugin3,853 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 226 | 608 | 3,365 |
PHP | 10 | 91 | 294 | 472 |
CSS | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 32 | 84.21% |
▷ Protected methods | 2 | 5.26% |
▷ Private methods | 4 | 10.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/menu-item-logo.png | 1.23KB | 0.77KB | ▼ 37.47% |
admin/images/full-logo.png | 11.96KB | 5.27KB | ▼ 55.89% |