78% clicksend-contactform7

Code Review | ClickSend Contact Form 7

WordPress plugin ClickSend Contact Form 7 scored78%from 54 tests.

About plugin

  • Plugin page: clicksend-contact...
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.3.0
  • WordPress version: 6.3.1
  • First release: Jun 29, 2017
  • Latest release: Nov 17, 2023
  • Number of updates: 19
  • Update frequency: every 122.8 days
  • Top authors: clicksend (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,764 total downloads

Benchmarks

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
Install script ran successfully

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

Analyzing server-side resources used by ClickSend Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.11 ▼3.93
Dashboard /wp-admin3.35 ▲0.0148.49 ▼13.65
Posts /wp-admin/edit.php3.47 ▲0.1147.38 ▼1.54
Add New Post /wp-admin/post-new.php5.95 ▲0.0790.50 ▼5.70
Media Library /wp-admin/upload.php3.28 ▲0.0535.18 ▲1.49

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables
wp_clicksend_messages
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ClickSend Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲11513.74 ▼0.618.19 ▲6.1237.72 ▼6.88
Dashboard /wp-admin2,199 ▲255.65 ▼0.0190.49 ▼7.0644.44 ▼1.27
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0138.61 ▼3.1038.49 ▲5.98
Add New Post /wp-admin/post-new.php1,530 ▲423.18 ▲0.01654.89 ▼5.6360.45 ▲5.88
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.0497.36 ▲0.3442.37 ▲1.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/clicksend-contactform7/admin/partials/clicksend-contactform7-admin-display.php
    • > /wp-content/plugins/clicksend-contactform7/public/partials/clicksend-contactform7-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clicksend-contactform7/admin/clicksend-contactform7-admin-actions.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clicksend-contactform7/public/clicksend-contactform7-actions.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === clicksend-contactform7 === )
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in clicksend-contactform7/assets to your readme.txt
Please take inspiration from this readme.txt

clicksend-contactform7/clicksend-contactform7.php Passed 13 tests

"ClickSend Contact Form 7" version 1.3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
A ContactForm7 plugin for ClickSend.

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,282 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP163107581,248
JavaScript265628
CSS2186

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods75
▷ Static methods34.00%
▷ Public methods6282.67%
▷ Protected methods00.00%
▷ Private methods1317.33%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.75MB with 0.54MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png211.90KB62.56KB▼ 70.48%
assets/screenshot-4.png146.54KB37.36KB▼ 74.51%
assets/screenshot-2.png225.95KB65.82KB▼ 70.87%
assets/screenshot-1.png180.29KB51.33KB▼ 71.53%