PageSpeed Ninja 1.0.rc.1

Does PageSpeed Ninja work with WordPress 6.3.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 114.22 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.3.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 10,000+
WordPress.org page https://wordpress.org/plugins/psn-pagespeed-ninja/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

PageSpeed Ninja Options ‹ Test site — WordPress

Page screenshot: PageSpeed Ninja Options ‹ Test site — WordPress
URL /wp-admin/admin.php?page=pagespeedninja
Requested URL /wp-admin/plugins.php?action=activate&plugin=psn-pagespeed-ninja%2Fpagespeedninja.php&plugin_status=all&paged=1&s&_wpnonce=811acbef4a
Aspect after-activation
HTTP status 200
Load time 0.728 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

PageSpeed Ninja

Page screenshot: PageSpeed Ninja
URL /wp-admin/admin.php?page=pagespeedninja
Aspect menu-item
HTTP status 200
Load time 0.206 s
Memory usage 3.14 MiB
JS errors None
Resource errors None

PageSpeed Ninja → Advanced

Page screenshot: PageSpeed Ninja → Advanced
URL /wp-admin/admin.php?page=pagespeedninja_advanced
Aspect menu-item
HTTP status 200
Load time 0.199 s
Memory usage 3.14 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.179 s
Memory usage 3.21 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.363 s0.322 s-0.041 s2.82 MiB2.95 MiB+ 129.31 KiB
/wp-admin/edit.php0.201 s0.202 s+0.001 s2.85 MiB2.98 MiB+ 129.31 KiB
/wp-admin/upload.php0.559 s0.360 s-0.199 s2.77 MiB2.88 MiB+ 110.63 KiB
/wp-admin/options-writing.php0.215 s0.189 s-0.026 s2.76 MiB2.86 MiB+ 102.59 KiB
/wp-admin/media-new.php0.394 s0.416 s+0.022 s2.74 MiB2.86 MiB+ 122.81 KiB
/wp-admin/edit-tags.php?taxonomy=category0.179 s0.207 s+0.028 s2.76 MiB2.88 MiB+ 127.98 KiB
/wp-admin/options-discussion.php0.204 s0.213 s+0.009 s2.75 MiB2.86 MiB+ 111.12 KiB
/wp-admin/edit-comments.php0.441 s0.228 s-0.213 s2.78 MiB2.89 MiB+ 110.66 KiB
/0.272 s0.242 s-0.030 s3.13 MiB3.21 MiB+ 83.59 KiB
Average 0.314 s0.264 s-0.050 s2.82 MiB2.93 MiB+ 114.22 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
PHP79.0%15,0785,136136
JavaScript14.9%2,83548916
CSS5.5%1,043244
JSON0.6%112012
HTML0.0%704
SVG0.0%101
Total 19,076 5,649 173

PHP Code Analysis | More results »

Lines of code 12,468
Total complexity 3,237
Median class complexity 11.0
Median method complexity 2.0
Most complex class Ressio_HtmlOptimizer_Dom
Most complex function Ressio_HtmlOptimizer_Pharse::domIterate()
Classes 103
Methods 601
Functions 5

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 1

Options wp_options 1

PHP Error Log 24 lines

[03-Oct-2023 06:57:08 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "PAGESPEEDNINJA_CACHE_DIR" in /wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja-cache.php:43
Stack trace:
#0 /wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja-cache-hooks.php(100): PagespeedNinja_Cache->__construct()
#1 /wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja-cache-hooks.php(152): PagespeedNinja_Cache_Hooks->pagecache_tags_update()
#2 /wp-includes/class-wp-hook.php(310): PagespeedNinja_Cache_Hooks->save_post()
#3 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-includes/post.php(4751): do_action()
#6 /wp-admin/includes/post.php(745): wp_insert_post()
#7 /wp-admin/post-new.php(66): get_default_post_to_edit()
#8 {main}
  thrown in /wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja-cache.php on line 43
[03-Oct-2023 06:57:10 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "PAGESPEEDNINJA_CACHE_DIR" in /wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja-cache.php:43
Stack trace:
#0 /wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja-cache-hooks.php(100): PagespeedNinja_Cache->__construct()
#1 /wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja-cache-hooks.php(152): PagespeedNinja_Cache_Hooks->pagecache_tags_update()
#2 /wp-includes/class-wp-hook.php(310): PagespeedNinja_Cache_Hooks->save_post()
#3 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-includes/post.php(4751): do_action()
#6 /wp-admin/includes/post.php(745): wp_insert_post()
#7 /wp-admin/post-new.php(66): get_default_post_to_edit()
#8 {main}
  thrown in /wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja-cache.php on line 43
See also: All tests for this plugin, How to Hide PageSpeed Ninja Admin Menus