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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼17.54ms] Passed 4 tests
An overview of server-side resources used by Push Notifications by LaraPush
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 44.10 ▼1.43 |
Dashboard /wp-admin | 3.38 ▲0.03 | 36.56 ▼29.77 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 41.47 ▼12.90 |
Add New Post /wp-admin/post-new.php | 5.63 ▼0.26 | 84.17 ▼24.35 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.76 ▼3.13 |
Larapush Panel /wp-admin/admin.php?page=unlimited-push-notifications-by-larapush | 3.39 | 37.67 |
Settings /wp-admin/admin.php?page=unlimited-push-notifications-by-larapush-settings | 3.43 | 36.04 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Push Notifications by LaraPush
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.37 ▲0.07 | 1.96 ▲0.23 | 49.55 ▲0.95 |
Dashboard /wp-admin | 2,256 ▲82 | 5.68 ▲0.13 | 84.62 ▼3.23 | 83.75 ▲39.63 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 2.05 ▲0.01 | 39.94 ▼0.62 | 34.94 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,575 ▲35 | 17.72 ▼0.57 | 709.46 ▲80.51 | 54.55 ▲4.81 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.18 ▼0.07 | 108.87 ▲5.38 | 83.66 ▲34.00 |
Larapush Panel /wp-admin/admin.php?page=unlimited-push-notifications-by-larapush | 1,599 | 2.39 | 27.34 | 33.00 |
Settings /wp-admin/admin.php?page=unlimited-push-notifications-by-larapush-settings | 915 | 2.04 | 24.56 | 28.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=unlimited-push-notifications-by-larapush-settings
- > Notice in wp-content/plugins/push-notifications-by-larapush/admin/partials/unlimited-push-notifications-by-larapush-admin-settings.php+41
Undefined variable: integration_done
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/push-notifications-by-larapush/public/partials/amp-header.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/push-notifications-by-larapush/public/partials/web-header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/push-notifications-by-larapush/public/partials/amp-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/push-notifications-by-larapush/public/partials/amp-after-body-opening.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/push-notifications-by-larapush/public/partials/amp-style.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("[LaraPush.com](https://larapush.com/ "Self hosted Push Notifications at one-time cost")")
push-notifications-by-larapush/unlimited-push-notifications-by-larapush.php 92% from 13 tests
This is the main PHP file of "Push Notifications by LaraPush" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("push-notifications-by-larapush.php" instead of "unlimited-push-notifications-by-larapush.php")
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
No dangerous file extensions were detected1,304 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 188 | 682 | 1,267 |
JavaScript | 1 | 5 | 27 | 22 |
SVG | 2 | 0 | 0 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 14 | 29.17% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.50% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin