SEMA API 5.16

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

Summary

Errors
2PHP fatal errors
1Database errors
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

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

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

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 4

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=2fa444bf9a
Aspect after-activation
HTTP status 200
Load time 0.580 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 1.250 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.202 s
Memory usage N/A
JS errors None
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.284 s
Memory usage 3.32 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.390 s0.408 s+0.018 s3.38 MiB3.42 MiB+ 35.63 KiB
/wp-admin/edit.php0.221 s0.268 s+0.047 s3.41 MiB3.45 MiB+ 39.29 KiB
/wp-admin/post-new.php1.113 s0.704 s-0.409 s5.46 MiB5.5 MiB+ 38.89 KiB
/wp-admin/upload.php0.719 s0.492 s-0.227 s3.32 MiB3.34 MiB+ 18.68 KiB
/wp-admin/options-writing.php0.223 s0.237 s+0.014 s3.32 MiB3.33 MiB+ 14.59 KiB
/wp-admin/media-new.php0.302 s0.293 s-0.009 s3.3 MiB3.33 MiB+ 35.19 KiB
/wp-admin/edit-tags.php?taxonomy=category0.200 s0.264 s+0.064 s3.31 MiB3.35 MiB+ 38.8 KiB
/wp-admin/post-new.php?post_type=page0.620 s0.678 s+0.058 s5.45 MiB5.49 MiB+ 38.9 KiB
/wp-admin/options-discussion.php0.235 s0.339 s+0.104 s3.3 MiB3.32 MiB+ 20.82 KiB
/wp-admin/edit-comments.php0.237 s0.282 s+0.045 s3.34 MiB3.36 MiB+ 19.81 KiB
/0.298 s0.202 s-0.096 s3.36 MiB3.32 MiB- 38.75 KiB
Average 0.414 s0.379 s-0.036 s3.72 MiB3.75 MiB+ 23.8 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
JavaScript57.0%18,0144,8485
CSS24.1%7,6123177
PHP18.9%5,9841,06115
Total 31,610 6,226 27

PHP Code Analysis | More results »

Lines of code 4,534
Total complexity 869
Median class complexity 12.0
Median method complexity 2.0
Most complex class SEMA_Product_Import
Most complex function sema_getdata_callback()
Classes 5
Methods 49
Functions 33

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 3

Options wp_options 2

PHP Error Log 32 lines

[13-Mar-2024 20:53:58 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
[13-Mar-2024 20:54:01 UTC] PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /wp-content/plugins/sema-api/includes/menutab.php:10
Stack trace:
#0 /wp-content/plugins/sema-api/options.php(120): include()
#1 /wp-includes/class-wp-hook.php(324): sema_options_page()
#2 /wp-includes/class-wp-hook.php(348): 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/menutab.php on line 10
[13-Mar-2024 20:54:02 UTC] PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /wp-content/plugins/sema-api/includes/menutab.php:10
Stack trace:
#0 /wp-content/plugins/sema-api/imports.php(46): include()
#1 /wp-content/plugins/sema-api/options.php(108): include('...')
#2 /wp-includes/class-wp-hook.php(324): sema_product_import_page()
#3 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-admin/admin.php(259): do_action()
#6 /wp-admin/options-general.php(10): require_once('...')
#7 {main}
  thrown in /wp-content/plugins/sema-api/includes/menutab.php on line 10
See also: All tests for this plugin, How to Hide SEMA API Admin Menus