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
Installer ran successfully
Server metrics [RAM: ▼0.50MB] [CPU: ▼17.66ms] Passed 4 tests
A check of server-side resources used by All push notification for WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 34.70 ▼15.42 |
Dashboard /wp-admin | 3.48 ▲0.18 | 46.39 ▼2.65 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 44.82 ▼0.97 |
Add New Post /wp-admin/post-new.php | 3.36 ▼2.53 | 36.36 ▼51.58 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.17 ▲0.83 |
Custom Notification /wp-admin/admin.php?page=custom-PushNotifications-WP | 3.37 | 32.54 |
Settings /wp-admin/admin.php?page=all-PushNotifications-WP-settings | 3.40 | 44.24 |
All Push Notifications /wp-admin/admin.php?page=all-Pushnotifications-wp | 3.38 | 34.09 |
Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_all_pushnotification_token |
wp_all_pushnotification_logs |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for All push notification for WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.35 ▼0.21 | 1.56 ▼0.59 | 38.42 ▼19.55 |
Dashboard /wp-admin | 2,238 ▲58 | 4.83 ▼0.84 | 85.54 ▼11.01 | 38.57 ▼4.45 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.23 ▲0.29 | 33.02 ▼3.29 | 30.22 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,563 ▲22 | 23.32 ▲0.25 | 673.17 ▼19.74 | 57.31 ▼2.06 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.51 ▲0.21 | 95.40 ▲1.19 | 44.10 ▼0.08 |
Custom Notification /wp-admin/admin.php?page=custom-PushNotifications-WP | 1,049 | 2.20 | 41.75 | 42.80 |
Settings /wp-admin/admin.php?page=all-PushNotifications-WP-settings | 1,296 | 3.32 | 51.35 | 27.85 |
All Push Notifications /wp-admin/admin.php?page=all-Pushnotifications-wp | 971 | 1.88 | 26.40 | 27.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-push-notification/customrest-api-url.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-push-notification/all-push-notification-for-wp.php:9
- > 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/all-push-notification/pushnotification-admin/class-pushnotification-admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-push-notification/pushnotification/class-pushnotification.php:2
- > 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/all-push-notification/pushnotification-admin/class-pushnotification-admin.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-push-notification/pushnotification-admin/class-pushnotification-admin.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=custom-PushNotifications-WP
- > Network (severe)
wp-content/plugins/all-push-notification/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=custom-PushNotifications-WP
- > Network (severe)
wp-content/plugins/all-push-notification/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=custom-PushNotifications-WP
- > Network (severe)
wp-content/plugins/all-push-notification/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
all-push-notification/all-push-notification-for-wp.php 85% from 13 tests
The primary PHP file in "All push notification for WP" version 1.5.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("all-push-notification.php" instead of "all-push-notification-for-wp.php")
- Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,304 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 221 | 82 | 1,152 |
CSS | 6 | 33 | 82 | 1,149 |
JavaScript | 3 | 0 | 19 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |
css/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |