Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.29ms] Passed 4 tests
Server-side resources used by درگاه پرداخت پی استار برای فرم های Contact 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.56 ▼3.45 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.50 ▼5.72 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.09 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.16 ▲4.35 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.23 ▼3.53 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_paystar_contact_form_7 |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
cf7pp_options |
can_compress_scripts |
cf7pp_my_plugin_notice_shown |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by درگاه پرداخت پی استار برای فرم های Contact 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.24 ▼1.14 | 4.50 ▲2.67 | 40.69 ▼2.83 |
Dashboard /wp-admin | 2,211 ▲26 | 5.75 ▼0.10 | 103.94 ▼21.50 | 46.34 ▼7.42 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.98 ▼0.04 | 35.50 ▼0.27 | 40.63 ▲3.84 |
Add New Post /wp-admin/post-new.php | 1,468 ▼51 | 17.37 ▼5.87 | 630.99 ▼49.38 | 68.04 ▲9.30 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.19 ▼0.07 | 94.02 ▼10.24 | 49.66 ▲4.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_paystar_contact_form_7
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/paystar-payment-for-cf7/gateway_func.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPCF7_ContactForm' not found in wp-content/plugins/paystar-payment-for-cf7/redirect.php:6
- > PHP Fatal error
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: contact forms, form makers, paystar, payment, wordpress...
paystar-payment-for-cf7/gateway_func.php 92% from 13 tests
"درگاه پرداخت پی استار برای فرم های Contact 7" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("paystar-payment-for-cf7.php" instead of "gateway_func.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected647 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 12 | 578 |
PO File | 1 | 25 | 25 | 69 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 12 | 75.00% |
▷ Anonymous functions | 4 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 2.30KB | 2.32KB | 0.00% |