83% pushpanda-free-web-push-notifications

Code Review | PushPanda.io - Free Web Push Notifications

WordPress plugin PushPanda.io - Free Web Push Notifications scored83%from 54 tests.

About plugin

  • Plugin page: pushpanda-free-we...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Feb 12, 2020
  • Latest release: Sep 15, 2022
  • Number of updates: 5
  • Update frequency: every 190.2 days
  • Top authors: pushpanda (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /1,308 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by PushPanda.io - Free Web Push Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.07 ▲3.29
Dashboard /wp-admin3.33 ▲0.0344.32 ▼4.56
Posts /wp-admin/edit.php3.38 ▲0.0246.27 ▼8.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.18 ▼22.58
Media Library /wp-admin/upload.php3.25 ▲0.0234.53 ▼2.60
PushPanda.io /wp-admin/options-general.php?page=pushpanda_settings3.2234.95

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for PushPanda.io - Free Web Push Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.28 ▼0.071.71 ▲0.1843.94 ▲4.89
Dashboard /wp-admin2,217 ▲465.62 ▲0.0583.42 ▼0.8538.62 ▼8.06
Posts /wp-admin/edit.php2,122 ▲222.00 ▼0.0034.88 ▲0.5836.11 ▼2.80
Add New Post /wp-admin/post-new.php1,543 ▲1723.22 ▼0.24657.70 ▼82.6155.63 ▼2.07
Media Library /wp-admin/upload.php1,425 ▲254.19 ▼0.0796.24 ▼7.1142.03 ▼3.82
PushPanda.io /wp-admin/options-general.php?page=pushpanda_settings9182.1924.6227.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/pushpanda-free-web-push-notifications/pushpanda.php
    • > /wp-content/plugins/pushpanda-free-web-push-notifications/sdk/PushPandaWorker.js.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

pushpanda-free-web-push-notifications/pushpanda.php 77% from 13 tests

The entry point to "PushPanda.io - Free Web Push Notifications" version 1.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pushpanda-free-web-push-notifications.php" instead of "pushpanda.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 210 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin326 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS21221136
PHP32723132
SVG21157
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/pushpanda_web_push_free.png44.34KB15.88KB▼ 64.18%
assets/pushpanda-logo-header.png7.54KB4.12KB▼ 45.32%
assets/pushpanda_features.png51.20KB20.45KB▼ 60.06%