QuizAd 1.5.3

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: insignificant.
The plugin didn't make the site noticeably slower.

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=e6d556498d
Aspect after-activation
HTTP status 200
Load time 0.554 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.136 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.677 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.763 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.325 s0.306 s-0.019 s3.47 MiB3.56 MiB+ 84.7 KiB
/wp-admin/edit.php0.197 s0.189 s-0.008 s3.54 MiB3.62 MiB+ 83.23 KiB
/wp-admin/post-new.php1.010 s0.589 s-0.421 s5.75 MiB5.84 MiB+ 88.23 KiB
/wp-admin/upload.php0.667 s0.427 s-0.240 s3.49 MiB3.55 MiB+ 65.83 KiB
/wp-admin/options-writing.php0.208 s0.197 s-0.011 s3.41 MiB3.54 MiB+ 128.63 KiB
/wp-admin/media-new.php0.257 s0.241 s-0.016 s3.4 MiB3.53 MiB+ 142.02 KiB
/wp-admin/edit-tags.php?taxonomy=category0.188 s0.201 s+0.013 s3.47 MiB3.56 MiB+ 88.69 KiB
/wp-admin/post-new.php?post_type=page0.580 s0.568 s-0.012 s5.75 MiB5.83 MiB+ 83.81 KiB
/wp-admin/options-discussion.php0.223 s0.237 s+0.014 s3.41 MiB3.53 MiB+ 130.32 KiB
/wp-admin/edit-comments.php0.230 s0.434 s+0.204 s3.49 MiB3.55 MiB+ 65.82 KiB
/0.305 s0.623 s+0.318 s3.45 MiB3.49 MiB+ 33.19 KiB
Average 0.381 s0.365 s-0.016 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%605807
CSS6.9%432301
Total 6,252 1,828 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

[24-Oct-2024 07:45:50 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
[24-Oct-2024 07:45:50 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
[24-Oct-2024 07:45:53 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
[24-Oct-2024 07:46:02 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