80% wp-push-notifications

Code Review | WP Push Notifications

WordPress plugin WP Push Notifications scored80%from 54 tests.

About plugin

  • Plugin page: wp-push-notificat...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 10, 2017
  • Latest release: Sep 11, 2017
  • Number of updates: 14
  • Update frequency: every 2.4 days
  • Top authors: jaedm97 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /729 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.50ms] Passed 4 tests

Server-side resources used by WP Push Notifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.27 ▲1.34
Dashboard /wp-admin3.52 ▲0.2251.67 ▲1.27
Posts /wp-admin/edit.php3.58 ▲0.2253.76 ▲4.39
Add New Post /wp-admin/post-new.php6.04 ▲0.1689.40 ▼9.01
Media Library /wp-admin/upload.php3.36 ▲0.1440.89 ▲4.45
Send Notification /wp-admin/admin.php?page=wppn-send-notification3.3638.32
Settings /wp-admin/admin.php?page=wppn-settings3.3941.27
Subscribers /wp-admin/admin.php?page=wppn-subscribers3.3640.76
WPPN Dashboard /wp-admin/admin.php?page=wppn-dashboard3.3630.44

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables
wp_wppn_subscribers
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Push Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,135 ▲38915.06 ▲0.707.30 ▲5.3750.11 ▲8.82
Dashboard /wp-admin2,401 ▲1956.45 ▲0.55117.71 ▲15.2243.11 ▲1.97
Posts /wp-admin/edit.php2,297 ▲1973.36 ▲1.3550.58 ▲12.6233.54 ▼2.55
Add New Post /wp-admin/post-new.php1,560 ▲1523.27 ▲0.13663.18 ▲7.7937.96 ▼13.54
Media Library /wp-admin/upload.php1,437 ▲404.15 ▼0.0579.07 ▼29.1745.01 ▼2.46
Send Notification /wp-admin/admin.php?page=wppn-send-notification1,1033.1541.0344.57
Settings /wp-admin/admin.php?page=wppn-settings1,1563.1336.9132.52
Subscribers /wp-admin/admin.php?page=wppn-subscribers1,0473.0739.2325.06
WPPN Dashboard /wp-admin/admin.php?page=wppn-dashboard9963.0335.6522.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_wppn_subscribers
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No tags were detected

wp-push-notifications/wp-push-notifications.php Passed 13 tests

The primary PHP file in "WP Push Notifications" version 1.0.6 is used by WordPress to initiate all plugin functionality
88 characters long description:
Sends Notifications to your users, customers, subscribers or visitors. NO LIMIT AND FREE

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
There were no executable files found in this plugin6,617 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS566272,571
PHP13223163760
JavaScript817994615

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods47
▷ Static methods48.51%
▷ Public methods3574.47%
▷ Protected methods00.00%
▷ Private methods1225.53%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.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.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/notification-icon.png9.59KB4.95KB▼ 48.43%