88% profile-update-notifications-for-user-profiles-made-easy

Code Review | Profile Update Notifications for User Profiles Made Easy

WordPress plugin Profile Update Notifications for User Profiles Made Easy scored 88% from 54 tests.

About plugin

  • Plugin page: profile-update-no...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-4.7.2
  • WordPress version: 5.8.1
  • First release: Feb 11, 2017
  • Latest release: Feb 11, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: nimeshrmr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 780 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Profile Update Notifications for User Profiles Made Easy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0124.71 ▲3.14
Dashboard /wp-admin3.07 ▲0.0131.99 ▼4.68
Posts /wp-admin/edit.php3.13 ▲0.0230.28 ▲0.86
Add New Post /wp-admin/post-new.php5.44 ▼0.0068.43 ▼579.97
Media Library /wp-admin/upload.php3.02 ▲0.0123.89 ▲0.71

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Profile Update Notifications for User Profiles Made Easy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲6216.05 ▲0.065.02 ▼0.8877.59 ▲4.35
Dashboard /wp-admin2,959 ▲636.16 ▼0.04115.28 ▼22.73166.70 ▼7.34
Posts /wp-admin/edit.php2,773 ▲303.24 ▲0.0063.70 ▼0.67137.02 ▼5.87
Add New Post /wp-admin/post-new.php3,944 ▲24019.34 ▲0.75438.17 ▼15.10154.48 ▼43.15
Media Library /wp-admin/upload.php1,787 ▲355.55 ▲0.09148.00 ▲0.99184.88 ▲2.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/profile-update-notifications-for-user-profiles-made-easy/templates/menu-page-container.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: tab_content in wp-content/plugins/profile-update-notifications-for-user-profiles-made-easy/templates/menu-page-container.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/profile-update-notifications-for-user-profiles-made-easy/templates/profile-notify-settings.php:7
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/profile-update-notifications-for-user-profiles-made-easy/templates/profile-notify-settings.php on line 3
    • > PHP Notice
      Undefined variable: notification_fields_list in wp-content/plugins/profile-update-notifications-for-user-profiles-made-easy/templates/profile-notify-settings.php on line 4
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/profile-update-notifications-for-user-profiles-made-easy/templates/menu-page-container.php on line 3
    • > PHP Notice
      Undefined variable: tabs in wp-content/plugins/profile-update-notifications-for-user-profiles-made-easy/templates/menu-page-container.php on line 7

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: profile notifications, user profiles made easy, profile update, custom field notifications

profile-update-notifications-for-user-profiles-made-easy/upme-profile-notifications.php 92% from 13 tests

The primary PHP file in "Profile Update Notifications for User Profiles Made Easy" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("profile-update-notifications-for-user-profiles-made-easy.php" instead of "upme-profile-notifications.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin247 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP511721247

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.67
▷ Minimum class complexity6.00
▷ Maximum class complexity16.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin