10% eway-crm-extension-for-contact-form-7

Code Review | eWay-CRM Extension for Contact Form 7

WordPress plugin eWay-CRM Extension for Contact Form 7 scored10%from 54 tests.

About plugin

  • Plugin page: eway-crm-extensio...
  • Plugin version: 1.1.20
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2019
  • Latest release: Sep 1, 2023
  • Number of updates: 50
  • Update frequency: every 29.0 days
  • Top authors: rstefko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,255 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/eway-crm-extension-for-contact-form-7/CF7EWFunctions.php+120
    file_get_contents(wp-content/plugins/eway-crm-extension-for-contact-form-7\CF7EWLog.txt): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.32MB] [CPU: ▼1.69ms] Passed 4 tests

An overview of server-side resources used by eWay-CRM Extension for Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3442.26 ▼1.42
Dashboard /wp-admin3.65 ▲0.3551.98 ▼0.79
Posts /wp-admin/edit.php3.70 ▲0.3448.58 ▼0.40
Add New Post /wp-admin/post-new.php6.17 ▲0.2891.07 ▼4.15
Media Library /wp-admin/upload.php3.56 ▲0.3337.70 ▲2.07
eWay-CRM CF7 Extension /wp-admin/options-general.php?page=manage_eway_crm_cf7_extension3.5650.23

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

Filesystem and database footprint
Please fix the following
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/eway-crm-extension-for-contact-form-7/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/eway-crm-extension-for-contact-form-7\\CF7EWLog.txt"
Filesystem: 10 new files
Database: 2 new tables, 6 new options
New tables
wp_eway_cf7_settings
wp_eway_cf7_fields
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for eWay-CRM Extension for Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.101.73 ▼0.1344.99 ▼0.63
Dashboard /wp-admin2,210 ▲255.79 ▲0.7698.61 ▼21.1638.42 ▼6.90
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0134.80 ▼3.2132.44 ▼4.64
Add New Post /wp-admin/post-new.php1,545 ▲318.03 ▼4.81606.02 ▼65.7755.31 ▼2.89
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.01100.81 ▼1.7345.27 ▼2.16
eWay-CRM CF7 Extension /wp-admin/options-general.php?page=manage_eway_crm_cf7_extension8962.0224.6930.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/eway-crm-extension-for-contact-form-7/index.php+103
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=manage_eway_crm_cf7_extension
    • > Notice in wp-content/plugins/eway-crm-extension-for-contact-form-7/CF7EWAdminPage.php+303
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/options-general.php?page=manage_eway_crm_cf7_extension
    • > Notice in wp-content/plugins/eway-crm-extension-for-contact-form-7/CF7EWAdminPage.php+288
    Undefined index: url
    • > GET request to /wp-admin/options-general.php?page=manage_eway_crm_cf7_extension
    • > Notice in wp-content/plugins/eway-crm-extension-for-contact-form-7/CF7EWAdminPage.php+293
    Undefined index: eway_user
    • > GET request to /wp-admin/options-general.php?page=manage_eway_crm_cf7_extension
    • > Notice in wp-content/plugins/eway-crm-extension-for-contact-form-7/CF7EWAdminPage.php+298
    Undefined index: eway_clientid
    • > GET request to /wp-admin/options-general.php?page=manage_eway_crm_cf7_extension
    • > Notice in wp-content/plugins/eway-crm-extension-for-contact-form-7/CF7EWAdminPage.php+303
    Undefined index: eway_clientsecret

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were found

eway-crm-extension-for-contact-form-7/index.php 92% from 13 tests

The entry point to "eWay-CRM Extension for Contact Form 7" version 1.1.20 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("eway-crm-extension-for-contact-form-7.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected1,833 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP64721,0671,789
SVG20144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity53.33
▷ Minimum class complexity1.00
▷ Maximum class complexity158.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods174
▷ Static methods00.00%
▷ Public methods15589.08%
▷ Protected methods00.00%
▷ Private methods1910.92%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants25
▷ Global constants25100.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
PNG images were not found in this plugin