Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.82MB] [CPU: ▲1.06ms] Passed 4 tests
This is a short check of server-side resources used by Culqi
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 46.09 ▲3.47 |
Dashboard /wp-admin | 4.23 ▲0.88 | 59.94 ▲1.33 |
Posts /wp-admin/edit.php | 4.26 ▲0.90 | 57.12 ▲8.51 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.94 | 94.70 ▼9.07 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 45.76 ▲11.52 |
Orders /wp-admin/edit.php?post_type=culqi_orders | 4.17 | 47.49 |
Webhooks /wp-admin/admin.php?page=fullculqi_webhooks | 4.12 | 41.29 |
Culqi /wp-admin/admin.php?page=fullculqi_settings | 4.21 | 44.60 |
Charges /wp-admin/edit.php?post_type=culqi_charges | 4.17 | 46.96 |
FullCulqi Integration /wp-admin/index.php?page=fullculqi-welcome | 4.13 | 41.67 |
Customers /wp-admin/edit.php?post_type=culqi_customers | 4.17 | 51.23 |
Server storage [IO: ▲2.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 314 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
fullculqi_2_0_0_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Culqi
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲45 | 14.67 ▲0.33 | 1.61 ▼0.16 | 43.83 ▼0.25 |
Dashboard /wp-admin | 2,200 ▲20 | 5.64 ▼0.05 | 93.39 ▼4.16 | 41.15 ▼6.58 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.99 ▲0.02 | 40.21 ▲2.57 | 36.66 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.66 ▲0.37 | 658.91 ▼63.11 | 53.74 ▼5.26 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.25 ▲0.15 | 99.25 ▲2.05 | 43.98 ▲2.85 |
Orders /wp-admin/edit.php?post_type=culqi_orders | 1,125 | 2.01 | 38.21 | 28.58 |
Webhooks /wp-admin/admin.php?page=fullculqi_webhooks | 824 | 2.04 | 25.69 | 26.47 |
Culqi /wp-admin/admin.php?page=fullculqi_settings | 2,463 | 1.95 | 32.91 | 70.76 |
Charges /wp-admin/edit.php?post_type=culqi_charges | 1,112 | 2.02 | 40.94 | 32.87 |
FullCulqi Integration /wp-admin/index.php?page=fullculqi-welcome | 1,023 | 2.22 | 29.27 | 52.16 |
Customers /wp-admin/edit.php?post_type=culqi_customers | 1,107 | 2.07 | 36.66 | 31.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- fullculqi_2_0_0_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 18× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/culqi-checkout/vendor/rmccue/requests/examples/cookie.php
- > /wp-content/plugins/culqi-checkout/resources/layouts/admin/settings/input_password.php
- > /wp-content/plugins/culqi-checkout/includes/class-fullculqi-wc.php
- > /wp-content/plugins/culqi-checkout/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/culqi-checkout/vendor/rmccue/requests/examples/post.php
- > /wp-content/plugins/culqi-checkout/admin/layouts/modal_merchants.php
- > /wp-content/plugins/culqi-checkout/resources/layouts/admin/metaboxes/order_source.php
- > /wp-content/plugins/culqi-checkout/vendor/rmccue/requests/examples/multiple.php
- > /wp-content/plugins/culqi-checkout/vendor/rmccue/requests/examples/get.php
- > /wp-content/plugins/culqi-checkout/resources/layouts/admin/metaboxes/charge_source.php
- 176× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/culqi-checkout/vendor/rmccue/requests/library/Requests/Exception/HTTP/409.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/culqi-checkout/vendor/rmccue/requests/library/Requests/Exception/HTTP/412.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/culqi-checkout/vendor/rmccue/requests/bin/create_pear_package.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/culqi-checkout/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/culqi-checkout/resources/layouts/admin/settings/input_commerce.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/culqi-checkout/resources/layouts/admin/addons_page.php:3
- > PHP Warning
Use of undefined constant MPCULQI_URLAPI_MERCHANT_INTEG - assumed 'MPCULQI_URLAPI_MERCHANT_INTEG' (this will throw an Error in a future version of PHP) in wp-content/plugins/culqi-checkout/resources/layouts/admin/settings/input_enviroment.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/culqi-checkout/includes/class-fullculqi-endpoints.php:15
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/culqi-checkout/vendor/rmccue/requests/library/Requests/Exception/HTTP/505.php:13
- > PHP Warning
Use of undefined constant MPCULQI_URLAPI_ORDERCHARGES_INTEG - assumed 'MPCULQI_URLAPI_ORDERCHARGES_INTEG' (this will throw an Error in a future version of PHP) in wp-content/plugins/culqi-checkout/resources/layouts/admin/settings/input_enviroment.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: checkout, payment method, culqi, per, woocommerce
culqi-checkout/index.php 77% from 13 tests
The main file in "Culqi" v. 3.0.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("culqi-checkout.php" instead of "index.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "5.0")
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 plugin20,866 lines of code in 270 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 198 | 3,132 | 5,614 | 13,236 |
CSS | 11 | 306 | 79 | 3,282 |
JavaScript | 14 | 231 | 320 | 1,617 |
Markdown | 15 | 463 | 0 | 1,123 |
PO File | 2 | 433 | 598 | 973 |
SVG | 18 | 4 | 0 | 341 |
JSON | 4 | 1 | 0 | 171 |
YAML | 3 | 10 | 5 | 58 |
XML | 2 | 2 | 0 | 49 |
Bourne Shell | 2 | 4 | 0 | 12 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 133 | |
▷ Abstract classes | 3 | 2.26% |
▷ Concrete classes | 130 | 97.74% |
▷ Final classes | 0 | 0.00% |
Methods | 699 | |
▷ Static methods | 117 | 16.74% |
▷ Public methods | 640 | 91.56% |
▷ Protected methods | 52 | 7.44% |
▷ Private methods | 7 | 1.00% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
Constants | 62 | |
▷ Global constants | 26 | 41.94% |
▷ Class constants | 36 | 58.06% |
▷ Public constants | 36 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.41MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/assets/images/letsgo_1.png | 15.32KB | 6.30KB | ▼ 58.87% |
resources/assets/images/letsgo_2.png | 21.49KB | 7.98KB | ▼ 62.85% |
includes/3rd-party/plugins/woocommerce/assets/images/cards.png | 22.59KB | 6.96KB | ▼ 69.19% |
admin/assets/images/letsgo_1.png | 15.32KB | 6.30KB | ▼ 58.87% |
resources/assets/images/letsgo_3.png | 17.72KB | 7.52KB | ▼ 57.58% |