Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/free-web-push-notification/cls/fwpn_push_api.php+183
Non-static method fwpn_eww_epush_lic_class::fwpn_setup() should not be called statically
Server metrics [RAM: ▼1.80MB] [CPU: ▼54.99ms] Passed 4 tests
Analyzing server-side resources used by EPush Notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 6.52 ▼43.64 |
Dashboard /wp-admin | 2.21 ▼1.09 | 8.45 ▼47.26 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 7.50 ▼45.58 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 8.77 ▼83.47 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 6.44 ▼27.83 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_push_notification |
wp_visitor_data |
New WordPress options |
---|
subscriber |
widget_recent-comments |
widget_recent-posts |
fwpn_db_version |
default_post |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
subscriber_api |
Browser metrics Passed 4 tests
An overview of browser requirements for EPush Notifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,010 ▲249 | 15.33 ▲0.94 | 3.84 ▲2.01 | 35.09 ▼10.41 |
Dashboard /wp-admin | 2,379 ▲173 | 6.58 ▲1.68 | 139.14 ▲23.54 | 41.74 ▲0.07 |
Posts /wp-admin/edit.php | 2,281 ▲184 | 3.40 ▲1.39 | 54.46 ▲17.31 | 39.12 ▲4.40 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,707 | 25.96 ▲7.90 | 881.90 ▲250.73 | 38.64 ▼17.72 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.15 ▼0.12 | 83.48 ▼15.78 | 43.63 ▲1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/free-web-push-notification/cls/fwpn_push_api.php+183
Non-static method fwpn_eww_epush_lic_class::fwpn_setup() should not be called statically
- The uninstall procedure failed, leaving 2 tables in the database
- wp_visitor_data
- wp_push_notification
- The uninstall procedure has failed, leaving 10 options in the database
- fwpn_db_version
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- subscriber
- subscriber_api
- widget_theysaidso_widget
- default_post
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-web-push-notification/cls/fwpn_push_register_options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/free-web-push-notification/cls/template/fwpn_push_option.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/free-web-push-notification/cls/fwpn_push_api.php:70
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: push, web push notifications, desktop notifications, push notifications, push api
free-web-push-notification/free-web-push-notification.php Passed 13 tests
The main PHP script in "EPush Notifications" version 1.2 is automatically included on every request by WordPress
90 characters long description:
Excellent Web World is an IT company focus on Web Development and Application Development.
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
Good job! No executable or dangerous file extensions detected874 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 3 | 0 | 655 |
JavaScript | 3 | 0 | 0 | 217 |
CSS | 1 | 0 | 0 | 1 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.08MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/firebase5.png | 108.41KB | 41.04KB | ▼ 62.15% |
img/firebase6.png | 171.76KB | 61.93KB | ▼ 63.94% |
img/firebase4.png | 101.28KB | 39.90KB | ▼ 60.61% |
img/firebase2.png | 171.98KB | 64.58KB | ▼ 62.45% |
img/firebase3.png | 385.83KB | 175.26KB | ▼ 54.58% |