90% wp-firebase-push-notification

Code Review | Firebase Push Notification

WordPress plugin Firebase Push Notification scored 90% from 54 tests.

About plugin

  • Plugin page: wp-firebase-push-...
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 6.3.1
  • First release: Jun 27, 2017
  • Latest release: May 19, 2018
  • Number of updates: 18
  • Update frequency: every 18.4 days
  • Top authors: miraclewebssoft (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 6,507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.95ms] Passed 4 tests

An overview of server-side resources used by Firebase Push Notification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.34 ▼0.36
Dashboard /wp-admin3.32 ▲0.0245.49 ▼1.01
Posts /wp-admin/edit.php3.38 ▲0.0248.32 ▼0.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.72 ▼21.98
Media Library /wp-admin/upload.php3.25 ▲0.0234.10 ▲0.85
Wordpress Firebase Push Notification /wp-admin/options-general.php?page=fcm_slug3.2632.07
Test Notification /wp-admin/admin.php?page=test_notification3.21169.61

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Firebase Push Notification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.23 ▼1.141.52 ▼0.3037.78 ▼2.27
Dashboard /wp-admin2,217 ▲294.86 ▼0.04107.77 ▲2.6335.95 ▼5.17
Posts /wp-admin/edit.php2,097 ▲112.16 ▲0.1439.52 ▲0.0435.17 ▲0.71
Add New Post /wp-admin/post-new.php1,521 ▼923.37 ▲5.00662.93 ▲31.0851.61 ▼3.25
Media Library /wp-admin/upload.php1,396 ▲144.31 ▲0.1193.53 ▼5.9842.15 ▼2.01
Wordpress Firebase Push Notification /wp-admin/options-general.php?page=fcm_slug8982.1625.1727.90
Test Notification /wp-admin/admin.php?page=test_notification7752.1923.0729.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: fcm, firebase cloud messsaging, firebase cloud messsaging on page save, firebase cloud messsaging for adroid, fcm push notification...

wp-firebase-push-notification/wp-firebase-push-notification.php Passed 13 tests

The principal PHP file in "Firebase Push Notification" v. 3.2 is loaded by WordPress automatically on each request
36 characters long description:
Wordpress Firebase Push Notification

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
There were no executable files found in this plugin205 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26825204
JavaScript1001

PHP code Passed 2 tests

Analyzing 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 code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin