WordPress plugin HI FCM scored 73% from 54 tests.

About plugin

  • Plugin page: hi-fcm-firebase-c...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2021
  • Latest release: Jun 3, 2021
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: abdullahmohammed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 422 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.52 ▼5.62
Dashboard /wp-admin3.36 ▲0.0647.13 ▼1.91
Posts /wp-admin/edit.php3.48 ▲0.1243.61 ▼7.10
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.73 ▼8.71
Media Library /wp-admin/upload.php3.28 ▲0.0635.67 ▲1.93
Firebase Cloud Messaging /wp-admin/options-general.php?page=hi_fcm3.3135.78
Subscriptions /wp-admin/edit-tags.php?taxonomy=hi_fcm_subscriptions&post_type=hi_fcm_tokens3.2833.29
All Devices /wp-admin/edit.php?post_type=hi_fcm_tokens3.3336.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.10 ▼1.544.51 ▲2.6239.12 ▼3.08
Dashboard /wp-admin2,231 ▲435.85 ▲0.9493.37 ▼24.1341.40 ▼5.61
Posts /wp-admin/edit.php2,120 ▲312.18 ▲0.1433.78 ▼1.0533.35 ▼2.59
Add New Post /wp-admin/post-new.php1,565 ▲5118.42 ▲0.98684.35 ▼40.5952.20 ▼4.61
Media Library /wp-admin/upload.php1,419 ▲344.27 ▼0.1094.75 ▼10.7042.67 ▲1.27
Firebase Cloud Messaging /wp-admin/options-general.php?page=hi_fcm9642.0321.8526.91
Subscriptions /wp-admin/edit-tags.php?taxonomy=hi_fcm_subscriptions&post_type=hi_fcm_tokens1,2932.1433.0229.11
All Devices /wp-admin/edit.php?post_type=hi_fcm_tokens1,1291.9630.8328.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP10147263806
Markdown115043
XML1107

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 code0.46
Average class complexity11.60
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods28
▷ Static methods621.43%
▷ Public methods2796.43%
▷ Protected methods00.00%
▷ Private methods13.57%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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