74% datatensai-cf7

Code Review | Data Tensai for Contact Form 7

WordPress plugin Data Tensai for Contact Form 7 scored74%from 54 tests.

About plugin

  • Plugin page: datatensai-cf7
  • Plugin version: 0.5.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: Apr 4, 2023
  • Number of updates: 4
  • Update frequency: every 135.8 days
  • Top authors: prasunsen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /385 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.09ms] Passed 4 tests

A check of server-side resources used by Data Tensai for Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /24.97 ▲0.014,337,634.17 ▲8,269.92
Dashboard /wp-admin3.53 ▲0.1855.66 ▲2.08
Posts /wp-admin/edit.php3.64 ▲0.2447.63 ▼6.69
Add New Post /wp-admin/post-new.php6.11 ▲0.1890.56 ▼16.84
Media Library /wp-admin/upload.php3.45 ▲0.1843.59 ▲1.10

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: 4 new tables, 7 new options
New tables
wp_datatensai_entries
wp_datatensai_forms
wp_datatensai_fields
wp_datatensai_datas
New WordPress options
can_compress_scripts
widget_theysaidso_widget
datatensai_version
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Data Tensai for Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.171.74 ▼0.0544.09 ▲0.82
Dashboard /wp-admin2,195 ▲185.62 ▼0.04102.31 ▲17.0144.08 ▼0.91
Posts /wp-admin/edit.php2,103 ▲61.98 ▲0.0236.27 ▲0.6734.03 ▼1.67
Add New Post /wp-admin/post-new.php1,526 ▼323.19 ▲0.09686.51 ▲20.4955.01 ▼7.01
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.06116.13 ▲16.6350.18 ▲6.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_datatensai_fields
    • wp_datatensai_entries
    • wp_datatensai_datas
    • wp_datatensai_forms
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • datatensai_version
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/datatensai-cf7/datatensai-cf7.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/datatensai-cf7/views/forms.html.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/datatensai-cf7/views/disable-fields.html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/datatensai-cf7/views/entries.html.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/datatensai-cf7/views/entry.html.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/datatensai-cf7/views/field-stats.html.php:1

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: contact form 7, database, contact form, cf7

datatensai-cf7/datatensai-cf7.php Passed 13 tests

"Data Tensai for Contact Form 7" version 0.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Advaned database management, export, and enhancements for Contact Form 7

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,430 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP122001241,043
CSS13965385
JavaScript10112

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity35.50
▷ Minimum class complexity10.00
▷ Maximum class complexity90.00
Average method complexity8.26
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods19100.00%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin