Benchmarks
Plugin footprint 82% 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.09MB] [CPU: ▼0.65ms] Passed 4 tests
Server-side resources used by Pushnami - Web Push Notifications
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.99 ▲4.19 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.52 ▲0.62 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 54.90 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 98.38 ▼8.85 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.64 ▲5.38 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- There were 2 files (0.36KB) illegally modified outside of "wp-content/plugins/pushnami-web-push-notifications/" and "wp-content/uploads/"
- (new file) service-worker.js
- (new file) manifest.json
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Pushnami - Web Push Notifications: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.41 ▲0.04 | 1.80 ▼0.25 | 43.61 ▲1.57 |
Dashboard /wp-admin | 2,241 ▲64 | 5.53 ▼0.15 | 85.83 ▼4.98 | 39.05 ▼6.02 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.06 ▲0.04 | 40.45 ▼0.10 | 36.79 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 23.23 ▼0.06 | 686.83 ▲64.04 | 55.22 ▲1.68 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.21 ▼0.02 | 104.93 ▲0.63 | 44.20 ▼1.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pushnami-web-push-notifications/views/admin/pushnami-settings.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pushnami-web-push-notifications/views/admin/pushnami-settings.php:168
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: webpush, push, push notifications, notifications, subscribe...
pushnami-web-push-notifications/pushnami.php 85% from 13 tests
"Pushnami - Web Push Notifications" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pushnami-web-push-notifications.php" instead of "pushnami.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected890 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 161 | 191 | 890 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 82.00 |
▷ Minimum class complexity | 82.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 30 | |
▷ Static methods | 16 | 53.33% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG files were detected