Cosmos Pay 1.0.22

Does Cosmos Pay work with WordPress 6.5.3 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
3PHP fatal errors
3PHP warnings
No JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

Memory usage: 19.86 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.5.3
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs <10
WordPress.org page https://wordpress.org/plugins/cosmos-pay/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=cosmos-pay%2Fcosmos-woocommerce.php&plugin_status=all&paged=1&s&_wpnonce=4bd9dc1065
Aspect after-activation
HTTP status 200
Load time 0.465 s
Memory usage 3.4 MiB
JS errors None
Resource errors None

Cosmos Pay

Page screenshot: Cosmos Pay
URL /wp-admin/admin.php?page=cosmos-pay-settings
Aspect menu-item
HTTP status 200
Load time 0.140 s
Memory usage N/A
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 500
Load time 0.055 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.395 s0.336 s-0.059 s3.44 MiB3.46 MiB+ 23.39 KiB
/wp-admin/edit.php0.244 s0.241 s-0.003 s3.46 MiB3.48 MiB+ 23.76 KiB
/wp-admin/post-new.php0.951 s0.609 s-0.342 s5.59 MiB5.63 MiB+ 44.07 KiB
/wp-admin/upload.php0.637 s0.388 s-0.249 s3.38 MiB3.39 MiB+ 6.77 KiB
/wp-admin/options-writing.php0.233 s0.393 s+0.160 s3.37 MiB3.37 MiB- 1.63 KiB
/wp-admin/media-new.php0.330 s0.276 s-0.054 s3.35 MiB3.37 MiB+ 19.22 KiB
/wp-admin/edit-tags.php?taxonomy=category0.206 s0.202 s-0.004 s3.37 MiB3.39 MiB+ 23.77 KiB
/wp-admin/post-new.php?post_type=page0.554 s0.595 s+0.041 s5.59 MiB5.63 MiB+ 44.08 KiB
/wp-admin/options-discussion.php0.346 s0.267 s-0.079 s3.36 MiB3.37 MiB+ 8.77 KiB
/wp-admin/edit-comments.php0.256 s0.231 s-0.025 s3.39 MiB3.4 MiB+ 6.44 KiB
Average 0.415 s0.354 s-0.061 s3.83 MiB3.85 MiB+ 19.86 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

JavaScript
PHP
Language % Lines of code Comment lines Files
JavaScript68.4%3,3271,79111
PHP20.9%1,01961217
CSS5.8%281382
Markdown3.8%18603
JSON0.6%2801
HTML0.5%2501
Total 4,866 2,441 35

PHP Code Analysis | More results »

Lines of code 353
Total complexity 65
Median class complexity 6.5
Median method complexity 1.0
Most complex class Cosmos_Woocommerce_Public
Most complex function Cosmos_Woocommerce_Public::cosmos_pay_form()
Classes 8
Methods 34
Functions 3

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 2

PHP Error Log 51 lines

[15-May-2024 18:25:29 UTC] PHP Warning:  Attempt to read property "payment_gateways" on null in /wp-content/plugins/cosmos-pay/admin/class-cosmos-woocommerce-admin.php on line 142
[15-May-2024 18:25:29 UTC] PHP Fatal error:  Uncaught Error: Call to a member function payment_gateways() on null in /wp-content/plugins/cosmos-pay/admin/class-cosmos-woocommerce-admin.php:142
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): Cosmos_Woocommerce_Admin->get_cosmos_settings()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-admin/admin.php(259): do_action()
#4 {main}
  thrown in /wp-content/plugins/cosmos-pay/admin/class-cosmos-woocommerce-admin.php on line 142
[15-May-2024 18:25:30 UTC] PHP Warning:  Attempt to read property "session" on null in /wp-content/plugins/cosmos-pay/public/class-cosmos-woocommerce-public.php on line 100
[15-May-2024 18:25:30 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /wp-content/plugins/cosmos-pay/public/class-cosmos-woocommerce-public.php:100
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): Cosmos_Woocommerce_Public->enqueue_scripts()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/script-loader.php(2265): do_action()
#4 /wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
#5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/general-template.php(3050): do_action()
#8 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#9 /wp-includes/template.php(810): require_once('...')
#10 /wp-includes/template.php(745): load_template()
#11 /wp-includes/general-template.php(48): locate_template()
#12 /wp-content/themes/twentyseventeen/index.php(18): get_header()
#13 /wp-includes/template-loader.php(106): include('...')
#14 /wp-blog-header.php(19): require_once('...')
#15 /index.php(17): require('...')
#16 {main}
  thrown in /wp-content/plugins/cosmos-pay/public/class-cosmos-woocommerce-public.php on line 100
[15-May-2024 18:25:40 UTC] PHP Warning:  Attempt to read property "session" on null in /wp-content/plugins/cosmos-pay/public/class-cosmos-woocommerce-public.php on line 100
[15-May-2024 18:25:40 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /wp-content/plugins/cosmos-pay/public/class-cosmos-woocommerce-public.php:100
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): Cosmos_Woocommerce_Public->enqueue_scripts()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/script-loader.php(2265): do_action()
#4 /wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
#5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/general-template.php(3050): do_action()
#8 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#9 /wp-includes/template.php(810): require_once('...')
#10 /wp-includes/template.php(745): load_template()
#11 /wp-includes/general-template.php(48): locate_template()
#12 /wp-content/themes/twentyseventeen/index.php(18): get_header()
#13 /wp-includes/template-loader.php(106): include('...')
#14 /wp-blog-header.php(19): require_once('...')
#15 /index.php(17): require('...')
#16 {main}
  thrown in /wp-content/plugins/cosmos-pay/public/class-cosmos-woocommerce-public.php on line 100
See also: All tests for this plugin