78% tool-tips-for-contact-form-7

Code Review | ToolTips For Contact Form 7

WordPress plugin ToolTips For Contact Form 7 scored78%from 54 tests.

About plugin

  • Plugin page: tool-tips-for-con...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 7
  • Update frequency: every 41.6 days
  • Top authors: howdytheme (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /376 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.90ms] Passed 4 tests

A check of server-side resources used by ToolTips For Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.05 ▼5.70
Dashboard /wp-admin3.35 ▲0.0447.38 ▼6.82
Posts /wp-admin/edit.php3.40 ▲0.0451.46 ▼0.51
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.21 ▼14.55
Media Library /wp-admin/upload.php3.27 ▲0.0438.29 ▲2.13

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/tool-tips-for-contact-form-7/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ToolTips For Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15513.67 ▼0.716.02 ▲4.1742.98 ▼1.55
Dashboard /wp-admin2,229 ▲265.77 ▲0.91101.58 ▼6.5537.86 ▼4.67
Posts /wp-admin/edit.php2,114 ▲142.02 ▲0.0139.87 ▲3.6134.03 ▼0.06
Add New Post /wp-admin/post-new.php1,538 ▼717.76 ▼5.36674.02 ▼18.8957.15 ▲6.19
Media Library /wp-admin/upload.php1,417 ▲174.29 ▼0.06101.03 ▼10.7544.00 ▼8.74

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
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tool-tips-for-contact-form-7/tool-tips-for-contact-form-7.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tool-tips-for-contact-form-7/inc/ttfcf7_fronted.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tool-tips-for-contact-form-7/inc/ttfcf7_backend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tool-tips-for-contact-form-7/inc/setting.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tool-tips-for-contact-form-7/inc/index.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 require attention: You can look at the official readme.txt

tool-tips-for-contact-form-7/tool-tips-for-contact-form-7.php Passed 13 tests

The entry point to "ToolTips For Contact Form 7" version 1.0 is a PHP file that has certain tags in its header comment area
22 characters long description:
WooCommerce Tool Tips.

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
No dangerous file extensions were detected311 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP54516278
JavaScript411019
CSS10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/images/question_1.png0.60KB0.52KB▼ 11.97%
asset/images/question_6.png0.43KB0.53KB0.00%
asset/images/question_5.png0.39KB0.41KB0.00%
asset/images/question_4.png0.58KB0.41KB▼ 28.47%
asset/images/question_2.png0.75KB0.69KB▼ 8.32%