10% keep-in-touch

Code Review | Keep in Touch

WordPress plugin Keep in Touch scored10%from 54 tests.

About plugin

  • Plugin page: keep-in-touch
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.0
  • WordPress version: 6.3.1
  • First release: Jan 27, 2015
  • Latest release: Dec 9, 2018
  • Number of updates: 49
  • Update frequency: every 28.8 days
  • Top authors: racanu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,635 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5653
    File locale.php is deprecated since version 4.7.0 with no alternative available.

Server metrics [RAM: ▼1.89MB] [CPU: ▼49.96ms] Passed 4 tests

A check of server-side resources used by Keep in Touch
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.81 ▼32.24
Dashboard /wp-admin2.12 ▼1.1911.73 ▼35.96
Posts /wp-admin/edit.php2.12 ▼1.246.02 ▼39.94
Add New Post /wp-admin/post-new.php2.12 ▼3.776.36 ▼91.71
Media Library /wp-admin/upload.php2.12 ▼1.114.86 ▼23.63

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 12 new options
New tables
wp_keep_in_touch
New WordPress options
theysaidso_admin_options
widget_recent-comments
keep_in_touch_use_full_name
keep_in_touch_empty_digest_message_text
widget_recent-posts
widget_wp_keepintouch
keep_in_touch_use_anti_robot_page
widget_theysaidso_widget
can_compress_scripts
keep_in_touch_subscription_confirmation_text
...

Browser metrics Passed 4 tests

An overview of browser requirements for Keep in Touch
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.67 ▼0.711.73 ▲0.0444.20 ▲3.84
Dashboard /wp-admin2,220 ▲324.89 ▲0.02102.93 ▼1.4940.05 ▼5.36
Posts /wp-admin/edit.php2,100 ▲82.03 ▼0.0236.93 ▼0.7034.03 ▲2.76
Add New Post /wp-admin/post-new.php1,540 ▲2123.06 ▼0.22628.08 ▲49.8360.04 ▲3.70
Media Library /wp-admin/upload.php1,402 ▲174.24 ▼0.0697.03 ▲0.3140.37 ▼0.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5653
    File locale.php is deprecated since version 4.7.0 with no alternative available.
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_keep_in_touch
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • keep_in_touch_send_empty_digest_message
    • theysaidso_admin_options
    • keep_in_touch_use_full_name
    • keep_in_touch_empty_digest_message_text
    • widget_recent-comments
    • widget_recent-posts
    • keep_in_touch_subscription_confirmation_text
    • widget_wp_keepintouch
    • keep_in_touch_use_anti_robot_page
    • widget_theysaidso_widget
    • ...

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/keep-in-touch/class-keep-in-touch-settings.php
    • > /wp-content/plugins/keep-in-touch/class-virtual-page.php
    • > /wp-content/plugins/keep-in-touch/class-keep-in-touch-schedule.php
    • > /wp-content/plugins/keep-in-touch/class-keep-in-touch-widget.php
    • > /wp-content/plugins/keep-in-touch/class-keep-in-touch-msg.php
    • > /wp-content/plugins/keep-in-touch/keep-in-touch.php
    • > /wp-content/plugins/keep-in-touch/class-keep-in-touch-options.php
    • > /wp-content/plugins/keep-in-touch/class-keep-in-touch-db.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === keep-in-touch === )
Please take inspiration from this readme.txt

keep-in-touch/keep-in-touch.php 92% from 13 tests

The entry point to "Keep in Touch" version 1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("Optional. Plugin's relative directory path to .mo files. Example: /locale/")

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
There were no executable files found in this plugin1,667 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9219561,366
PO File182187288
CSS13013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.44
▷ Minimum class complexity3.00
▷ Maximum class complexity22.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods119
▷ Static methods11394.96%
▷ Public methods8672.27%
▷ Protected methods00.00%
▷ Private methods3327.73%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
rss-logo.png29.31KB9.23KB▼ 68.52%