83% notifyvisitors

Code Review | NotifyVisitors : Email & SMS

WordPress plugin NotifyVisitors : Email & SMS scored83%from 54 tests.

About plugin

  • Plugin page: notifyvisitors
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2014
  • Latest release: Oct 4, 2023
  • Number of updates: 31
  • Update frequency: every 109.3 days
  • Top authors: tagNpin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,430 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
Installer ran successfully

Server metrics [RAM: ▼0.08MB] [CPU: ▼14.16ms] Passed 4 tests

Analyzing server-side resources used by NotifyVisitors : Email & SMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.93 ▼0.5325.50 ▼18.06
Dashboard /wp-admin3.38 ▲0.0847.40 ▼7.98
Posts /wp-admin/edit.php3.49 ▲0.1446.80 ▼7.65
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.17 ▼22.96
Media Library /wp-admin/upload.php3.30 ▲0.0740.12 ▲0.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for NotifyVisitors : Email & SMS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,480 ▼29113.60 ▼0.780.65 ▼1.5318.61 ▼28.84
Dashboard /wp-admin2,224 ▲365.90 ▲0.0497.22 ▼24.5662.14 ▲19.65
Posts /wp-admin/edit.php2,107 ▲182.03 ▲0.0335.99 ▼0.1630.24 ▼6.77
Add New Post /wp-admin/post-new.php1,537 ▲423.17 ▲0.12707.56 ▲63.6769.68 ▲13.21
Media Library /wp-admin/upload.php1,400 ▲124.18 ▼0.0599.68 ▼20.3475.11 ▲25.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-integration-code.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-viewed-product.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-integration-code.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-added-to-cart.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-checkout.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-user-login.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (NotifyVisitors), #2 (NotifyVisitors), #3 (NotifyVisitors), #4 (NotifyVisitors), #5 (NotifyVisitors)
You can take inspiration from this readme.txt

notifyvisitors/nv-package.php 92% from 13 tests

"NotifyVisitors : Email & SMS" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("notifyvisitors.php" instead of "nv-package.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected528 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP87699409
CSS1203115
JavaScript43214

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.38
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.75MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) screenshot-5.png103.74KB0.00KB▼ 100.00%
(invalid) screenshot-2.png177.78KB0.00KB▼ 100.00%
assets/img/notifyvisitors-logo.png1.43KB0.63KB▼ 56.13%
assets/img/notifyvisitors-woocommerce.png105.28KB58.87KB▼ 44.08%
screenshot-1.png117.93KB54.47KB▼ 53.82%