SEMA API 4.65

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

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

Environment
WordPress version6.3.1
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=a2549ed83f
Aspect after-activation
HTTP status 200
Load time 0.586 s
Memory usage 2.79 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.491 s
Memory usage 2.79 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.627 s
Memory usage 2.88 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.651 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.627 s
Memory usage 3.15 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.405 s0.677 s+0.272 s2.82 MiB2.86 MiB+ 32.63 KiB
/wp-admin/edit.php0.211 s0.315 s+0.104 s2.85 MiB2.88 MiB+ 35.93 KiB
/wp-admin/post-new.php0.845 s1.109 s+0.264 s5.21 MiB5.26 MiB+ 43.7 KiB
/wp-admin/upload.php0.622 s0.386 s-0.236 s2.77 MiB2.78 MiB+ 17.45 KiB
/wp-admin/options-writing.php0.281 s0.273 s-0.008 s2.76 MiB2.77 MiB+ 12.73 KiB
/wp-admin/media-new.php0.314 s0.248 s-0.066 s2.74 MiB2.77 MiB+ 33.96 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.282 s+0.084 s2.76 MiB2.79 MiB+ 35.44 KiB
/wp-admin/post-new.php?post_type=page0.604 s0.842 s+0.238 s5.21 MiB5.25 MiB+ 43.71 KiB
/wp-admin/options-discussion.php0.233 s0.365 s+0.132 s2.75 MiB2.77 MiB+ 20.84 KiB
/wp-admin/edit-comments.php0.436 s0.277 s-0.159 s2.78 MiB2.79 MiB+ 16.45 KiB
/0.316 s0.277 s-0.039 s3.13 MiB3.15 MiB+ 16.52 KiB
Average 0.406 s0.459 s+0.053 s3.25 MiB3.28 MiB+ 28.12 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.4%18,0404,8505
CSS24.2%7,4623079
PHP17.5%5,3951,05111
Total 30,897 6,208 25

PHP Code Analysis | More results »

Lines of code 4,337
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

[06-Sep-2023 22:14:53 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
[06-Sep-2023 22:14:57 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