Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.44ms] Passed 4 tests
This is a short check of server-side resources used by CardGate Payments for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 40.77 ▲1.09 |
Dashboard /wp-admin | 3.46 ▲0.11 | 49.54 ▼8.73 |
Posts /wp-admin/edit.php | 3.58 ▲0.21 | 50.73 ▲0.75 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 82.43 ▼10.86 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 46.11 ▲13.14 |
Payments Table /wp-admin/admin.php?page=cardgate_payments_table | 3.46 | 39.03 |
Settings /wp-admin/admin.php?page=cardgate_menu | 3.35 | 41.21 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cardgate_payments |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
cgp_version |
widget_recent-posts |
widget_theysaidso_widget |
cardgate_version |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for CardGate Payments for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲61 | 14.25 ▼0.02 | 1.53 ▼0.28 | 37.00 ▲0.43 |
Dashboard /wp-admin | 2,235 ▲55 | 5.56 ▼0.08 | 86.16 ▼1.96 | 73.79 ▲35.04 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 2.00 ▲0.02 | 35.49 ▼5.80 | 31.98 ▼6.84 |
Add New Post /wp-admin/post-new.php | 1,718 ▲190 | 22.21 ▼0.96 | 680.19 ▼4.65 | 52.00 ▼15.50 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.12 ▼0.08 | 95.90 ▼4.80 | 71.13 ▲25.71 |
Payments Table /wp-admin/admin.php?page=cardgate_payments_table | 961 | 2.16 | 27.07 | 31.16 |
Settings /wp-admin/admin.php?page=cardgate_menu | 1,017 | 2.16 | 24.54 | 28.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_cardgate_payments
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- db_upgraded
- cardgate_version
- widget_theysaidso_widget
- can_compress_scripts
- cgp_version
- widget_recent-comments
- theysaidso_admin_options
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CGP_Common_Gateway' not found in wp-content/plugins/cardgate/classes/WC_CardgateIdealqr.php:11
- > PHP Fatal error
Uncaught Error: Class 'CGP_Common_Gateway' not found in wp-content/plugins/cardgate/classes/WC_CardgatePaysafecash.php:11
- > PHP Fatal error
Uncaught Error: Class 'CGP_Common_Gateway' not found in wp-content/plugins/cardgate/classes/WC_CardgateSpraypay.php:11
- > PHP Fatal error
Uncaught Error: Class 'CGP_Common_Gateway' not found in wp-content/plugins/cardgate/classes/WC_CardgateAfterpay.php:11
- > PHP Fatal error
Uncaught Error: Class 'CGP_Common_Gateway' not found in wp-content/plugins/cardgate/classes/WC_CardgateOnlineueberweisen.php:11
- > PHP Fatal error
Uncaught Error: Class 'CGP_Common_Gateway' not found in wp-content/plugins/cardgate/classes/WC_CardgateGiropay.php:11
- > PHP Fatal error
Uncaught Error: Class 'CGP_Common_Gateway' not found in wp-content/plugins/cardgate/classes/WC_CardgateSofortbanking.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/cardgate/classes/Cardgate_PaymentsListTable.php:11
- > PHP Fatal error
Uncaught Error: Class 'CGP_Common_Gateway' not found in wp-content/plugins/cardgate/classes/WC_CardgatePaysafecard.php:11
- > PHP Fatal error
Uncaught Error: Class 'cardgate\\api\\Entity' not found in wp-content/plugins/cardgate/cardgate-clientlib-php/src/Item.php:78
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cardgate/cardgate.php Passed 13 tests
The principal PHP file in "CardGate Payments for WooCommerce" v. 3.1.26 is loaded by WordPress automatically on each request
58 characters long description:
Integrates Cardgate Gateway for WooCommerce into WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,265 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 693 | 2,317 | 3,126 |
PO File | 1 | 51 | 53 | 134 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 1 | 2.50% |
▷ Concrete classes | 39 | 97.50% |
▷ Final classes | 14 | 35.90% |
Methods | 207 | |
▷ Static methods | 6 | 2.90% |
▷ Public methods | 196 | 94.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 5.31% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 35 | 100.00% |
▷ Public constants | 35 | 100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cgp_icon-16x16_color.png | 1.30KB | 0.63KB | ▼ 51.65% |
images/cgp_icon-16x16.png | 0.44KB | 0.62KB | 0.00% |
images/cardgate.png | 22.06KB | 11.59KB | ▼ 47.44% |
images/cgp_icon-16x16_bw.png | 0.44KB | 0.62KB | 0.00% |