Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.16ms] Passed 4 tests
This is a short check of server-side resources used by Push Notifications for WordPress (Lite)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 39.60 ▼4.25 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.25 ▼0.87 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.79 ▼1.47 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 99.27 ▲0.82 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.32 ▼2.04 |
OAuth /wp-admin/admin.php?page=pnfw-oauth-identifier | 3.31 | 31.06 |
Push Notifications /wp-admin/admin.php?page=push-notifications-for-wordpress | 3.28 | 30.25 |
Debug /wp-admin/admin.php?page=pnfw-debug-identifier | 3.33 | 31.98 |
Tokens /wp-admin/admin.php?page=pnfw-tokens-identifier | 3.34 | 31.99 |
App Subscribers /wp-admin/admin.php?page=pnfw-app-subscribers-identifier | 3.35 | 33.55 |
Settings /wp-admin/admin.php?page=pnfw-settings-identifier | 3.53 | 38.58 |
Server storage [IO: ▲0.97MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 241 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_push_excluded_categories |
wp_push_tokens |
wp_push_logs |
wp_push_encryption_keys |
wp_push_viewed |
wp_push_sent |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
pnfw_posts_per_page |
widget_theysaidso_widget |
pnfw_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Push Notifications for WordPress (Lite)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.63 ▼0.63 | 1.81 ▼0.36 | 43.30 ▼2.67 |
Dashboard /wp-admin | 2,253 ▲62 | 4.93 ▲0.03 | 97.20 ▼5.10 | 75.85 ▲30.49 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 1.98 ▼0.00 | 34.67 ▼6.15 | 35.32 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 23.24 ▲5.66 | 635.24 ▼26.69 | 63.31 ▲10.42 |
Media Library /wp-admin/upload.php | 1,429 ▲38 | 4.07 ▼0.11 | 97.28 ▼11.73 | 75.29 ▲28.92 |
OAuth /wp-admin/admin.php?page=pnfw-oauth-identifier | 824 | 2.06 | 26.80 | 24.03 |
Push Notifications /wp-admin/admin.php?page=push-notifications-for-wordpress | 827 | 2.01 | 25.33 | 29.00 |
Debug /wp-admin/admin.php?page=pnfw-debug-identifier | 981 | 2.02 | 23.99 | 30.57 |
Tokens /wp-admin/admin.php?page=pnfw-tokens-identifier | 1,001 | 2.06 | 27.31 | 28.87 |
App Subscribers /wp-admin/admin.php?page=pnfw-app-subscribers-identifier | 974 | 2.05 | 23.25 | 28.04 |
Settings /wp-admin/admin.php?page=pnfw-settings-identifier | 1,155 | 3.11 | 38.68 | 64.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 6 tables
- wp_push_logs
- wp_push_excluded_categories
- wp_push_encryption_keys
- wp_push_sent
- wp_push_tokens
- wp_push_viewed
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- pnfw_posts_per_page
- pnfw_db_version
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 95× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DeliteStudio\\Brick\\Math\\BigNumber' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/Brick/Math/BigInteger.php:22
- > PHP Fatal error
Uncaught Error: Class 'DeliteStudio\\Jose\\Component\\Signature\\Serializer\\Serializer' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/Jose/Component/Signature/Serializer/CompactSerializer.php:24
- > PHP Fatal error
Uncaught Error: Interface 'DeliteStudio\\Jose\\Component\\Core\\JWT' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/Jose/Component/Signature/JWS.php:20
- > PHP Fatal error
Uncaught Error: Class 'DeliteStudio\\FG\\ASN1\\Universal\\ObjectIdentifier' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/FG/ASN1/Universal/RelativeObjectIdentifier.php:18
- > PHP Fatal error
Uncaught Error: Class 'DeliteStudio\\FG\\ASN1\\ASNObject' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/FG/ASN1/AbstractTime.php:18
- > PHP Fatal error
Uncaught Error: Class 'DeliteStudio\\FG\\ASN1\\AbstractString' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/FG/ASN1/Universal/PrintableString.php:16
- > PHP Fatal error
Uncaught Error: Interface 'DeliteStudio\\Jose\\Component\\Signature\\Serializer\\JWSSerializer' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/Jose/Component/Signature/Serializer/Serializer.php:18
- > PHP Fatal error
Uncaught Error: Class 'DeliteStudio\\FG\\ASN1\\Universal\\GraphicString' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/FG/ASN1/Universal/ObjectDescriptor.php:15
- > PHP Fatal error
Uncaught Error: Class 'DeliteStudio\\FG\\ASN1\\ASNObject' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/FG/ASN1/ExplicitlyTaggedObject.php:32
- > PHP Fatal error
Uncaught Error: Interface 'DeliteStudio\\Jose\\Component\\KeyManagement\\Analyzer\\KeyAnalyzer' not found in wp-content/plugins/push-notifications-for-wp/src/DeliteStudio/Jose/Component/KeyManagement/Analyzer/OctAnalyzer.php:19
- > PHP Fatal error
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 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== push-notifications-for-wp ===
)
push-notifications-for-wp/push-notifications-for-wp.php Passed 13 tests
The main file in "Push Notifications for WordPress (Lite)" v. 6.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Send push notifications to iOS and Android devices when you publish a new post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected17,222 lines of code in 230 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 4,488 | 8,135 | 16,248 |
JSON | 5 | 0 | 0 | 934 |
Markdown | 4 | 24 | 0 | 36 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 27 | |
Traits | 0 | |
Classes | 186 | |
▷ Abstract classes | 15 | 8.06% |
▷ Concrete classes | 171 | 91.94% |
▷ Final classes | 32 | 18.71% |
Methods | 1,412 | |
▷ Static methods | 244 | 17.28% |
▷ Public methods | 1,086 | 76.91% |
▷ Protected methods | 133 | 9.42% |
▷ Private methods | 193 | 13.67% |
Functions | 63 | |
▷ Named functions | 23 | 36.51% |
▷ Anonymous functions | 40 | 63.49% |
Constants | 171 | |
▷ Global constants | 15 | 8.77% |
▷ Class constants | 156 | 91.23% |
▷ Public constants | 148 | 94.87% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/icon-menu.png | 0.29KB | 0.20KB | ▼ 32.45% |