78% stay-in-touch-connect

Code Review | Stay In Touch Connect

WordPress plugin Stay In Touch Connect scored78%from 54 tests.

About plugin

  • Plugin page: stay-in-touch-con...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: May 1, 2021
  • Number of updates: 18
  • Update frequency: every 6.7 days
  • Top authors: stayintouch (83.33%)prathmeshrewale (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /330 total downloads


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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Stay In Touch Connect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.17 ▲1.36
Dashboard /wp-admin3.37 ▲0.0244.12 ▼14.47
Posts /wp-admin/edit.php3.42 ▲0.0646.16 ▼6.64
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.75 ▼8.12
Media Library /wp-admin/upload.php3.30 ▲0.0634.80 ▲1.54
Connection /wp-admin/admin.php?page=connection3.2430.44
Stay In Touch /wp-admin/admin.php?page=sit_welcome_page3.2431.43
Logs /wp-admin/admin.php?page=logs3.2631.04

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Stay In Touch Connect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.43 ▼0.929.33 ▲7.8543.40 ▲4.11
Dashboard /wp-admin2,226 ▲495.67 ▲0.0190.31 ▼5.0436.07 ▼0.56
Posts /wp-admin/edit.php2,134 ▲312.05 ▲0.0541.02 ▲4.9236.61 ▲3.40
Add New Post /wp-admin/post-new.php1,557 ▲2923.14 ▲0.11663.78 ▼2.6866.52 ▲16.61
Media Library /wp-admin/upload.php1,431 ▲344.21 ▲0.0593.58 ▼7.6240.16 ▼4.20
Connection /wp-admin/admin.php?page=connection8302.0423.9228.13
Stay In Touch /wp-admin/admin.php?page=sit_welcome_page7902.0423.4428.04
Logs /wp-admin/admin.php?page=logs8232.0125.8342.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sit_welcome_page
    • > Notice in wp-content/plugins/stay-in-touch-connect/stayintouch.php+227
    Trying to access array offset on value of type null

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stay-in-touch-connect/stayintouch.php:35

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


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

stay-in-touch-connect/stayintouch.php 85% from 13 tests

"Stay In Touch Connect" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("stay-in-touch-connect.php" instead of "stayintouch.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected622 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions16100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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