84% gf-pushover-add-on

Code Review | Gravity Forms Pushover Add-On

WordPress plugin Gravity Forms Pushover Add-On scored84%from 54 tests.

About plugin

  • Plugin page: gf-pushover-add-on
  • Plugin version: 1.06
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-6.2
  • WordPress version: 6.3.1
  • First release: May 5, 2018
  • Latest release: May 19, 2023
  • Number of updates: 23
  • Update frequency: every 80.0 days
  • Top authors: wp2pgpmail (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.40ms] Passed 4 tests

Analyzing server-side resources used by Gravity Forms Pushover Add-On
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.63 ▼4.33
Dashboard /wp-admin3.31 ▲0.0142.96 ▼5.70
Posts /wp-admin/edit.php3.36 ▲0.0148.30 ▲4.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.82 ▼9.49
Media Library /wp-admin/upload.php3.23 ▲0.0132.46 ▼2.06

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

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

Browser metrics Passed 4 tests

Gravity Forms Pushover Add-On: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7613.28 ▼1.184.59 ▲2.3438.39 ▼7.45
Dashboard /wp-admin2,214 ▲234.81 ▼0.04111.97 ▲3.4343.04 ▼0.79
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0140.44 ▲2.7836.54 ▲1.22
Add New Post /wp-admin/post-new.php1,543 ▲122.91 ▲4.95635.26 ▼21.7853.49 ▼9.20
Media Library /wp-admin/upload.php1,393 ▲114.23 ▲0.0398.35 ▼3.7643.11 ▼0.48

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/gf-pushover-add-on/gf-pushover-add-on.php:16
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/gf-pushover-add-on/gf-pushover-add-on.php on line 14
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gf-pushover-add-on/gf-pushover-add-on.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-pushover-add-on/class-gf-pushover.php:4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gf-pushover-add-on/gf-pushover-add-on.php on line 14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gravity forms, pushover, notification, push notification, push

gf-pushover-add-on/gf-pushover-add-on.php Passed 13 tests

The main file in "Gravity Forms Pushover Add-On" v. 1.06 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
Get Gravity Forms submissions as instant push notifications on your phone or tablet with Pushover.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin402 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP381320380
JavaScript10016
SVG1006

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin