78% cf7-cc-avenue-add-on

Code Review | Contact Form 7 - CCAvenue Add-on

WordPress plugin Contact Form 7 - CCAvenue Add-on scored78%from 54 tests.

About plugin

  • Plugin page: cf7-cc-avenue-add-on
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 24, 2018
  • Latest release: May 24, 2018
  • Number of updates: 3
  • Update frequency: every 10.0 days
  • Top authors: maheshbisen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Contact Form 7 - CCAvenue Add-on
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.61 ▼7.06
Dashboard /wp-admin3.31 ▲0.0147.42 ▼1.35
Posts /wp-admin/edit.php3.37 ▲0.0145.14 ▼2.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.07 ▲1.92
Media Library /wp-admin/upload.php3.24 ▲0.0136.81 ▲3.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
cf7ccav_options
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7 - CCAvenue Add-on
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7614.43 ▲0.061.57 ▼0.2137.41 ▼7.18
Dashboard /wp-admin2,217 ▲295.79 ▲0.9196.67 ▼19.6440.27 ▼4.45
Posts /wp-admin/edit.php2,100 ▲112.06 ▲0.0436.63 ▼1.5433.95 ▼0.88
Add New Post /wp-admin/post-new.php1,544 ▲1123.15 ▼0.22606.36 ▼71.2955.76 ▲4.81
Media Library /wp-admin/upload.php1,393 ▲54.22 ▼0.0097.35 ▼11.2440.86 ▼7.16

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • cf7ccav_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cf7-cc-avenue-add-on/assets/ccavenue/crypto.php
    • > /wp-content/plugins/cf7-cc-avenue-add-on/includes/ccavenue/crypto.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cf7-cc-avenue-add-on/ccavenue.php:36

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: contact form, contact form 7, ccavenue donation addon, ccavenue

cf7-cc-avenue-add-on/ccavenue.php 85% from 13 tests

The entry point to "Contact Form 7 - CCAvenue Add-on" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("cf7-cc-avenue-add-on.php" instead of "ccavenue.php")

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
No dangerous file extensions were detected753 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP826068634
JavaScript220366
CSS27053

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/ccavenue.png35.01KB7.76KB▼ 77.83%