Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▲9.44ms] Passed 4 tests
An overview of server-side resources used by Push Notifications Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 70.02 ▲32.17 |
Dashboard /wp-admin | 3.49 ▲0.19 | 133.92 ▲84.66 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 56.78 ▲8.17 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 92.50 ▼8.15 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 41.67 ▲5.57 |
Push Notifications /wp-admin/edit.php?post_type=desktop_notification | 3.36 | 41.86 |
Add New Push Notification /wp-admin/post-new.php?post_type=desktop_notification | 3.47 | 56.29 |
Push Notifications Lite /wp-admin/options-general.php?page=emdn_options | 3.28 | 40.56 |
Push Notifications categories /wp-admin/edit-tags.php?taxonomy=desktop_notifications_categories&post_type=desktop_notification | 3.33 | 37.73 |
Server storage [IO: ▲0.11MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Push Notifications Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲81 | 13.23 ▼1.15 | 1.73 ▼0.14 | 41.66 ▼0.36 |
Dashboard /wp-admin | 2,235 ▲50 | 5.80 ▲0.87 | 110.07 ▼1.61 | 39.90 ▼6.84 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▼0.17 | 40.31 ▼1.77 | 34.99 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,562 ▲20 | 23.34 ▲5.19 | 605.86 ▼31.77 | 52.44 ▼6.22 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.19 ▼0.00 | 99.59 ▲2.81 | 41.93 ▲0.13 |
Push Notifications /wp-admin/edit.php?post_type=desktop_notification | 1,088 | 1.93 | 32.30 | 31.76 |
Add New Push Notification /wp-admin/post-new.php?post_type=desktop_notification | 3,004 | 7.95 | 184.11 | 76.76 |
Push Notifications Lite /wp-admin/options-general.php?page=emdn_options | 977 | 2.03 | 22.35 | 33.66 |
Push Notifications categories /wp-admin/edit-tags.php?taxonomy=desktop_notifications_categories&post_type=desktop_notification | 1,294 | 2.14 | 26.30 | 24.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=emdn_options
- > Notice in wp-content/plugins/web-push-notifications-lite/em_desktop_notifications_lite.php+180
Trying to access array offset on value of type bool
SRP 0% 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 items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/web-push-notifications-lite/js/index.php
- > /wp-content/plugins/web-push-notifications-lite/index.php
- > /wp-content/plugins/web-push-notifications-lite/js/sdk/index.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/web-push-notifications-lite/em_desktop_notifications_lite.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== web-push-notifications-lite ===
)
web-push-notifications-lite/em_desktop_notifications_lite.php 85% from 13 tests
The main PHP script in "Push Notifications Lite" version 1.0.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("web-push-notifications-lite.php" instead of "em_desktop_notifications_lite.php")
- Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
Code Analysis 5% from 3 tests
File types 0% from 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
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/web-push-notifications-lite/documentation/Online Documentation For Advanced Plugin.url
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 245 | 32 | 1,079 |
JavaScript | 4 | 438 | 27 | 295 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin