SEMA API 4.53

Does SEMA API work with WordPress 6.2.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
2Database errors
1JavaScript exceptions
1Page failed to load
  • 1 0
No resource errors
Performance

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

Page speed impact: 0.117 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.2.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 20+
WordPress.org page https://wordpress.org/plugins/sema-api/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 7

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=sema-api%2Fsema-api.php&plugin_status=all&paged=1&s&_wpnonce=5670d32d0d
Aspect after-activation
HTTP status 200
Load time 0.567 s
Memory usage 3.05 MiB
JS errors None
Resource errors None

Settings → SEMA Setting

Page screenshot: Settings → SEMA Setting
URL /wp-admin/options-general.php?page=sema_setting
Aspect menu-item
HTTP status 200
Load time 0.269 s
Memory usage 3.04 MiB
JS errors None
Resource errors None

Settings → SEMA Setting → Fitment

Page screenshot: Settings → SEMA Setting → Fitment
URL /wp-admin/options-general.php?page=sema_import&section=fitment
Aspect menu-item-tab
HTTP status 200
Load time 5.227 s
Memory usage N/A
JS errors None
Resource errors None

Settings → SEMA Setting → Join SEMA Data Co-op

Screenshot not available
URL
Aspect menu-item-tab
HTTP status 0
Load time -0.001 s
Memory usage N/A
JS errors None
Resource errors None

Settings → SEMA Import

Page screenshot: Settings → SEMA Import
URL /wp-admin/options-general.php?page=sema_import
Aspect menu-item
HTTP status 200
Load time 0.750 s
Memory usage 3.04 MiB
JS errors None
Resource errors None

Settings → SEMA Import → Join SEMA Data Co-op

Page screenshot: Settings → SEMA Import → Join SEMA Data Co-op
URL https://www.semadata.org/resellers
Aspect menu-item-tab
HTTP status 200
Load time 2.548 s
Memory usage N/A
JS errors
[
    {
        "message": "TypeError: $ is not a function\n    at https://www.semadata.org/sites/all/themes/bootstrap_sdc/js/scroll-more.js?rwki00:3:1",
        "trace": null,
        "code": null
    }
]
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.724 s
Memory usage 3.05 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.304 s0.686 s+0.382 s3.07 MiB3.11 MiB+ 38.3 KiB
/wp-admin/edit.php0.204 s0.307 s+0.103 s3.1 MiB3.14 MiB+ 41.6 KiB
/wp-admin/post-new.php0.787 s1.584 s+0.797 s5.02 MiB5.06 MiB+ 43.88 KiB
/wp-admin/upload.php0.619 s0.382 s-0.237 s3.02 MiB3.04 MiB+ 23.13 KiB
/wp-admin/options-writing.php0.193 s0.243 s+0.050 s3.01 MiB3.02 MiB+ 12.78 KiB
/wp-admin/media-new.php0.454 s0.255 s-0.199 s2.99 MiB3.03 MiB+ 39.63 KiB
/wp-admin/edit-tags.php?taxonomy=category0.204 s0.257 s+0.053 s3.01 MiB3.05 MiB+ 41.11 KiB
/wp-admin/post-new.php?post_type=page0.641 s0.850 s+0.209 s5.01 MiB5.06 MiB+ 43.88 KiB
/wp-admin/options-discussion.php0.216 s0.339 s+0.123 s3 MiB3.03 MiB+ 26.83 KiB
/wp-admin/edit-comments.php0.220 s0.284 s+0.064 s3.03 MiB3.05 MiB+ 22.13 KiB
/0.321 s0.258 s-0.063 s2.97 MiB3.05 MiB+ 80.6 KiB
Average 0.378 s0.495 s+0.117 s3.38 MiB3.42 MiB+ 37.62 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
CSS
Language % Lines of code Comment lines Files
JavaScript65.6%18,0134,8515
PHP19.8%5,4361,14111
CSS14.6%4,0091389
Total 27,458 6,130 25

PHP Code Analysis | More results »

Lines of code 4,361
Total complexity 858
Median class complexity 34.0
Median method complexity 2.0
Most complex class WordPress\Importer\SEMA_Product_Import
Most complex function sema_getdata_callback()
Classes 4
Methods 48
Functions 31

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.

Database Tables 5

Options wp_options 2

PHP Error Log 22 lines

[01-Aug-2023 20:12:17 UTC] WordPress database error Key column 'id' doesn't exist in table for query CREATE TABLE wp_sema_products (
			`productid` int(11) NOT NULL,
			`brandid` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
			`partno` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
			`status` int(11) DEFAULT NULL,
			`wpid` int(11) DEFAULT NULL,
			PRIMARY KEY (`id`),
			KEY `idx_wpid` (`wpid`) USING BTREE,
			KEY `idx_brandid` (`brandid`) USING BTREE,
  			KEY `idx_brandidpartno` (`brandid`,`partno`) USING BTREE
		  ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci made by activate_plugin, do_action('activate_sema-api/sema-api.php'), WP_Hook->do_action, WP_Hook->apply_filters, sema_activation, sema_create_tables, dbDelta
[01-Aug-2023 20:12:25 UTC] PHP Fatal error:  Uncaught Error: Cannot use object of type WP_Error as array in /wp-content/plugins/sema-api/includes/views/html-sema-import-greeting.php:33
Stack trace:
#0 /wp-content/plugins/sema-api/options.php(29): include()
#1 /wp-includes/class-wp-hook.php(308): sema_product_import_page()
#2 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#3 /wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /wp-admin/admin.php(259): do_action()
#5 /wp-admin/options-general.php(10): require_once('...')
#6 {main}
  thrown in /wp-content/plugins/sema-api/includes/views/html-sema-import-greeting.php on line 33
[01-Aug-2023 20:12:26 UTC] WordPress database error Table 'wordpress.wp_sema_products' doesn't exist for query SELECT count(*) FROM wp_sema_products; made by require_once('wp-admin/admin.php'), do_action('settings_page_sema_import'), WP_Hook->do_action, WP_Hook->apply_filters, sema_product_import_page, include('/plugins/sema-api/includes/views/html-sema-import-greeting.php')
See also: All tests for this plugin, How to Hide SEMA API Admin Menus