Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.77ms] Passed 4 tests
Server-side resources used by WooCommerce Payment Gateway - Capital ePay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.31 ▼3.23 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.77 ▼1.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.86 ▼1.98 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.51 ▼0.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.01 ▼0.31 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Payment Gateway - Capital ePay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.25 ▼0.03 | 2.13 ▲0.11 | 43.42 ▲1.17 |
Dashboard /wp-admin | 2,197 ▲17 | 5.55 ▼0.11 | 83.37 ▼18.13 | 39.66 ▼3.31 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.15 ▲0.14 | 40.33 ▲2.40 | 35.10 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.95 ▼0.08 | 623.77 ▼34.75 | 52.44 ▲2.29 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.17 ▼0.07 | 99.41 ▼11.57 | 43.27 ▼2.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/capital-epay-woocommerce-payment-gateway/credit-card/connection.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/capital-epay-woocommerce-payment-gateway/woocommerce-capitalepay.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/capital-epay-woocommerce-payment-gateway/e-check/class-cepay-payment-gateway-echeck.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/capital-epay-woocommerce-payment-gateway/credit-card/class-cepay-payment-gateway-cc.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #3, #4, #5, #6, #7, #8 in capital-epay-woocommerce-payment-gateway/assets to your readme.txt
capital-epay-woocommerce-payment-gateway/woocommerce-capitalepay.php 85% from 13 tests
The primary PHP file in "WooCommerce Payment Gateway - Capital ePay" version 3.3.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("capital-epay-woocommerce-payment-gateway.php" instead of "woocommerce-capitalepay.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,573 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 303 | 391 | 1,445 |
CSS | 1 | 16 | 1 | 94 |
JavaScript | 2 | 11 | 5 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 55.50 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected