78% get-notified

Code Review | Get Notified

WordPress plugin Get Notified scored78%from 54 tests.

About plugin

  • Plugin page: get-notified
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2016
  • Latest release: Apr 6, 2016
  • Number of updates: 10
  • Update frequency: every 4.1 days
  • Top authors: kjbenk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,212 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.16ms] Passed 4 tests

A check of server-side resources used by Get Notified
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.07 ▲0.51
Dashboard /wp-admin3.36 ▲0.0650.19 ▼2.67
Posts /wp-admin/edit.php3.48 ▲0.1252.95 ▲0.53
Add New Post /wp-admin/post-new.php5.94 ▲0.0696.71 ▼4.82
Media Library /wp-admin/upload.php3.29 ▲0.0639.14 ▼1.64
Hooks /wp-admin/admin.php?page=get-notified-hooks3.2834.64
Information /wp-admin/admin.php?page=get-notified3.2534.04
Integrations /wp-admin/admin.php?page=get-notified-integrations3.2832.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Get Notified
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.61 ▼0.691.82 ▼0.2544.83 ▲0.03
Dashboard /wp-admin2,237 ▲494.92 ▼0.02100.64 ▼6.8541.75 ▲2.92
Posts /wp-admin/edit.php2,120 ▲282.00 ▲0.0141.60 ▲5.3637.06 ▲3.97
Add New Post /wp-admin/post-new.php1,544 ▲2523.04 ▼0.19630.75 ▼43.5955.24 ▼8.31
Media Library /wp-admin/upload.php1,422 ▲344.22 ▼0.06100.20 ▼12.6646.99 ▼2.14
Hooks /wp-admin/admin.php?page=get-notified-hooks9592.0731.6724.41
Information /wp-admin/admin.php?page=get-notified8852.2128.4834.02
Integrations /wp-admin/admin.php?page=get-notified-integrations8622.0625.3926.51

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
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=get-notified-integrations
    • > Notice in wp-content/plugins/get-notified/integrations/slack.php+117
    Undefined index: slack-enable
    • > GET request to /wp-admin/admin.php?page=get-notified-integrations
    • > Notice in wp-content/plugins/get-notified/integrations/email.php+118
    Undefined index: email-enable

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/get-notified/views/settings.php:2
    • > PHP Notice
      Undefined variable: integrations in wp-content/plugins/get-notified/views/integrations.php on line 4
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/get-notified/views/integrations.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/get-notified/views/integrations.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/get-notified/views/hooks.php:2

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: ping, slack, message, status, notification...

get-notified/get-notified.php 92% from 13 tests

This is the main PHP file of "Get Notified" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected577 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP14206352577

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.67
▷ Minimum class complexity5.00
▷ Maximum class complexity11.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods28
▷ Static methods13.57%
▷ Public methods2589.29%
▷ Protected methods13.57%
▷ Private methods27.14%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin