Benchmarks
Plugin footprint 65% 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: ▲3.38MB] [CPU: ▲36.58ms] Passed 4 tests
A check of server-side resources used by Push Notification for Post and BuddyPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.83 ▲3.37 | 73.61 ▲31.93 |
Dashboard /wp-admin | 6.69 ▲3.39 | 82.39 ▲32.56 |
Posts /wp-admin/edit.php | 6.74 ▲3.39 | 87.98 ▲40.51 |
Add New Post /wp-admin/post-new.php | 9.27 ▲3.39 | 130.79 ▲41.31 |
Media Library /wp-admin/upload.php | 6.61 ▲3.38 | 76.21 ▲43.70 |
One time push notifications list /wp-admin/admin.php?page=pnfpb_icfm_onetime_notifications_list | 6.59 | 71.89 |
Action scheduler /wp-admin/admin.php?page=pnfpb_icfm_action_scheduler | 6.77 | 76.27 |
NGNIX /wp-admin/admin.php?page=pnfpb_icfm_settings_for_ngnix_server | 6.58 | 69.20 |
Customize Buttons /wp-admin/admin.php?page=pnfpb_icfm_button_settings | 6.74 | 75.98 |
Frontend subscription /wp-admin/admin.php?page=pnfpb_icfm_frontend_settings | 6.56 | 69.29 |
Integrate Mobile App /wp-admin/admin.php?page=pnfpb_icfm_integrate_app | 6.50 | 63.25 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 6.79 | 74.58 |
On demand/One time Notification /wp-admin/admin.php?page=pnfpb_icfmtest_notification | 6.93 | 71.14 |
PWA app /wp-admin/admin.php?page=pnfpb_icfm_pwa_app_settings | 6.74 | 73.44 |
Push settings /wp-admin/admin.php?page=pnfpb-icfcm-slug | 7.11 | 98.68 |
Server storage [IO: ▲7.76MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 925 new files
Database: 6 new tables, 10 new options
New tables |
---|
wp_actionscheduler_logs |
wp_actionscheduler_claims |
wp_actionscheduler_actions |
wp_pnfpb_ic_schedule_push_notifications |
wp_pnfpb_ic_subscribed_deviceids_web |
wp_actionscheduler_groups |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
schema-ActionScheduler_LoggerSchema |
schema-ActionScheduler_StoreSchema |
widget_recent-comments |
widget_theysaidso_widget |
action_scheduler_hybrid_store_demarkation |
theysaidso_admin_options |
can_compress_scripts |
action_scheduler_lock_async-request-runner |
Browser metrics Passed 4 tests
Checking browser requirements for Push Notification for Post and BuddyPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲316 | 13.96 ▼0.36 | 9.15 ▲7.35 | 38.06 ▼5.89 |
Dashboard /wp-admin | 2,313 ▲143 | 5.89 ▲0.20 | 99.64 ▼3.71 | 44.12 ▼3.16 |
Posts /wp-admin/edit.php | 2,220 ▲120 | 2.39 ▲0.37 | 40.90 ▲3.83 | 38.28 ▲2.68 |
Add New Post /wp-admin/post-new.php | 6,292 ▲4,766 | 19.65 ▼3.99 | 885.70 ▲278.50 | 48.99 ▼11.86 |
Media Library /wp-admin/upload.php | 1,521 ▲118 | 4.51 ▲0.35 | 97.79 ▼0.56 | 43.91 ▲0.12 |
One time push notifications list /wp-admin/admin.php?page=pnfpb_icfm_onetime_notifications_list | 1,400 | 2.18 | 35.90 | 36.78 |
Action scheduler /wp-admin/admin.php?page=pnfpb_icfm_action_scheduler | 1,349 | 2.19 | 35.86 | 35.71 |
NGNIX /wp-admin/admin.php?page=pnfpb_icfm_settings_for_ngnix_server | 1,012 | 2.01 | 31.47 | 29.91 |
Customize Buttons /wp-admin/admin.php?page=pnfpb_icfm_button_settings | 1,660 | 3.55 | 44.02 | 37.03 |
Frontend subscription /wp-admin/admin.php?page=pnfpb_icfm_frontend_settings | 1,176 | 2.05 | 29.33 | 34.61 |
Integrate Mobile App /wp-admin/admin.php?page=pnfpb_icfm_integrate_app | 1,038 | 2.02 | 31.92 | 31.44 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,368 | 2.19 | 31.17 | 29.69 |
On demand/One time Notification /wp-admin/admin.php?page=pnfpb_icfmtest_notification | 1,666 | 3.43 | 49.87 | 34.76 |
PWA app /wp-admin/admin.php?page=pnfpb_icfm_pwa_app_settings | 1,822 | 3.31 | 43.13 | 36.79 |
Push settings /wp-admin/admin.php?page=pnfpb-icfcm-slug | 3,165 | 3.39 | 46.36 | 96.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 5 tables in the database
- wp_actionscheduler_actions
- wp_pnfpb_ic_schedule_push_notifications
- wp_actionscheduler_groups
- wp_actionscheduler_claims
- wp_actionscheduler_logs
- Zombie WordPress options detected upon uninstall: 11 options
- db_upgraded
- action_scheduler_hybrid_store_demarkation
- schema-ActionScheduler_LoggerSchema
- can_compress_scripts
- schema-ActionScheduler_StoreSchema
- widget_theysaidso_widget
- action_scheduler_migration_status
- widget_recent-posts
- widget_recent-comments
- action_scheduler_lock_async-request-runner
- ...
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 428× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect571r1.php:19
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\Common\\FiniteField\\Integer' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/phpseclib/phpseclib/phpseclib/Math/PrimeField/Integer.php:24
- > PHP Fatal error
Uncaught Error: Interface 'ParagonIE\\ConstantTime\\EncoderInterface' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/paragonie/constant_time_encoding/src/Hex.php:35
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/push-notification-for-post-and-buddypress/libraries/action-scheduler/classes/WP_CLI/Migration_Command.php:22
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE\\ConstantTime\\Base64' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/paragonie/constant_time_encoding/src/Base64DotSlash.php:34
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\PHP' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP32.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php:34
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/google/apiclient-services/src/FirebaseCloudMessaging/AndroidFcmOptions.php:20
- > PHP Warning
Class 'Google\\Service' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/google/apiclient/src/aliases.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/push-notification-for-post-and-buddypress/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
push-notification-for-post-and-buddypress/pnfpb_push_notification.php 77% from 13 tests
This is the main PHP file of "Push Notification for Post and BuddyPress" version 1.77, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("push-notification-for-post-and-buddypress.php" instead of "pnfpb_push_notification.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: Please don't use more than 140 characters for the plugin description (currently 203 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected95,976 lines of code in 868 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 776 | 16,815 | 45,220 | 75,935 |
JavaScript | 27 | 2,868 | 673 | 8,741 |
Markdown | 36 | 2,151 | 0 | 5,950 |
CSS | 6 | 531 | 63 | 3,070 |
JSON | 21 | 98 | 0 | 2,258 |
XML | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,410)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,410.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 80 | |
Interfaces | 53 | |
Traits | 15 | |
Classes | 693 | |
▷ Abstract classes | 232 | 33.48% |
▷ Concrete classes | 461 | 66.52% |
▷ Final classes | 66 | 14.32% |
Methods | 4,177 | |
▷ Static methods | 780 | 18.67% |
▷ Public methods | 3,122 | 74.74% |
▷ Protected methods | 533 | 12.76% |
▷ Private methods | 522 | 12.50% |
Functions | 201 | |
▷ Named functions | 36 | 17.91% |
▷ Anonymous functions | 165 | 82.09% |
Constants | 577 | |
▷ Global constants | 41 | 7.11% |
▷ Class constants | 536 | 92.89% |
▷ Public constants | 489 | 91.23% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/icon_push_subscribe.png | 0.40KB | 0.75KB | 0.00% |
public/img/pnfpb_push_icon.png | 2.19KB | 1.49KB | ▼ 31.91% |
public/img/pushbell-pnfpb.png | 6.39KB | 2.50KB | ▼ 60.85% |
public/img/icon.png | 67.93KB | 20.67KB | ▼ 69.57% |
public/img/icon_132.png | 14.44KB | 4.97KB | ▼ 65.55% |