Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.84ms] Passed 4 tests
An overview of server-side resources used by HI FCM
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.52 ▼5.62 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.13 ▼1.91 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 43.61 ▼7.10 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.73 ▼8.71 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.67 ▲1.93 |
Firebase Cloud Messaging /wp-admin/options-general.php?page=hi_fcm | 3.31 | 35.78 |
Subscriptions /wp-admin/edit-tags.php?taxonomy=hi_fcm_subscriptions&post_type=hi_fcm_tokens | 3.28 | 33.29 |
All Devices /wp-admin/edit.php?post_type=hi_fcm_tokens | 3.33 | 36.68 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_hi_fcm_tokens |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for HI FCM
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.10 ▼1.54 | 4.51 ▲2.62 | 39.12 ▼3.08 |
Dashboard /wp-admin | 2,231 ▲43 | 5.85 ▲0.94 | 93.37 ▼24.13 | 41.40 ▼5.61 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.18 ▲0.14 | 33.78 ▼1.05 | 33.35 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 18.42 ▲0.98 | 684.35 ▼40.59 | 52.20 ▼4.61 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.27 ▼0.10 | 94.75 ▼10.70 | 42.67 ▲1.27 |
Firebase Cloud Messaging /wp-admin/options-general.php?page=hi_fcm | 964 | 2.03 | 21.85 | 26.91 |
Subscriptions /wp-admin/edit-tags.php?taxonomy=hi_fcm_subscriptions&post_type=hi_fcm_tokens | 1,293 | 2.14 | 33.02 | 29.11 |
All Devices /wp-admin/edit.php?post_type=hi_fcm_tokens | 1,129 | 1.96 | 30.83 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_hi_fcm_tokens
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/hi-fcm-firebase-cloud-messaging/templates/metabox.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
hi-fcm-firebase-cloud-messaging/hi-fcm.php 85% from 13 tests
"HI FCM" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hi-fcm-firebase-cloud-messaging.php" instead of "hi-fcm.php")
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin856 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 147 | 263 | 806 |
Markdown | 1 | 15 | 0 | 43 |
XML | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 28 | |
▷ Static methods | 6 | 21.43% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
There are no PNG files in this plugin