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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.61 ▼7.06 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.42 ▼1.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.14 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.07 ▲1.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 14.43 ▲0.06 | 1.57 ▼0.21 | 37.41 ▼7.18 |
Dashboard /wp-admin | 2,217 ▲29 | 5.79 ▲0.91 | 96.67 ▼19.64 | 40.27 ▼4.45 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.06 ▲0.04 | 36.63 ▼1.54 | 33.95 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.15 ▼0.22 | 606.36 ▼71.29 | 55.76 ▲4.81 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.22 ▼0.00 | 97.35 ▼11.24 | 40.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 260 | 68 | 634 |
JavaScript | 2 | 20 | 3 | 66 |
CSS | 2 | 7 | 0 | 53 |
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 code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ccavenue.png | 35.01KB | 7.76KB | ▼ 77.83% |