89% tave-cf7-integration

Code Review | Táve Contact Form 7 Integration

WordPress plugin Táve Contact Form 7 Integration scored89%from 54 tests.

About plugin

  • Plugin page: tave-cf7-integration
  • Plugin version: 1.1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: May 9, 2017
  • Latest release: Jun 2, 2023
  • Number of updates: 31
  • Update frequency: every 71.5 days
  • Top authors: tavestudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,092 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.61ms] Passed 4 tests

This is a short check of server-side resources used by Táve Contact Form 7 Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.97 ▼13.64
Dashboard /wp-admin3.32 ▲0.0245.91 ▼4.32
Posts /wp-admin/edit.php3.37 ▲0.0247.65 ▼0.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0298.73 ▼6.51
Media Library /wp-admin/upload.php3.24 ▲0.0234.79 ▼1.96

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Táve Contact Form 7 Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.28 ▼1.371.79 ▼0.0646.65 ▲3.50
Dashboard /wp-admin2,206 ▲144.87 ▼0.07110.40 ▲3.6042.12 ▼0.15
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0239.54 ▼1.2735.48 ▼1.27
Add New Post /wp-admin/post-new.php1,533 ▼123.52 ▲0.01599.40 ▼74.9058.49 ▼4.82
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0197.60 ▼6.1542.82 ▼0.96

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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)
No browser errors were detected

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === tave-cf7-integration === )
You can look at the official readme.txt

tave-cf7-integration/tave_cf7.php 85% from 13 tests

Analyzing the main PHP file in "Táve Contact Form 7 Integration" version 1.1.11
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tave-cf7-integration.php" instead of "tave_cf7.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected265 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP459130265

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods1090.91%
▷ Protected methods19.09%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin