83% what-the-cf7-which-contact-form-used-in-pagepost

Code Review | What the CF7 - Which Contact Form Used In Page/Post

WordPress plugin What the CF7 - Which Contact Form Used In Page/Post scored83%from 54 tests.

About plugin

  • Plugin page: what-the-cf7-whic...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 19, 2020
  • Latest release: Jan 19, 2020
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: mdshuvo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /394 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.62ms] Passed 4 tests

An overview of server-side resources used by What the CF7 - Which Contact Form Used In Page/Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.85 ▲0.47
Dashboard /wp-admin3.32 ▲0.0146.90 ▼5.44
Posts /wp-admin/edit.php3.37 ▲0.0149.46 ▲1.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.21 ▼6.67
Media Library /wp-admin/upload.php3.24 ▲0.0138.26 ▲1.46

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

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/what-the-cf7-which-contact-form-used-in-pagepost/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for What the CF7 - Which Contact Form Used In Page/Post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲9613.18 ▼1.572.59 ▲0.9039.35 ▼5.71
Dashboard /wp-admin2,218 ▲125.77 ▲0.8096.18 ▼4.9242.56 ▲0.32
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0335.54 ▼6.6433.10 ▼2.16
Add New Post /wp-admin/post-new.php1,549 ▲823.08 ▲4.92672.41 ▲5.2353.41 ▼6.98
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.03101.50 ▼20.5344.96 ▼3.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/what-the-cf7-which-contact-form-used-in-pagepost/wtcf7.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Requires php: Version format is invalid
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

what-the-cf7-which-contact-form-used-in-pagepost/wtcf7.php 85% from 13 tests

The main PHP script in "What the CF7 - Which Contact Form Used In Page/Post" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("what-the-cf7-which-contact-form-used-in-pagepost.php" instead of "wtcf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172036

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin