SEMA API 4.5

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.116 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=6b3fe59380
Aspect after-activation
HTTP status 200
Load time 0.593 s
Memory usage 3.06 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.234 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.759 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 1.019 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.598 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.594 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.627 s+0.352 s3.07 MiB3.11 MiB+ 38.12 KiB
/wp-admin/edit.php0.182 s0.298 s+0.116 s3.1 MiB3.14 MiB+ 41.41 KiB
/wp-admin/post-new.php0.742 s1.058 s+0.316 s5.02 MiB5.06 MiB+ 43.69 KiB
/wp-admin/upload.php0.527 s0.395 s-0.132 s3.02 MiB3.04 MiB+ 22.94 KiB
/wp-admin/options-writing.php0.172 s0.238 s+0.066 s3.01 MiB3.03 MiB+ 12.59 KiB
/wp-admin/media-new.php0.275 s0.280 s+0.005 s2.99 MiB3.03 MiB+ 39.45 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.326 s+0.135 s3.01 MiB3.05 MiB+ 40.92 KiB
/wp-admin/post-new.php?post_type=page0.591 s0.867 s+0.276 s5.02 MiB5.06 MiB+ 43.69 KiB
/wp-admin/options-discussion.php0.211 s0.336 s+0.125 s3 MiB3.03 MiB+ 26.64 KiB
/wp-admin/edit-comments.php0.222 s0.292 s+0.070 s3.03 MiB3.05 MiB+ 21.94 KiB
/0.303 s0.245 s-0.058 s2.97 MiB3.05 MiB+ 80.41 KiB
Average 0.336 s0.451 s+0.116 s3.39 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,4351,14111
CSS14.6%4,0091389
Total 27,457 6,130 25

PHP Code Analysis | More results »

Lines of code 4,360
Total complexity 857
Median class complexity 34.0
Median method complexity 2.0
Most complex class 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:32:56 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:33:01 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