83% heyday-a-truly-free-unlimited-web-push-notifications

Code Review | HeyDay - A truly free Web Push Native Notifications

WordPress plugin HeyDay - A truly free Web Push Native Notifications scored83%from 54 tests.

About plugin

  • Plugin page: heyday-a-truly-fr...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.4
  • WordPress version: 6.3.1
  • First release: May 8, 2020
  • Latest release: May 8, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: nissimeinat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /616 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.37ms] Passed 4 tests

A check of server-side resources used by HeyDay - A truly free Web Push Native Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.85 ▼5.90
Dashboard /wp-admin3.34 ▼0.0043.33 ▼18.30
Posts /wp-admin/edit.php3.39 ▲0.0443.05 ▲3.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.41 ▼19.02
Media Library /wp-admin/upload.php3.27 ▲0.0434.37 ▲1.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
heyday-push
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for HeyDay - A truly free Web Push Native Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.20 ▼1.181.69 ▼0.1441.04 ▼3.74
Dashboard /wp-admin2,219 ▲315.82 ▲0.74100.75 ▼17.9038.74 ▼8.28
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0333.30 ▼3.4833.73 ▲0.50
Add New Post /wp-admin/post-new.php1,546 ▲1323.58 ▲0.11585.83 ▼38.2449.49 ▼7.43
Media Library /wp-admin/upload.php1,398 ▲104.25 ▲0.1095.44 ▼0.0240.99 ▼0.05

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/heyday-a-truly-free-unlimited-web-push-notifications/heydaysw.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 90% 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
The official readme.txt might help

heyday-a-truly-free-unlimited-web-push-notifications/heyday-push.php 85% from 13 tests

"HeyDay - A truly free Web Push Native Notifications" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("heyday-a-truly-free-unlimited-web-push-notifications.php" instead of "heyday-push.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin161 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32417161

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1292.31%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png12.14KB5.36KB▼ 55.85%