84% pushover-notifications

Code Review | Pushover Notifications for WordPress

WordPress plugin Pushover Notifications for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: pushover-notifica...
  • Plugin version: 1.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Aug 22, 2012
  • Latest release: Feb 14, 2018
  • Number of updates: 96
  • Update frequency: every 20.9 days
  • Top authors: cklosows (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

400+ active /23,160 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼2.41ms] Passed 4 tests

This is a short check of server-side resources used by Pushover Notifications for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1137.88 ▼1.84
Dashboard /wp-admin3.52 ▲0.2148.96 ▼0.53
Posts /wp-admin/edit.php3.63 ▲0.2745.20 ▼1.79
Add New Post /wp-admin/post-new.php6.10 ▲0.2181.62 ▼5.49
Media Library /wp-admin/upload.php3.44 ▲0.2135.63 ▲3.76
Pushover Notifications /wp-admin/options-general.php?page=pushover-notifications3.4132.67

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Pushover Notifications for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.25 ▼1.331.67 ▼0.2038.17 ▼4.87
Dashboard /wp-admin2,210 ▲195.88 ▲0.9694.82 ▼9.1238.12 ▼5.26
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0033.61 ▼2.5235.76 ▼0.85
Add New Post /wp-admin/post-new.php1,536 ▲323.19 ▲0.09642.50 ▼11.5366.16 ▲2.65
Media Library /wp-admin/upload.php1,392 ▲104.25 ▲0.0697.42 ▼1.3842.48 ▼1.77
Pushover Notifications /wp-admin/options-general.php?page=pushover-notifications1,0212.0323.7036.55

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pushover-notifications/pushover-notifications.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: notifications, push notifications, ios, bbpress, iphone...

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

Analyzing the main PHP file in "Pushover Notifications for WordPress" version 1.9.4
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 243 characters long)

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 plugin1,423 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6241261938
PO File2162177461
JavaScript15024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected