84% pushdy-notifications

Code Review | Pushdy - Web Push Notifications

WordPress plugin Pushdy - Web Push Notifications scored84%from 54 tests.

About plugin

  • Plugin page: pushdy-notifications
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2019
  • Latest release: Oct 24, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: pushdytech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /457 total downloads

Benchmarks

Plugin footprint 83% 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.15MB] [CPU: ▼9.03ms] Passed 4 tests

Server-side resources used by Pushdy - Web Push Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1539.57 ▲3.34
Dashboard /wp-admin3.47 ▲0.1246.54 ▼14.95
Posts /wp-admin/edit.php3.58 ▲0.2245.56 ▲2.71
Add New Post /wp-admin/post-new.php6.07 ▲0.1881.30 ▼23.31
Media Library /wp-admin/upload.php3.39 ▲0.1636.30 ▼0.56

Server storage [IO: ▲2.13MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Pushdy - Web Push Notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.28 ▼0.071.94 ▲0.2745.02 ▲5.35
Dashboard /wp-admin2,213 ▲335.66 ▲0.0682.72 ▼6.0138.91 ▼2.20
Posts /wp-admin/edit.php2,120 ▲202.04 ▲0.0233.80 ▼5.1635.68 ▼2.80
Add New Post /wp-admin/post-new.php6,250 ▲4,72318.80 ▼4.58941.13 ▲266.6567.47 ▲1.40
Media Library /wp-admin/upload.php1,421 ▲244.28 ▲0.0394.47 ▼0.1746.14 ▲3.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_pushdywidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pushdy-notifications/pushdy.php
    • > /wp-content/plugins/pushdy-notifications/views/config.php
    • > /wp-content/plugins/pushdy-notifications/sdk_files/PushdySDKWorker.js.php
    • > /wp-content/plugins/pushdy-notifications/pushdy-utils.php
    • > /wp-content/plugins/pushdy-notifications/pushdy-admin.php
    • > /wp-content/plugins/pushdy-notifications/pushdy-public.php
    • > /wp-content/plugins/pushdy-notifications/pushdy-widget.php
    • > /wp-content/plugins/pushdy-notifications/pushdy-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

pushdy-notifications/pushdy.php 92% from 13 tests

The primary PHP file in "Pushdy - Web Push Notifications" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pushdy-notifications.php" instead of "pushdy.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 plugin2,153 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP82071211,106
SVG200566
JavaScript48397476
CSS504535

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.60
▷ Minimum class complexity2.00
▷ Maximum class complexity109.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods3375.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
views/images/settings/https-url.png86.63KB28.80KB▼ 66.75%
views/images/menu_icon.png8.99KB4.22KB▼ 53.02%