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.48MB] [CPU: ▼2.63ms] Passed 4 tests
A check of server-side resources used by CardCom Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 50.13 ▲10.71 |
Dashboard /wp-admin | 3.78 ▲0.48 | 46.20 ▼8.34 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 52.99 ▲7.94 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 82.87 ▼11.57 |
Media Library /wp-admin/upload.php | 3.70 ▲0.48 | 37.14 ▲1.45 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
CardCom Payment Gateway: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.47 ▼0.11 | 1.95 ▲0.17 | 36.39 ▼7.85 |
Dashboard /wp-admin | 2,203 ▲15 | 5.90 ▲0.02 | 106.90 ▼8.07 | 39.99 ▼5.77 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.04 ▲0.04 | 39.47 ▲3.21 | 33.49 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.46 ▲0.23 | 675.56 ▲6.08 | 60.69 ▲9.70 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.04 | 93.08 ▼10.23 | 42.40 ▼2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-cardcom-payment-gateway/cardcom.php:12
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Invalid url: ""
woo-cardcom-payment-gateway/cardcom.php 92% from 13 tests
This is the main PHP file of "CardCom Payment Gateway" version 3.4.8.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-cardcom-payment-gateway.php" instead of "cardcom.php")
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
Everything looks great! No dangerous files found in this plugin2,630 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 207 | 448 | 2,365 |
PO File | 1 | 92 | 105 | 214 |
JavaScript | 1 | 2 | 4 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 344.00 |
▷ Minimum class complexity | 344.00 |
▷ Maximum class complexity | 344.00 |
Average method complexity | 5.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.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 | 79 | |
▷ Static methods | 19 | 24.05% |
▷ Public methods | 77 | 97.47% |
▷ Protected methods | 1 | 1.27% |
▷ Private methods | 1 | 1.27% |
Functions | 3 | |
▷ Named functions | 3 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cards.png | 2.11KB | 1.81KB | ▼ 14.01% |