84% more-mails-for-cf7

Code Review | More Mails for CF7

WordPress plugin More Mails for CF7 scored84%from 54 tests.

About plugin

  • Plugin page: more-mails-for-cf7
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 23, 2019
  • Latest release: Feb 17, 2023
  • Number of updates: 11
  • Update frequency: every 124.6 days
  • Top authors: lev0 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /3,139 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

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

Server-side resources used by More Mails for CF7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.87 ▲3.23
Dashboard /wp-admin3.33 ▼0.0149.51 ▼19.16
Posts /wp-admin/edit.php3.38 ▲0.0347.42 ▼6.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.72 ▼11.94
Media Library /wp-admin/upload.php3.26 ▲0.0336.55 ▲0.97
More mails /wp-admin/admin.php?page=more-mails-for-cf7-admin3.2231.77

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
more-mails-for-cf7
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for More Mails for CF7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.332.03 ▲0.5343.38 ▲1.01
Dashboard /wp-admin2,198 ▲215.59 ▼0.0888.44 ▲0.6739.32 ▼2.29
Posts /wp-admin/edit.php2,097 ▼62.00 ▲0.0435.76 ▼1.5535.89 ▲4.25
Add New Post /wp-admin/post-new.php1,526 ▼1223.32 ▲0.17696.39 ▲11.7956.07 ▲3.22
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.00102.47 ▼11.2247.71 ▲1.14
More mails /wp-admin/admin.php?page=more-mails-for-cf7-admin7932.0325.6226.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | 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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MoreMailsForCF7\\is_admin() in wp-content/plugins/more-mails-for-cf7/more-mails-for-cf7.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: contact, form, feedback, contact form, multiple receipients...

more-mails-for-cf7/more-mails-for-cf7.php 92% from 13 tests

The principal PHP file in "More Mails for CF7" v. 1.2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin213 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21511213

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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
Namespaces1
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%
Functions14
▷ Named functions17.14%
▷ Anonymous functions1392.86%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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