80% contact-form-query

Code Review | Contact Form Query

WordPress plugin Contact Form Query scored80%from 54 tests.

About plugin

  • Plugin page: contact-form-query
  • Plugin version: 1.7.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: Oct 19, 2023
  • Number of updates: 64
  • Update frequency: every 25.2 days
  • Top authors: scriptstown (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /68,787 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.14ms] Passed 4 tests

An overview of server-side resources used by Contact Form Query
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.48 ▲6.62
Dashboard /wp-admin3.58 ▲0.2350.83 ▼8.37
Posts /wp-admin/edit.php3.69 ▲0.3447.99 ▼0.46
Add New Post /wp-admin/post-new.php6.16 ▲0.2882.73 ▼14.34
Media Library /wp-admin/upload.php3.50 ▲0.2743.33 ▲8.77
Settings /wp-admin/admin.php?page=stcfq_settings3.5436.53
Messages /wp-admin/admin.php?page=stcfq_messages3.5235.50

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 48 new files
Database: 1 new table, 6 new options
New tables
wp_stcfq_queries
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Contact Form Query: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲11614.73 ▲0.441.64 ▼0.1342.30 ▲4.32
Dashboard /wp-admin2,275 ▲985.65 ▲0.0497.35 ▲12.6842.94 ▲1.32
Posts /wp-admin/edit.php2,138 ▲382.13 ▲0.1533.58 ▼8.1933.41 ▼6.22
Add New Post /wp-admin/post-new.php1,723 ▲19722.36 ▼0.75683.53 ▲17.2146.09 ▼11.11
Media Library /wp-admin/upload.php1,444 ▲444.18 ▼0.0597.35 ▲5.5439.52 ▼3.39
Settings /wp-admin/admin.php?page=stcfq_settings1,6592.2733.3745.70
Messages /wp-admin/admin.php?page=stcfq_messages1,0872.1729.1540.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_stcfq_queries
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: form, notification, message, entry, contact form...

contact-form-query/contact-form-query.php Passed 13 tests

The main file in "Contact Form Query" v. 1.7.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
136 characters long description:
Add a contact form and receive new message notifications directly to your WordPress admin and to your email. Search and filter messages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,751 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP28483522,659
CSS1123761,179
JavaScript43511504
PO File1171215395
JSON10014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity32.78
▷ Minimum class complexity1.00
▷ Maximum class complexity95.00
Average method complexity5.47
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods64
▷ Static methods6195.31%
▷ Public methods6195.31%
▷ Protected methods00.00%
▷ Private methods34.69%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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