78% cf7-smtp

Code Review | SMTP for Contact From 7

WordPress plugin SMTP for Contact From 7 scored78%from 54 tests.

About plugin

  • Plugin page: cf7-smtp
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2022
  • Latest release: Nov 21, 2022
  • Number of updates: 10
  • Update frequency: every 1.0 days
  • Top authors: codekraft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /1,885 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼8.75ms] Passed 4 tests

Analyzing server-side resources used by SMTP for Contact From 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.74 ▼3.00
Dashboard /wp-admin3.41 ▲0.0750.19 ▼16.16
Posts /wp-admin/edit.php3.52 ▲0.1751.87 ▲1.12
Add New Post /wp-admin/post-new.php5.99 ▲0.1199.82 ▼16.94
Media Library /wp-admin/upload.php3.33 ▲0.1039.12 ▲4.32

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
cf7-smtp-options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for SMTP for Contact From 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.38 ▲0.002.24 ▲0.5542.97 ▼2.70
Dashboard /wp-admin2,198 ▲185.64 ▼0.0693.44 ▼4.8942.82 ▲4.27
Posts /wp-admin/edit.php2,109 ▲91.97 ▼0.0539.76 ▼1.2437.17 ▲1.95
Add New Post /wp-admin/post-new.php1,532 ▼2217.72 ▼5.60616.89 ▼5.5553.51 ▼9.91
Media Library /wp-admin/upload.php1,409 ▲154.28 ▲0.0599.93 ▼0.2844.64 ▲1.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cf7-smtp/cf7-smtp.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/Settings_Page.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Core\\Mailer' not found in wp-content/plugins/cf7-smtp/backend/views/send_mail.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/Enqueue.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/ActDeact.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/core/Mailer.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/core/Cron.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-smtp/backend/views/admin.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/rest/Rest_SendMail.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/Notices.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/ImpExp.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #1 in cf7-smtp/assets to your readme.txt
Please take inspiration from this readme.txt

cf7-smtp/cf7-smtp.php 92% from 13 tests

The primary PHP file in "SMTP for Contact From 7" version 0.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,706 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP306321,4292,444
HTML326167131
JSON200129
CSS1001
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity20.59
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods140
▷ Static methods3021.43%
▷ Public methods12186.43%
▷ Protected methods00.00%
▷ Private methods1913.57%
Functions21
▷ Named functions733.33%
▷ Anonymous functions1466.67%
Constants18
▷ Global constants633.33%
▷ Class constants1266.67%
▷ Public constants1191.67%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin