Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.16ms] 75% from 4 tests
This is a short check of server-side resources used by Push Notification FCM
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,242.25ms on /wp-admin/admin.php?page=push-notification-fcm-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.90 ▼2.63 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.28 ▼2.43 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.76 ▼7.75 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.72 ▼19.82 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.85 ▲1.97 |
Devices /wp-admin/admin.php?page=push-notification-fcm | 3.31 | 36.79 |
Settings /wp-admin/admin.php?page=push-notification-fcm-settings | 3.62 | 2,242.25 |
Server storage [IO: ▲0.36MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Push Notification FCM: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.22 ▼1.34 | 1.67 ▼0.22 | 45.76 ▼0.49 |
Dashboard /wp-admin | 2,233 ▲42 | 4.89 ▲0.02 | 117.60 ▼20.25 | 43.36 ▲0.16 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.97 ▼0.04 | 34.78 ▼1.09 | 33.21 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.37 ▲0.14 | 683.35 ▲17.18 | 73.03 ▲20.32 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.16 ▼0.03 | 99.31 ▼8.95 | 40.35 ▼4.25 |
Devices /wp-admin/admin.php?page=push-notification-fcm | 1,062 | 2.04 | 26.26 | 28.46 |
Settings /wp-admin/admin.php?page=push-notification-fcm-settings | 1,234 | 2.13 | 33.03 | 48.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/push-notification-fcm/includes/API.php
- > /wp-content/plugins/push-notification-fcm/includes/REST.php
- > /wp-content/plugins/push-notification-fcm/includes/Metabox.php
- > /wp-content/plugins/push-notification-fcm/includes/Settings.php
- > /wp-content/plugins/push-notification-fcm/includes/Devices.php
- > /wp-content/plugins/push-notification-fcm/push-notification-fcm.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/push-notification-fcm/admin/Devices.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/push-notification-fcm/admin/Settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: fcm, integration, push notifications, device registration, ios...
push-notification-fcm/push-notification-fcm.php 92% from 13 tests
Analyzing the main PHP file in "Push Notification FCM" version 1.0.6
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected2,131 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 292 | 319 | 1,776 |
PO File | 1 | 103 | 114 | 271 |
CSS | 1 | 8 | 0 | 53 |
JavaScript | 1 | 5 | 0 | 31 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 12 | 19.05% |
▷ Public methods | 56 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.11% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.23MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/16x16/WOS.png | 18.88KB | 0.59KB | ▼ 96.85% |
assets/16x16/ATV.png | 19.78KB | 0.37KB | ▼ 98.11% |
assets/16x16/AND.png | 19.60KB | 0.56KB | ▼ 97.15% |
assets/16x16/WIN.png | 20.04KB | 0.43KB | ▼ 97.87% |
assets/16x16/XBX.png | 18.89KB | 0.62KB | ▼ 96.72% |