Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.13ms] Passed 4 tests
An overview of server-side resources used by Pay with Contact Form 7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.72 ▼3.74 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.14 ▼3.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.86 ▲2.98 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.90 ▼15.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.12 ▲2.75 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Pay with Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.15 ▼0.60 | 1.72 ▼0.08 | 44.42 ▲1.39 |
Dashboard /wp-admin | 2,203 ▲14 | 5.79 ▼0.28 | 94.08 ▼16.84 | 38.64 ▼7.13 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.03 ▼0.02 | 37.02 ▲0.53 | 33.47 ▲2.84 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.49 ▼1.02 | 706.11 ▲24.59 | 60.41 ▲7.45 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.04 | 97.20 ▲0.84 | 45.44 ▲1.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pay-with-contact-form-7/admin/partials/wpcmscf7-Main-List-Table.php on line 4
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/pay-with-contact-form-7/includes/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/pay-with-contact-form-7/index.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/pay-with-contact-form-7/admin/partials/WPCMSCF7-List-Table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pay-with-contact-form-7/admin/partials/WPCMSCF7-List-Table.php on line 4
- > PHP Fatal error
Uncaught Exception: Missing POST Data in wp-content/plugins/pay-with-contact-form-7/admin/partials/wpcmscf7-paypalipn.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pay-with-contact-form-7/admin/partials/wpcmscf7-admin-paypal-redirect.php:9
- > PHP Warning
The use statement with non-compound name 'PaypalIPN' has no effect in wp-content/plugins/pay-with-contact-form-7/admin/partials/ipn.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/pay-with-contact-form-7/admin/partials/wpcmscf7-Main-List-Table.php on line 4
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/pay-with-contact-form-7/admin/index.php on line 2
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: There are too many tags (20 tag instead of maximum 10)
- Donate link: Invalid url: "www.cmsminds.com"
pay-with-contact-form-7/wpcmscf7.php 85% from 13 tests
"Pay with Contact Form 7" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pay-with-contact-form-7.php" instead of "wpcmscf7.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin1,539 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 379 | 730 | 1,498 |
JavaScript | 2 | 14 | 54 | 31 |
CSS | 2 | 1 | 8 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 2 | 3.23% |
▷ Public methods | 54 | 87.10% |
▷ Protected methods | 1 | 1.61% |
▷ Private methods | 7 | 11.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin