SEMA API 4.51

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

Summary

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

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

Page speed impact: 0.104 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=eebf7926b7
Aspect after-activation
HTTP status 200
Load time 0.574 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.255 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 0.695 s
Memory usage 3.15 MiB
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.914 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.479 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.599 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.275 s0.575 s+0.300 s3.07 MiB3.11 MiB+ 38.12 KiB
/wp-admin/edit.php0.177 s0.291 s+0.114 s3.1 MiB3.14 MiB+ 41.41 KiB
/wp-admin/post-new.php0.750 s1.021 s+0.271 s5.02 MiB5.06 MiB+ 43.69 KiB
/wp-admin/upload.php0.542 s0.375 s-0.167 s3.02 MiB3.04 MiB+ 22.94 KiB
/wp-admin/options-writing.php0.154 s0.222 s+0.068 s3.01 MiB3.02 MiB+ 12.59 KiB
/wp-admin/media-new.php0.353 s0.269 s-0.084 s2.99 MiB3.03 MiB+ 39.45 KiB
/wp-admin/edit-tags.php?taxonomy=category0.179 s0.258 s+0.079 s3.01 MiB3.05 MiB+ 40.92 KiB
/wp-admin/post-new.php?post_type=page0.614 s1.060 s+0.446 s5.01 MiB5.06 MiB+ 43.7 KiB
/wp-admin/options-discussion.php0.219 s0.337 s+0.118 s3 MiB3.03 MiB+ 26.64 KiB
/wp-admin/edit-comments.php0.184 s0.271 s+0.087 s3.03 MiB3.05 MiB+ 21.94 KiB
/0.292 s0.201 s-0.091 s2.97 MiB3.05 MiB+ 80.41 KiB
Average 0.340 s0.444 s+0.104 s3.38 MiB3.42 MiB+ 37.44 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 12 lines

[31-Jul-2023 17:34:35 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
[31-Jul-2023 17:34:39 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