84% connect-contact-form-7-to-social-apps

Code Review | Connect Contact Form 7 to Social App

WordPress plugin Connect Contact Form 7 to Social App scored84%from 54 tests.

About plugin

  • Plugin page: connect-contact-f...
  • Plugin version: 1.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 9, 2021
  • Latest release: Jun 12, 2023
  • Number of updates: 24
  • Update frequency: every 23.0 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /18,501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.40ms] Passed 4 tests

An overview of server-side resources used by Connect Contact Form 7 to Social App
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.36 ▼0.51
Dashboard /wp-admin3.31 ▲0.0041.65 ▼3.86
Posts /wp-admin/edit.php3.36 ▲0.0041.33 ▼10.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.81 ▼4.68
Media Library /wp-admin/upload.php3.23 ▲0.0033.75 ▼2.97

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Connect Contact Form 7 to Social App
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.121.72 ▲0.0442.25 ▼1.68
Dashboard /wp-admin2,203 ▲184.85 ▼1.11102.85 ▲0.6639.58 ▼6.03
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0233.98 ▼6.0833.50 ▼4.90
Add New Post /wp-admin/post-new.php1,545 ▲1223.23 ▼0.00595.15 ▼124.0946.30 ▼11.89
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0295.06 ▼9.5540.87 ▼7.70

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/connect-contact-form-7-to-social-apps/class-admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/connect-contact-form-7-to-social-apps/functions.php:6

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: whatsapp support, whatsapp chat, contact form 7, whatsapp, click to chat

connect-contact-form-7-to-social-apps/connect-contact-form-7-to-social-apps.php 92% from 13 tests

The main PHP file in "Connect Contact Form 7 to Social App" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although 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
Good job! No executable or dangerous file extensions detected509 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3438306
CSS1274155
JavaScript22048

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.00
▷ Minimum class complexity16.00
▷ Maximum class complexity30.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods660.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected