83% contact-form-7-tave-3-integration

Code Review | Contact Form 7 Táve Integration

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

About plugin

  • Plugin page: contact-form-7-ta...
  • Plugin version: 2014.12.04
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4
  • WordPress version: 6.3.1
  • First release: Feb 26, 2014
  • Latest release: Dec 12, 2015
  • Number of updates: 72
  • Update frequency: every 9.1 days
  • Top authors: rowellr (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,033 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.03MB] [CPU: ▼7.39ms] Passed 4 tests

An overview of server-side resources used by Contact Form 7 Táve Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.07 ▼3.72
Dashboard /wp-admin3.34 ▲0.0450.98 ▼7.58
Posts /wp-admin/edit.php3.39 ▲0.0362.66 ▲8.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.17 ▼16.99
Media Library /wp-admin/upload.php3.26 ▲0.0337.53 ▼1.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 Táve Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.62 ▲1.331.76 ▼3.1941.11 ▼9.57
Dashboard /wp-admin2,198 ▲215.62 ▼0.0384.89 ▼6.9942.16 ▼1.50
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0539.45 ▲1.7236.12 ▼1.34
Add New Post /wp-admin/post-new.php1,545 ▼023.52 ▲0.21665.61 ▼48.6154.53 ▼5.83
Media Library /wp-admin/upload.php1,403 ▼04.24 ▲0.0195.20 ▼6.0450.02 ▲2.39

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/contact-form-7-tave-3-integration/cf7-tave.php

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === contact-form-7-tave-3-integration === )
The official readme.txt might help

contact-form-7-tave-3-integration/cf7-tave.php 85% from 13 tests

The principal PHP file in "Contact Form 7 Táve Integration" v. 2014.12.04 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("contact-form-7-tave-3-integration.php" instead of "cf7-tave.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 351 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin196 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13829196

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin