Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.97ms] Passed 4 tests
A check of server-side resources used by PushConnect Push Notifications
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.53 ▼1.21 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.83 ▼8.06 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.32 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.31 ▼12.60 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.85 ▼1.99 |
PushConnect /wp-admin/options-general.php?page=puschonnect_settings | 3.25 | 34.31 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- There were 1 file (5.96KB) illegally modified outside of "wp-content/plugins/pushconnect-web-push-messaging/" and "wp-content/uploads/"
- (new file) pushconnect-sw.js
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pushconnect_tracking |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by PushConnect Push Notifications
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.27 ▼1.11 | 2.19 ▲0.54 | 40.21 ▼6.31 |
Dashboard /wp-admin | 2,210 ▲36 | 5.85 ▼0.01 | 95.09 ▼28.19 | 36.37 ▼14.45 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.00 | 33.11 ▼1.10 | 35.08 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 23.33 ▲5.72 | 679.25 ▼25.97 | 60.99 ▼9.90 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.26 ▼0.02 | 99.45 ▼0.76 | 44.59 ▲0.44 |
PushConnect /wp-admin/options-general.php?page=puschonnect_settings | 884 | 2.05 | 26.80 | 26.49 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_pushconnect_tracking
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pushconnect-web-push-messaging/pushconnect.php:297
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
6 plugin tags: push messaging, push, marketing, push notification, web push...
pushconnect-web-push-messaging/pushconnect.php 92% from 13 tests
The main PHP file in "PushConnect Push Notifications" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pushconnect-web-push-messaging.php" instead of "pushconnect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin408 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 21 | 234 |
JavaScript | 1 | 25 | 42 | 132 |
PO File | 1 | 13 | 14 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 9 | 75.00% |
▷ Anonymous functions | 3 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin