Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.42ms] Passed 4 tests
An overview of server-side resources used by WP Firebase Push Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.65 ▲0.48 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.47 ▼15.75 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.40 ▼3.37 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.92 ▼15.02 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.80 ▲2.35 |
Push Notification /wp-admin/admin.php?page=notification | 3.26 | 31.80 |
Settings /wp-admin/admin.php?page=notify-settings | 3.26 | 32.10 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Firebase Push Notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.22 ▼1.44 | 1.96 ▲0.22 | 42.71 ▲1.34 |
Dashboard /wp-admin | 2,228 ▲42 | 5.85 ▼0.04 | 96.82 ▼7.73 | 40.91 ▼4.01 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.04 ▲0.03 | 41.02 ▲2.57 | 36.62 ▲5.09 |
Add New Post /wp-admin/post-new.php | 1,558 ▲38 | 18.44 ▼4.51 | 666.24 ▲7.62 | 56.68 ▲11.33 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.21 ▼0.02 | 97.01 ▼3.76 | 42.25 ▲1.47 |
Push Notification /wp-admin/admin.php?page=notification | 819 | 2.03 | 24.12 | 28.93 |
Settings /wp-admin/admin.php?page=notify-settings | 978 | 2.06 | 23.55 | 34.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-push-notification-firebase/templates/brodcast_message.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-push-notification-firebase/templates/settings.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (How it look like), #2 (How to add Firebase API key), #3 (How to send Notification)
wp-push-notification-firebase/wp_push_notification_firebase.php 92% from 13 tests
"WP Firebase Push Notification" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-push-notification-firebase.php" instead of "wp_push_notification_firebase.php")
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
Success! There were no dangerous files found in this plugin456 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 32 | 302 |
CSS | 1 | 30 | 6 | 154 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG images were found in this plugin