Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.19ms] Passed 4 tests
This is a short check of server-side resources used by Payment Gateway for Cpay with WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.13 ▲2.94 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.27 ▼13.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.07 ▼3.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.91 ▼25.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.38 ▲1.04 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Payment Gateway for Cpay with WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.06 | 1.73 ▲0.06 | 43.47 ▲2.03 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.05 | 85.55 ▼0.78 | 41.26 ▼3.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 32.95 ▼4.17 | 36.50 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.04 ▼0.24 | 675.42 ▼10.76 | 52.72 ▼3.08 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.14 | 98.41 ▼19.27 | 44.39 ▼5.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-casys-payment/classes/class-wc-payment-gateway-for-cpay-with-woocommerce.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
Please fix the following attributes:
- Donate link: Invalid URI found ("")
wc-casys-payment/payment-gateway-for-cpay-with-woocommerce.php 77% from 13 tests
The main file in "Payment Gateway for Cpay with WooCommerce" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/i18n/languages/")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-casys-payment.php" instead of "payment-gateway-for-cpay-with-woocommerce.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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected362 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 99 | 325 |
Markdown | 1 | 9 | 0 | 37 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 1 | 10.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin