SEMA API 4.66

Does SEMA API work with WordPress 6.4.3 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: 27.41 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version6.4.3
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 6

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=24d339864d
Aspect after-activation
HTTP status 200
Load time 0.621 s
Memory usage 3.36 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.512 s
Memory usage 3.35 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.591 s
Memory usage 3.44 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.965 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?s4wmvs: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.671 s
Memory usage 3.33 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.379 s0.640 s+0.261 s3.38 MiB3.42 MiB+ 36.22 KiB
/wp-admin/edit.php0.227 s0.346 s+0.119 s3.41 MiB3.45 MiB+ 39.88 KiB
/wp-admin/post-new.php1.065 s1.503 s+0.438 s5.46 MiB5.51 MiB+ 47.29 KiB
/wp-admin/upload.php0.708 s0.615 s-0.093 s3.32 MiB3.34 MiB+ 19.99 KiB
/wp-admin/options-writing.php0.231 s0.270 s+0.039 s3.32 MiB3.33 MiB+ 17.3 KiB
/wp-admin/media-new.php0.318 s0.268 s-0.050 s3.3 MiB3.33 MiB+ 37.91 KiB
/wp-admin/edit-tags.php?taxonomy=category0.222 s0.463 s+0.241 s3.31 MiB3.35 MiB+ 39.39 KiB
/wp-admin/post-new.php?post_type=page0.679 s0.829 s+0.150 s5.45 MiB5.5 MiB+ 47.3 KiB
/wp-admin/options-discussion.php0.342 s0.416 s+0.074 s3.3 MiB3.33 MiB+ 24.8 KiB
/wp-admin/edit-comments.php0.265 s0.291 s+0.026 s3.34 MiB3.36 MiB+ 20.41 KiB
/0.304 s0.283 s-0.021 s3.36 MiB3.33 MiB- 28.94 KiB
Average 0.431 s0.539 s+0.108 s3.72 MiB3.75 MiB+ 27.41 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
CSS
PHP
Language % Lines of code Comment lines Files
JavaScript58.3%18,0134,8505
CSS24.2%7,4623079
PHP17.5%5,4221,05111
Total 30,897 6,208 25

PHP Code Analysis | More results »

Lines of code 4,364
Total complexity 861
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

[05-Feb-2024 23:56:13 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
[05-Feb-2024 23:56:16 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