QuizAd 1.5.0

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

Summary

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

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

Page speed impact: 0.025 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=fe6edf7e95
Aspect after-activation
HTTP status 200
Load time 0.536 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.118 s
Memory usage N/A
JS errors None
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.626 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.788 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.304 s0.293 s-0.011 s3.47 MiB3.56 MiB+ 84.7 KiB
/wp-admin/edit.php0.191 s0.194 s+0.003 s3.54 MiB3.62 MiB+ 83.23 KiB
/wp-admin/post-new.php0.907 s0.556 s-0.351 s5.75 MiB5.84 MiB+ 88.23 KiB
/wp-admin/upload.php0.509 s0.553 s+0.044 s3.49 MiB3.55 MiB+ 65.83 KiB
/wp-admin/options-writing.php0.204 s0.193 s-0.011 s3.41 MiB3.54 MiB+ 128.63 KiB
/wp-admin/media-new.php0.210 s0.245 s+0.035 s3.4 MiB3.53 MiB+ 142.02 KiB
/wp-admin/edit-tags.php?taxonomy=category0.178 s0.180 s+0.002 s3.47 MiB3.56 MiB+ 88.69 KiB
/wp-admin/post-new.php?post_type=page0.547 s0.572 s+0.025 s5.75 MiB5.83 MiB+ 83.81 KiB
/wp-admin/options-discussion.php0.228 s0.456 s+0.228 s3.41 MiB3.53 MiB+ 130.32 KiB
/wp-admin/edit-comments.php0.213 s0.201 s-0.012 s3.49 MiB3.55 MiB+ 65.82 KiB
/0.303 s0.631 s+0.328 s3.45 MiB3.49 MiB+ 33.19 KiB
Average 0.345 s0.370 s+0.025 s3.87 MiB3.96 MiB+ 90.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.

PHP
JavaScript
Language % Lines of code Comment lines Files
PHP83.4%5,2151,718129
JavaScript9.7%609767
CSS6.9%432301
Total 6,256 1,824 137

PHP Code Analysis | More results »

Lines of code 4,087
Total complexity 568
Median class complexity 4.0
Median method complexity 1.0
Most complex class QuizAd\Service\Wordpress\PageService
Most complex function QuizAd\Service\Registration\CredentialsApiClient::loginApp()
Classes 106
Methods 348
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 12 lines

[23-Oct-2024 12:16:07 UTC] PHP Warning:  require(/wp-content/plugins/quizad/config/../views/login_splash.php): Failed to open stream: No such file or directory in /wp-content/plugins/quizad/src/Controller/AbstractViewController.php on line 42
[23-Oct-2024 12:16:07 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/wp-content/plugins/quizad/config/../views/login_splash.php' (include_path='.:/opt/bitnami/php/lib/php') in /wp-content/plugins/quizad/src/Controller/AbstractViewController.php:42
Stack trace:
#0 /wp-content/plugins/quizad/QuizAd.php(93): QuizAd\Controller\AbstractViewController->renderTemplate()
#1 /wp-includes/class-wp-hook.php(324): {closure}()
#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 {main}
  thrown in /wp-content/plugins/quizad/src/Controller/AbstractViewController.php on line 42
[23-Oct-2024 12:16:09 UTC] WordPress database error Cannot truncate a table referenced in a foreign key constraint (`wordpress`.`quizAd_placements_positions`, CONSTRAINT `quizAd_placements_positions_ibfk_2` FOREIGN KEY (`placement_id`) REFERENCES `wordpress`.`quizAd_placements` (`placement_i) for query TRUNCATE TABLE quizAd_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
[23-Oct-2024 12:16:18 UTC] WordPress database error Cannot truncate a table referenced in a foreign key constraint (`wordpress`.`quizAd_placements_positions`, CONSTRAINT `quizAd_placements_positions_ibfk_2` FOREIGN KEY (`placement_id`) REFERENCES `wordpress`.`quizAd_placements` (`placement_i) for query TRUNCATE TABLE quizAd_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