89% contact-form-7-elavon-converge

Code Review | Accept Elavon Payments using Contact Form 7

WordPress plugin Accept Elavon Payments using Contact Form 7 scored89%from 54 tests.

About plugin

  • Plugin page: contact-form-7-el...
  • Plugin version: 3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Aug 17, 2023
  • Number of updates: 65
  • Update frequency: every 40.4 days
  • Top authors: zealopensource (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /5,957 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.37ms] Passed 4 tests

Server-side resources used by Accept Elavon Payments using Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.62 ▼8.23
Dashboard /wp-admin3.31 ▲0.0045.32 ▼6.98
Posts /wp-admin/edit.php3.36 ▲0.0049.57 ▼0.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.12 ▼5.48
Media Library /wp-admin/upload.php3.23 ▲0.0036.26 ▲0.25

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Accept Elavon Payments using Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.22 ▼1.344.40 ▲2.2341.63 ▼7.58
Dashboard /wp-admin2,206 ▲184.85 ▼0.06108.31 ▲7.0039.58 ▼0.58
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0043.43 ▲6.4134.55 ▼1.35
Add New Post /wp-admin/post-new.php1,534 ▼023.24 ▲0.10609.22 ▼48.3443.72 ▼11.92
Media Library /wp-admin/upload.php1,382 ▼34.20 ▲0.0195.58 ▼6.9840.52 ▼2.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 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
The SRP test was a success

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 86% 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 36 tag instead of maximum 10
The official readme.txt might help

contact-form-7-elavon-converge/accept-elavon-payments-using-contact-form-7.php 77% from 13 tests

The principal PHP file in "Accept Elavon Payments using Contact Form 7" v. 3.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-7-elavon-converge.php" instead of "accept-elavon-payments-using-contact-form-7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,455 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS148641,304
PHP3196791,151

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
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
4 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png63.45KB29.54KB▼ 53.45%
images/elavon-icon.png1.13KB0.70KB▼ 37.94%
assets/screenshot-2.png16.21KB6.82KB▼ 57.94%
assets/screenshot-3.png18.27KB9.02KB▼ 50.60%