Same but Different 1.0.14

Does Same but Different work with WordPress 6.6.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 74.89 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.6.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 80+
WordPress.org page https://wordpress.org/plugins/same-but-different/
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=same-but-different%2Fsame-but-different.php&plugin_status=all&paged=1&s&_wpnonce=c379dd79b0
Aspect after-activation
HTTP status 200
Load time 0.259 s
Memory usage 3.56 MiB
JS errors None
Resource errors None

Appearance → Same but Different

Page screenshot: Appearance → Same but Different
URL /wp-admin/themes.php?page=same-but-different_settings
Aspect menu-item
HTTP status 200
Load time 0.186 s
Memory usage N/A
JS errors None
Resource errors None

Appearance → Same but Different → Our Themes1

Page screenshot: Appearance → Same but Different → Our Themes1
URL /wp-admin/themes.php?page=same-but-different_settings&tab=themes
Aspect menu-item-tab
HTTP status 200
Load time 2.788 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

Appearance → Same but Different → Our Plugins1

Page screenshot: Appearance → Same but Different → Our Plugins1
URL /wp-admin/themes.php?page=same-but-different_settings&tab=plugins
Aspect menu-item-tab
HTTP status 200
Load time 0.738 s
Memory usage 3.52 MiB
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.205 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 2.631 s
Memory usage 5.66 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.339 s0.312 s-0.027 s3.47 MiB3.54 MiB+ 66.79 KiB
/wp-admin/edit.php0.213 s0.194 s-0.019 s3.54 MiB3.59 MiB+ 58.6 KiB
/wp-admin/post-new.php0.801 s0.630 s-0.171 s5.75 MiB5.82 MiB+ 66.95 KiB
/wp-admin/upload.php0.666 s0.391 s-0.275 s3.49 MiB3.54 MiB+ 53.44 KiB
/wp-admin/options-writing.php0.221 s0.194 s-0.027 s3.41 MiB3.52 MiB+ 116.24 KiB
/wp-admin/media-new.php0.245 s0.306 s+0.061 s3.4 MiB3.52 MiB+ 129.63 KiB
/wp-admin/edit-tags.php?taxonomy=category0.192 s0.181 s-0.011 s3.47 MiB3.53 MiB+ 63.34 KiB
/wp-admin/post-new.php?post_type=page0.603 s0.575 s-0.028 s5.75 MiB5.81 MiB+ 63.64 KiB
/wp-admin/options-discussion.php0.224 s0.245 s+0.021 s3.41 MiB3.52 MiB+ 117.93 KiB
/wp-admin/edit-comments.php0.209 s0.210 s+0.001 s3.49 MiB3.54 MiB+ 50.02 KiB
/0.318 s0.207 s-0.111 s3.4 MiB3.44 MiB+ 37.23 KiB
Average 0.366 s0.313 s-0.053 s3.87 MiB3.94 MiB+ 74.89 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.

PHP
CSS
Language % Lines of code Comment lines Files
PHP74.8%1,11937913
CSS24.7%36932
JavaScript0.5%711
Total 1,495 383 16

PHP Code Analysis | More results »

Lines of code 877
Total complexity 190
Median class complexity 42.0
Median method complexity 2.0
Most complex class OTB_Same_But_Different_Admin_API
Most complex function OTB_Same_But_Different_Admin_API::display_field()
Classes 4
Methods 43
Functions 1

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.

Options wp_options 6

Sidebar Widgets 1

ID Name
otb_same_but_different_widgetRelated Posts

PHP Error Log 15 lines

[29-Jul-2024 08:50:06 UTC] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /wp-content/plugins/same-but-different/library/classes/otb-same-but-different-admin-api.php:128
Stack trace:
#0 /wp-content/plugins/same-but-different/library/classes/otb-same-but-different-admin-api.php(128): in_array()
#1 /wp-admin/includes/template.php(1836): OTB_Same_But_Different_Admin_API->display_field()
#2 /wp-admin/includes/template.php(1790): do_settings_fields()
#3 /wp-content/plugins/same-but-different/library/template-parts/content-settings.php(7): do_settings_sections()
#4 /wp-content/plugins/same-but-different/library/classes/otb-same-but-different.php(414): include('...')
#5 /wp-content/plugins/same-but-different/library/classes/otb-same-but-different.php(397): OTB_Same_But_Different->render_page()
#6 /wp-includes/class-wp-hook.php(324): OTB_Same_But_Different->do_action()
#7 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#8 /wp-includes/plugin.php(517): WP_Hook->do_action()
#9 /wp-admin/admin.php(259): do_action()
#10 /wp-admin/themes.php(10): require_once('...')
#11 {main}
  thrown in /wp-content/plugins/same-but-different/library/classes/otb-same-but-different-admin-api.php on line 128
See also: All tests for this plugin