Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.81ms] Passed 4 tests
Analyzing server-side resources used by Craftgate Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.63 ▼0.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.81 ▼0.35 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 44.47 ▼2.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.53 ▼6.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.14 ▼1.45 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_craftgate_card |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Craftgate Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.19 ▼1.42 | 1.79 ▼0.02 | 42.49 ▼1.29 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▲0.02 | 108.87 ▲4.28 | 42.41 ▲2.83 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 39.24 ▲1.66 | 34.91 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,535 ▲15 | 23.09 ▲1.99 | 651.49 ▼5.99 | 47.48 ▼5.58 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.20 ▼0.08 | 95.47 ▼8.01 | 40.16 ▼4.23 |
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
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_craftgate_card
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Craftgate\\Adapter\\BaseAdapter' not found in wp-content/plugins/craftgate-payment-gateway/includes/lib/craftgate/src/Adapter/PaymentAdapter.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
9 plugin tags: sanal pos, czdan, kredi kart, deme formu, pazaryeri...
craftgate-payment-gateway/craftgate-payment-gateway.php Passed 13 tests
The main file in "Craftgate Payment Gateway" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
Accept debit/credit card payments easily and directly on your WordPress site using Craftgate.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,000 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 156 | 223 | 873 |
PO File | 1 | 37 | 42 | 106 |
CSS | 1 | 3 | 7 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 8 | 12.90% |
▷ Public methods | 34 | 54.84% |
▷ Protected methods | 4 | 6.45% |
▷ Private methods | 24 | 38.71% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/card-brands.png | 25.37KB | 7.98KB | ▼ 68.56% |