Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼11.19ms] Passed 4 tests
A check of server-side resources used by Credit Card Payments for Woocommerce with CyberSource
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.11 ▼0.52 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.90 ▼13.55 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.37 ▼7.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.90 ▼23.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.40 ▲1.91 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Credit Card Payments for Woocommerce with CyberSource
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.28 ▼0.08 | 1.61 ▲0.01 | 37.60 ▼5.55 |
Dashboard /wp-admin | 2,198 ▲23 | 5.59 ▼0.12 | 81.70 ▼16.26 | 36.80 ▼7.02 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 41.06 ▲0.95 | 35.04 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,528 ▼3 | 23.13 ▲0.02 | 663.53 ▲13.38 | 55.27 ▲3.38 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.24 ▼0.02 | 97.94 ▲3.80 | 42.04 ▲0.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: woocommerce, cybersource, payments, pci
credit-card-payments-for-woocommerce-with-cybersource/woocommerce-cybersource-cc.php 85% from 13 tests
The primary PHP file in "Credit Card Payments for Woocommerce with CyberSource" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("credit-card-payments-for-woocommerce-with-cybersource.php" instead of "woocommerce-cybersource-cc.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.5.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected862 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 212 | 194 | 805 |
JavaScript | 1 | 11 | 20 | 57 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin