Benchmarks
Plugin footprint Passed 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.50MB] [CPU: ▼159.09ms] Passed 4 tests
Analyzing server-side resources used by Push Notification Sender for WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 37.83 ▲12.69 |
Dashboard /wp-admin | 3.18 ▲0.12 | 51.07 ▲0.75 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 53.32 ▼9.85 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.42 | 25.67 ▼620.98 |
Media Library /wp-admin/upload.php | 3.12 ▲0.11 | 36.13 ▼6.26 |
Custom Notification /wp-admin/admin.php?page=custom-push-notification-sender | 3.15 | 30.56 |
Settings /wp-admin/admin.php?page=push-notification-sender-settings | 3.18 | 32.28 |
All Push Notifications /wp-admin/admin.php?page=push-notification-sender | 3.12 | 36.89 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: 2 new tables, no new options
New tables |
---|
wp_push_notification_sender_logs |
wp_push_notification_sender_tokens |
Browser metrics Passed 4 tests
Checking browser requirements for Push Notification Sender for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲293 | 16.74 ▲0.85 | 13.50 ▲2.75 | 48.40 ▼8.05 |
Dashboard /wp-admin | 3,033 ▲96 | 6.54 ▲0.38 | 172.15 ▲14.97 | 108.71 ▼8.28 |
Posts /wp-admin/edit.php | 2,806 ▲67 | 2.77 ▲0.05 | 84.68 ▲12.33 | 102.98 ▲7.07 |
Add New Post /wp-admin/post-new.php | 1,651 ▲70 | 21.45 ▲4.00 | 330.79 ▼145.72 | 118.48 ▼10.58 |
Media Library /wp-admin/upload.php | 1,880 ▲70 | 5.25 ▲0.23 | 139.14 ▼24.55 | 115.43 ▼14.73 |
Custom Notification /wp-admin/admin.php?page=custom-push-notification-sender | 1,375 | 2.85 | 70.57 | 74.49 |
Settings /wp-admin/admin.php?page=push-notification-sender-settings | 1,191 | 2.60 | 59.81 | 70.67 |
All Push Notifications /wp-admin/admin.php?page=push-notification-sender | 1,278 | 2.59 | 58.31 | 62.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/push-notification-sender/admin/api/class-push-notification-sender-api.php:15
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/push-notification-sender/admin/class-push-notification-sender-list-table.php on line 16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/push-notification-sender/admin/class-push-notification-sender-list-table.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/push-notification-sender/admin/partials/push-notification-sender-list-display.php:17
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/push-notification-sender/admin/class-push-notification-sender-list-table.php on line 16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=push-notification-sender
- > Network (severe)
wp-content/plugins/push-notification-sender/admin/css/jquery-ui-min.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Admin Settings page.), #2 (Admin Send custom push notification manually.), #3 (List of Sent notifications in Admin Panel.)
- Tags: You are using too many tags: 18 tag instead of maximum 10
push-notification-sender/push-notification-sender.php Passed 13 tests
"Push Notification Sender for WP" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,488 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 309 | 876 | 1,437 |
JavaScript | 4 | 13 | 63 | 46 |
CSS | 7 | 1 | 29 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 3 | 6.12% |
▷ Public methods | 44 | 89.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.20% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG images were not found in this plugin