Benchmarks
Plugin footprint 5% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Ionic_User_Push::plugin_activation() should not be called statically
Server metrics [RAM: ▼0.96MB] [CPU: ▼33.43ms] Passed 4 tests
An overview of server-side resources used by Ionic User Push Notification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▼0.53 | 15.31 ▼19.88 |
Dashboard /wp-admin | 3.08 ▼0.22 | 21.82 ▼29.42 |
Posts /wp-admin/edit.php | 3.08 ▼0.27 | 21.51 ▼25.54 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.80 | 23.44 ▼58.86 |
Media Library /wp-admin/upload.php | 3.08 ▼0.15 | 19.69 ▼11.92 |
Ionic User Push /wp-admin/options-general.php?page=ionic-user-push | 3.08 | 21.64 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_iup_user_ids |
wp_iup_push_history |
wp_iup_scheduled_push |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Ionic User Push Notification: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.24 ▼1.14 | 1.93 ▼0.14 | 40.79 ▼6.47 |
Dashboard /wp-admin | 2,217 ▲26 | 4.89 ▼0.01 | 96.57 ▼21.18 | 40.77 ▼6.05 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.01 ▲0.00 | 34.96 ▼3.32 | 30.30 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,544 ▲26 | 23.20 ▼0.02 | 615.22 ▼77.25 | 52.49 ▼9.89 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.26 ▲0.02 | 95.09 ▼4.93 | 42.16 ▲1.45 |
Ionic User Push /wp-admin/options-general.php?page=ionic-user-push | 860 | 2.03 | 23.53 | 30.17 |
Uninstaller [IO: ▲0.46MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attentionThis plugin does not fully uninstall, leaving 3 tables in the database Zombie WordPress options detected upon uninstall: 7 options
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Ionic_User_Push_Admin::admin_menu() should not be called statically
- The plugin did not uninstall correctly, leaving 22 files (0.46MB) in the plugin directory
- (new file) assets/html/iup-admin-documentation.html
- (new file) assets/html/iup-admin-send.html
- (new file) assets/html/tabs.html
- (new file) LICENSE
- (new file) includes/class-iup-admin.php
- (new file) assets/html/messages.html
- (new file) assets/html/iup-admin-settings.html
- (new file) assets/html/iup-admin-userIds.html
- (new file) assets/html/iup-admin-history.html
- (new file) assets/html/iup-admin-scheduled.html
- ...
- wp_iup_user_ids
- wp_iup_scheduled_push
- wp_iup_push_history
- widget_recent-comments
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Ionic_User_Push_Admin::admin_menu() should not be called statically
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Ionic_User_Push_Admin::admin_menu_options() should not be called statically
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Deprecated in wp-content/plugins/ionic-user-push-notification/includes/class-iup-admin.php+17
Non-static method Ionic_User_Push_Admin::store_option() should not be called statically
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Deprecated in wp-content/plugins/ionic-user-push-notification/includes/class-iup-admin.php+18
Non-static method Ionic_User_Push_Admin::load_options() should not be called statically
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Deprecated in wp-content/plugins/ionic-user-push-notification/includes/class-iup-admin.php+19
Non-static method Ionic_User_UserId_Manager::get_total_userIds() should not be called statically
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Notice in wp-content/plugins/ionic-user-push-notification/includes/class-iup-admin.php+59
Undefined index: tab
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Notice in wp-content/plugins/ionic-user-push-notification/assets/html/messages.html+2
Undefined variable: scheduledStoreReturn
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Notice in wp-content/plugins/ionic-user-push-notification/assets/html/messages.html+5
Undefined variable: sendPushReturn
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Notice in wp-content/plugins/ionic-user-push-notification/assets/html/iup-admin-settings.html+11
Undefined index: appId
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Notice in wp-content/plugins/ionic-user-push-notification/assets/html/iup-admin-settings.html+18
Undefined index: privateApiKey
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Notice in wp-content/plugins/ionic-user-push-notification/assets/html/iup-admin-settings.html+25
Undefined index: sendNewPost
- > GET request to /wp-admin/options-general.php?page=ionic-user-push
- > Notice in wp-content/plugins/ionic-user-push-notification/assets/html/iup-admin-settings.html+32
Undefined index: sendUpdatePost
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
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/ionic-user-push-notification/includes/class-iup-userId-manager.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ionic-user-push-notification/includes/class-iup-history-manager.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/ionic-user-push-notification/includes/class-iup-history-manager.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ionic-user-push-notification/includes/class-iup-scheduled-manager.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/ionic-user-push-notification/includes/class-iup-scheduled-manager.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ionic-user-push-notification/includes/class-iup-userId-manager.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/ionic-user-push-notification/includes/class-iup-userId-manager.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/ionic-user-push-notification/includes/class-iup-userId-manager.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/ionic-user-push-notification/includes/class-iup-userId-manager.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ionic-user-push-notification/ionic-user-push.php:22
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: ionic, user, notification, push
ionic-user-push-notification/ionic-user-push.php 92% from 13 tests
The principal PHP file in "Ionic User Push Notification" v. 1.1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("ionic-user-push-notification.php" instead of "ionic-user-push.php")
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
There were no executable files found in this plugin716 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 137 | 105 | 471 |
HTML | 8 | 15 | 0 | 222 |
Markdown | 1 | 14 | 0 | 23 |
PHP code Passed 2 tests
An overview 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.25 |
Average class complexity | 9.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 1 | 6.25% |
▷ Class constants | 15 | 93.75% |
▷ Public constants | 15 | 100.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
3 PNG files occupy 0.40MB with 0.29MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 141.01KB | 36.42KB | ▼ 74.17% |
screenshot-1.png | 109.03KB | 33.58KB | ▼ 69.20% |
screenshot-3.png | 162.93KB | 51.04KB | ▼ 68.67% |