Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼3.53ms] Passed 4 tests
This is a short check of server-side resources used by Pushe Web Push Notification
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 38.58 ▼1.46 |
Dashboard /wp-admin | 3.65 ▲0.35 | 48.07 ▼6.72 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 48.28 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 86.37 ▼3.74 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 36.95 ▼2.20 |
Modal Options /wp-admin/admin.php?page=pushe_modal_options | 3.48 | 35.78 |
Settings /wp-admin/admin.php?page=pushe_settings | 3.48 | 33.61 |
Bell Options /wp-admin/admin.php?page=pushe_bell_options | 3.48 | 32.80 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
pushe_webpush_modal_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Pushe Web Push Notification
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.60 ▼1.03 | 1.62 ▼0.16 | 41.62 ▼8.11 |
Dashboard /wp-admin | 2,234 ▲43 | 5.79 ▲0.89 | 94.56 ▼21.47 | 40.17 ▼0.28 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 1.99 ▲0.01 | 33.44 ▼8.55 | 32.30 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,540 ▲23 | 17.61 ▲0.12 | 702.13 ▲32.38 | 54.82 ▼3.91 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.21 ▲0.01 | 105.67 ▲6.98 | 45.60 ▼0.01 |
Modal Options /wp-admin/admin.php?page=pushe_modal_options | 1,044 | 2.06 | 29.01 | 34.04 |
Settings /wp-admin/admin.php?page=pushe_settings | 876 | 2.18 | 21.90 | 27.38 |
Bell Options /wp-admin/admin.php?page=pushe_bell_options | 897 | 2.15 | 22.88 | 28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pushe-webpush/pushe-webpush.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Inc\\api\\callbacks\\BaseCallbacks' not found in wp-content/plugins/pushe-webpush/inc/api/callbacks/ModalOptionsCallback.php:11
- > PHP Fatal error
Uncaught Error: Class 'Inc\\base\\BaseController' not found in wp-content/plugins/pushe-webpush/inc/base/SettingsLinks.php:10
- > PHP Fatal error
Uncaught Error: Class 'Inc\\api\\callbacks\\BaseCallbacks' not found in wp-content/plugins/pushe-webpush/inc/api/callbacks/BellOptionsCallback.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pushe-webpush/templates/bellOptions.php:2
- > PHP Fatal error
Uncaught Error: Class 'Inc\\base\\BaseController' not found in wp-content/plugins/pushe-webpush/inc/base/Enqueue.php:10
- > PHP Fatal error
Uncaught Error: Class 'Inc\\base\\BaseController' not found in wp-content/plugins/pushe-webpush/inc/pages/AdminPages.php:15
- > PHP Fatal error
Uncaught Error: Class 'Inc\\api\\callbacks\\BaseCallbacks' not found in wp-content/plugins/pushe-webpush/inc/api/callbacks/SettingsCallbacks.php:9
- > PHP Fatal error
Uncaught Error: Class 'Inc\\base\\BaseController' not found in wp-content/plugins/pushe-webpush/inc/api/callbacks/BaseCallbacks.php:10
- > PHP Fatal error
Uncaught Error: Class 'Inc\\base\\BaseController' not found in wp-content/plugins/pushe-webpush/inc/base/WebpushScripts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pushe-webpush/templates/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Contributors: The plugin contributors field is missing
pushe-webpush/pushe-webpush.php Passed 13 tests
The primary PHP file in "Pushe Web Push Notification" version 0.5.0 is used by WordPress to initiate all plugin functionality
49 characters long description:
Official Pushe.co's webpush plugin for wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,584 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 242 | 249 | 1,329 |
PO File | 1 | 45 | 54 | 108 |
CSS | 1 | 13 | 0 | 77 |
Markdown | 1 | 19 | 0 | 30 |
JavaScript | 2 | 2 | 0 | 23 |
JSON | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 72 | |
▷ Static methods | 9 | 12.50% |
▷ Public methods | 68 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.56% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin