QuizAd 1.6.0

Does QuizAd work with WordPress 6.6.2 and PHP 8.1.12? A smoke test was performed on .

Summary

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

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

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

Environment
WordPress version6.6.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs <10
WordPress.org page https://wordpress.org/plugins/quizad/
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=quizad%2FQuizAd.php&plugin_status=all&paged=1&s&_wpnonce=f00bf9fbc1
Aspect after-activation
HTTP status 200
Load time 0.294 s
Memory usage 3.57 MiB
JS errors None
Resource errors None

QuizAd

Page screenshot: QuizAd
URL /wp-admin/admin.php?page=my-submenu-ustawienia
Aspect menu-item
HTTP status 200
Load time 0.638 s
Memory usage 3.53 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at /wp-content/plugins/quizad/assets/js/registration.js?ver=2.0.0:121:20\n    at /wp-content/plugins/quizad/assets/js/registration.js?ver=2.0.0:184:3",
        "trace": null,
        "code": null
    }
]
Resource errors None

QuizAd → Zaawansowane

Page screenshot: QuizAd → Zaawansowane
URL /wp-admin/admin.php?page=my-submenu-zaawansowane
Aspect menu-item
HTTP status 200
Load time 0.389 s
Memory usage 3.53 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.757 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.295 s0.263 s-0.032 s3.47 MiB3.56 MiB+ 84.61 KiB
/wp-admin/edit.php0.180 s0.176 s-0.004 s3.54 MiB3.62 MiB+ 83.14 KiB
/wp-admin/post-new.php0.664 s0.546 s-0.118 s5.75 MiB5.84 MiB+ 88.13 KiB
/wp-admin/upload.php0.461 s0.408 s-0.053 s3.49 MiB3.55 MiB+ 65.73 KiB
/wp-admin/options-writing.php0.170 s0.190 s+0.020 s3.41 MiB3.54 MiB+ 128.54 KiB
/wp-admin/media-new.php0.257 s0.239 s-0.018 s3.4 MiB3.53 MiB+ 141.92 KiB
/wp-admin/edit-tags.php?taxonomy=category0.164 s0.187 s+0.023 s3.47 MiB3.56 MiB+ 88.59 KiB
/wp-admin/post-new.php?post_type=page0.508 s0.520 s+0.012 s5.75 MiB5.83 MiB+ 83.72 KiB
/wp-admin/options-discussion.php0.178 s0.390 s+0.212 s3.41 MiB3.53 MiB+ 130.23 KiB
/wp-admin/edit-comments.php0.194 s0.202 s+0.008 s3.49 MiB3.55 MiB+ 65.73 KiB
/0.262 s0.609 s+0.347 s3.45 MiB3.49 MiB+ 33.09 KiB
Average 0.303 s0.339 s+0.036 s3.87 MiB3.96 MiB+ 90.31 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
JavaScript
Language % Lines of code Comment lines Files
PHP83.6%5,3781,731131
JavaScript9.7%625817
CSS6.7%432461
Total 6,435 1,858 139

PHP Code Analysis | More results »

Lines of code 4,147
Total complexity 581
Median class complexity 4.0
Median method complexity 1.0
Most complex class QuizAd\Service\Wordpress\PageService
Most complex function QuizAd\Service\Placements\PlacementsService::fetchAllPlacement()
Classes 106
Methods 350
Functions 0

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 4

PHP Error Log 3 lines

[05-Nov-2024 17:06:55 UTC] PHP Warning:  Undefined array key "type" in /wp-content/plugins/quizad/views/permission.php on line 3
[05-Nov-2024 17:06:57 UTC] WordPress database error Cannot truncate a table referenced in a foreign key constraint (`wordpress`.`quizAd_froc_placements_positions`, CONSTRAINT `quizAd_froc_placements_positions_ibfk_2` FOREIGN KEY (`placement_id`) REFERENCES `wordpress`.`quizAd_froc_placements) for query TRUNCATE TABLE quizAd_froc_placements made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/twentyseventeen/index.php'), get_template_part, locate_template, load_template, require('/themes/twentyseventeen/template-parts/post/content.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, QuizAd\Service\Wordpress\PageService->quizAd_insertPlacement, QuizAd\Service\Placements\PlacementsService->getPlacements, QuizAd\Service\Placements\PlacementsService->fetchAllPlacement, QuizAd\Database\PlacementsRepository->removeAllPlacements, QuizAd\Database\AbstractDatabaseRepository->query
[05-Nov-2024 17:07:05 UTC] WordPress database error Cannot truncate a table referenced in a foreign key constraint (`wordpress`.`quizAd_froc_placements_positions`, CONSTRAINT `quizAd_froc_placements_positions_ibfk_2` FOREIGN KEY (`placement_id`) REFERENCES `wordpress`.`quizAd_froc_placements) for query TRUNCATE TABLE quizAd_froc_placements made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/twentyseventeen/index.php'), get_template_part, locate_template, load_template, require('/themes/twentyseventeen/template-parts/post/content.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, QuizAd\Service\Wordpress\PageService->quizAd_insertPlacement, QuizAd\Service\Placements\PlacementsService->getPlacements, QuizAd\Service\Placements\PlacementsService->fetchAllPlacement, QuizAd\Database\PlacementsRepository->removeAllPlacements, QuizAd\Database\AbstractDatabaseRepository->query
See also: All tests for this plugin, How to Hide QuizAd Admin Menus