84% contact-form-7-group-mail

Code Review | Contact Form 7 Group Mail

WordPress plugin Contact Form 7 Group Mail scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-gr...
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2012
  • Latest release: May 26, 2018
  • Number of updates: 45
  • Update frequency: every 45.4 days
  • Top authors: gutobenn (62.22%)gutob (40%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /6,016 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.89ms] Passed 4 tests

A check of server-side resources used by Contact Form 7 Group Mail
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.08 ▲0.41
Dashboard /wp-admin3.33 ▲0.0245.13 ▼6.72
Posts /wp-admin/edit.php3.38 ▲0.0247.69 ▼0.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.91 ▼7.97
Media Library /wp-admin/upload.php3.25 ▲0.0233.86 ▼4.67

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7 Group Mail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.59 ▼0.781.96 ▲0.0146.60 ▼1.99
Dashboard /wp-admin2,203 ▲184.87 ▼0.98127.38 ▲27.2743.01 ▲0.43
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0238.67 ▲0.2635.51 ▲2.53
Add New Post /wp-admin/post-new.php1,537 ▲1823.38 ▲0.02620.82 ▼56.8959.20 ▼9.18
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0494.76 ▼10.3341.42 ▼3.53

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-group-mail/contact-form-7-group-mail.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

contact-form-7-group-mail/contact-form-7-group-mail.php Passed 13 tests

The primary PHP file in "Contact Form 7 Group Mail" version 1.7.2 is used by WordPress to initiate all plugin functionality
125 characters long description:
Send 'Contact Form 7' mails to all users of any group (admins, editors, authors, contributors, subscribers and custom roles).

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
There were no executable files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1443884

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin