84% pushforge-web-push

Code Review | Pushforge web push

WordPress plugin Pushforge web push scored84%from 54 tests.

About plugin

  • Plugin page: pushforge-web-push
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Apr 8, 2017
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: Ciao121 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 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
Install script ran successfully

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

This is a short check of server-side resources used by Pushforge web push
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0333.77 ▼11.95
Dashboard /wp-admin3.34 ▼0.0041.46 ▼18.63
Posts /wp-admin/edit.php3.39 ▲0.0446.71 ▲0.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0477.85 ▼20.80
Media Library /wp-admin/upload.php3.26 ▲0.0434.33 ▲0.06
Pushforge Web Push /wp-admin/options-general.php?page=pushforge-options3.2328.08

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Pushforge web push
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.201.64 ▼0.5839.80 ▼10.22
Dashboard /wp-admin2,210 ▲194.86 ▼1.04111.98 ▲5.1141.69 ▼3.22
Posts /wp-admin/edit.php2,090 ▲12.05 ▲0.0539.72 ▲3.9937.23 ▼0.03
Add New Post /wp-admin/post-new.php1,537 ▲923.44 ▲0.37653.27 ▲32.4356.98 ▲0.14
Media Library /wp-admin/upload.php1,395 ▲74.23 ▼0.0198.76 ▲3.5842.58 ▼1.01
Pushforge Web Push /wp-admin/options-general.php?page=pushforge-options8862.0325.8527.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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
Everything seems fine, however 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pushforge-web-push/pushforge-web-push.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: web push, safari, push notifications, android, windows...

pushforge-web-push/pushforge-web-push.php Passed 13 tests

The principal PHP file in "Pushforge web push" v. 1.1.2 is loaded by WordPress automatically on each request
54 characters long description:
Integrate pushforge.com web push in you wordpress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin177 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13127177

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin