Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.63ms] Passed 4 tests
Server-side resources used by WordPress Post FCM
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.17 ▼8.15 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.62 ▼2.04 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 54.87 ▲6.71 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.48 ▼7.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.09 ▲7.79 |
Post FCM settings /wp-admin/admin.php?page=post_fcm_settings | 3.29 | 36.49 |
Post FCM Notifications /wp-admin/admin.php?page=admin_menu_pfcm | 3.29 | 39.43 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Post FCM
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲221 | 14.65 ▲0.46 | 1.83 ▼0.09 | 38.38 ▼5.62 |
Dashboard /wp-admin | 2,358 ▲167 | 6.43 ▲0.55 | 121.45 ▲4.73 | 89.99 ▲44.57 |
Posts /wp-admin/edit.php | 2,282 ▲193 | 3.37 ▲1.35 | 52.64 ▲17.62 | 78.49 ▲38.93 |
Add New Post /wp-admin/post-new.php | 1,693 ▲151 | 22.32 ▲4.30 | 693.57 ▲35.68 | 36.69 ▼17.27 |
Media Library /wp-admin/upload.php | 1,421 ▲39 | 4.11 ▼0.06 | 77.67 ▼31.87 | 92.65 ▲50.45 |
Post FCM settings /wp-admin/admin.php?page=post_fcm_settings | 1,140 | 3.02 | 40.15 | 62.38 |
Post FCM Notifications /wp-admin/admin.php?page=admin_menu_pfcm | 1,069 | 3.02 | 37.66 | 63.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=post_fcm_settings
- > Notice in wp-content/plugins/post-category-fcm-notifications/admin/partials/postcategory-fcm-notifications-admin-settings.php+104
Undefined variable: pfcm_icon
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/post-category-fcm-notifications/admin/partials/postcategory-fcm-notifications-admin-display.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/post-category-fcm-notifications/admin/partials/postcategory-fcm-notifications-admin-settings.php:21
- > 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 Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: notifications, emil90, fcm, firebase
post-category-fcm-notifications/postcategory-fcm-notifications.php 69% from 13 tests
"WordPress Post FCM" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "5.2")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("post-category-fcm-notifications.php" instead of "postcategory-fcm-notifications.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.2")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected617 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 148 | 514 | 446 |
CSS | 1 | 0 | 4 | 119 |
JavaScript | 1 | 16 | 34 | 52 |
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.17 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 23 | 85.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.81% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/fcm-icon.png | 0.66KB | 0.54KB | ▼ 17.71% |