Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.71MB] [CPU: ▲6.69ms] Passed 4 tests
Server-side resources used by Culqi Integracion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 45.97 ▲7.10 |
Dashboard /wp-admin | 4.09 ▲0.79 | 61.36 ▲14.31 |
Posts /wp-admin/edit.php | 4.12 ▲0.77 | 56.41 ▲8.05 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.79 | 94.63 ▼2.72 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 53.38 ▲17.28 |
Orders /wp-admin/edit.php?post_type=culqi_orders | 4.04 | 48.55 |
Settings /wp-admin/admin.php?page=fullculqi_settings | 3.92 | 39.68 |
FullCulqi Integration /wp-admin/index.php?page=fullculqi-welcome | 3.92 | 45.47 |
Add-ons /wp-admin/admin.php?page=fullculqi_addons | 3.93 | 40.30 |
Customers /wp-admin/edit.php?post_type=culqi_customers | 4.04 | 55.76 |
Webhooks /wp-admin/admin.php?page=fullculqi_webhooks | 3.92 | 41.66 |
Charges /wp-admin/edit.php?post_type=culqi_charges | 4.04 | 47.17 |
Server storage [IO: ▲1.36MB] [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: 309 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
fullculqi_2_0_0_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Culqi Integracion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲83 | 13.69 ▼0.70 | 1.81 ▼0.19 | 38.85 ▼9.95 |
Dashboard /wp-admin | 2,243 ▲58 | 5.84 ▼0.06 | 97.08 ▼5.59 | 40.85 ▼1.22 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.02 ▲0.01 | 35.10 ▼0.09 | 33.68 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,569 ▲156 | 23.27 ▲5.49 | 683.83 ▲60.98 | 68.14 ▲23.16 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.24 ▲0.12 | 113.02 ▲11.38 | 49.10 ▲1.07 |
Orders /wp-admin/edit.php?post_type=culqi_orders | 1,130 | 2.01 | 34.21 | 31.78 |
Settings /wp-admin/admin.php?page=fullculqi_settings | 885 | 2.07 | 24.14 | 25.05 |
FullCulqi Integration /wp-admin/index.php?page=fullculqi-welcome | 931 | 2.08 | 26.59 | 51.10 |
Add-ons /wp-admin/admin.php?page=fullculqi_addons | 929 | 2.03 | 25.39 | 31.75 |
Customers /wp-admin/edit.php?post_type=culqi_customers | 1,112 | 2.00 | 35.54 | 35.42 |
Webhooks /wp-admin/admin.php?page=fullculqi_webhooks | 833 | 2.17 | 24.25 | 27.15 |
Charges /wp-admin/edit.php?post_type=culqi_charges | 1,122 | 2.00 | 34.04 | 29.96 |
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 detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- fullculqi_2_0_0_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/examples/post.php
- > /wp-content/plugins/culqi-full-integration/resources/layouts/admin/settings/input_pubkey.php
- > /wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/examples/basic-auth.php
- > /wp-content/plugins/culqi-full-integration/resources/layouts/admin/settings/input_commerce.php
- > /wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/examples/get.php
- > /wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/examples/session.php
- > /wp-content/plugins/culqi-full-integration/resources/layouts/admin/settings/input_seckey.php
- > /wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/examples/cookie_jar.php
- > /wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/examples/multiple.php
- 184× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: title in wp-content/plugins/culqi-full-integration/resources/layouts/admin/notice-box.php on line 2
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/culqi-full-integration/vendor/gonzalesc/culqi-php/examples/06-create-customer.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/library/Requests/Exception/HTTP/414.php:13
- > PHP Fatal error
Uncaught Error: Class 'Culqi\\Client' not found in wp-content/plugins/culqi-full-integration/vendor/culqi/culqi-php/lib/Culqi/Resource.php:10
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/culqi-full-integration/vendor/gonzalesc/culqi-php/examples/01-create-token.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/tests/Proxy/HTTP.php:3
- > PHP Warning
require_once(wp-content/plugins/culqi-full-integration/vendor/gonzalesc/culqi-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/culqi-full-integration/vendor/gonzalesc/culqi-php/tests/TestAutoLoad.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/culqi-full-integration/includes/admin/class-fullculqi-upgrader.php:15
- > PHP Fatal error
Uncaught Error: Class 'Culqi\\Resource' not found in wp-content/plugins/culqi-full-integration/vendor/culqi/culqi-php/lib/Culqi/Charges.php:10
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/culqi-full-integration/vendor/rmccue/requests/library/Requests/Exception/HTTP/418.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: full integration, payment method, peru, culqi, woocommerce
culqi-full-integration/index.php 77% from 13 tests
Analyzing the main PHP file in "Culqi Integracion" version 2.0.5
The following require your attention:
- Git Repository: An alternative Git repository was detected
- Main file name: It is recommended to name the main PHP file as the plugin slug ("culqi-full-integration.php" instead of "index.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected15,750 lines of code in 233 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 187 | 3,089 | 5,251 | 11,886 |
Markdown | 17 | 549 | 0 | 1,322 |
PO File | 2 | 433 | 598 | 973 |
JavaScript | 8 | 203 | 194 | 799 |
CSS | 6 | 87 | 49 | 452 |
JSON | 5 | 2 | 0 | 195 |
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 cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 162 | |
▷ Abstract classes | 3 | 1.85% |
▷ Concrete classes | 159 | 98.15% |
▷ Final classes | 0 | 0.00% |
Methods | 789 | |
▷ Static methods | 114 | 14.45% |
▷ Public methods | 724 | 91.76% |
▷ Protected methods | 60 | 7.60% |
▷ Private methods | 5 | 0.63% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 60 | |
▷ Global constants | 8 | 13.33% |
▷ Class constants | 52 | 86.67% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.33MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/welcome.png | 24.13KB | 6.89KB | ▼ 71.46% |
resources/assets/images/letsgo_4.png | 38.36KB | 13.32KB | ▼ 65.27% |
resources/assets/images/letsgo_2.png | 21.49KB | 7.98KB | ▼ 62.85% |
resources/assets/images/icon_wp.png | 1.37KB | 1.74KB | 0.00% |
resources/assets/images/letsgo_1.png | 15.32KB | 6.30KB | ▼ 58.87% |