Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.06ms] Passed 4 tests
This is a short check of server-side resources used by Insights from Google PageSpeed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.21 ▲2.16 |
Dashboard /wp-admin | 3.36 ▲0.02 | 46.73 ▼13.52 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 43.37 ▼2.77 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 80.83 ▼17.38 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.53 ▲1.43 |
Pagespeed Insights /wp-admin/tools.php?page=google-pagespeed-insights | 3.06 | 22.63 |
Server storage [IO: ▲1.32MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 152 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_gpi_page_stats |
wp_gpi_page_blacklist |
wp_gpi_custom_urls |
wp_gpi_summary_snapshots |
wp_gpi_api_error_logs |
wp_gpi_page_reports |
New WordPress options |
---|
gpagespeedi_options |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
gpagespeedi_ui_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Insights from Google PageSpeed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.24 ▼0.38 | 1.77 ▲0.10 | 45.24 ▲0.11 |
Dashboard /wp-admin | 2,199 ▲19 | 5.54 ▼0.12 | 83.25 ▼4.95 | 37.50 ▼5.41 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▼0.05 | 33.71 ▼5.63 | 36.93 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.77 ▲5.44 | 667.47 ▲56.71 | 65.80 ▼0.79 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.19 ▼0.02 | 101.18 ▼5.21 | 44.39 ▼2.21 |
Pagespeed Insights /wp-admin/tools.php?page=google-pagespeed-insights | 1,540 | 2.31 | 43.48 | 58.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/details/audits-filmstrip.php
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/details/audits-criticalrequestchain.php
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/details/audits-table.php
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/summary/scores.php
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/view-snapshot/comment.php
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/details/audits-opportunity.php
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/summary/areas_of_improvement.php
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/details/statistics.php
- > /wp-content/plugins/google-pagespeed-insights/assets/js/templates/details/audits-diagnostic.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/google-pagespeed-insights/google-pagespeed-insights.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/google-pagespeed-insights/templates/parts/nitropack.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/tools.php?page=google-pagespeed-insights
- > Javascript (severe) in unknown
/wp-includes/js/wp-auth-check.min.js?ver=6.3.1 1:654 Uncaught TypeError: Cannot read properties of undefined (reading 'hasClass')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: seo, search engine optimization, performance, speed, page speed...
google-pagespeed-insights/google-pagespeed-insights.php Passed 13 tests
The main PHP file in "Insights from Google PageSpeed" ver. 4.0.8 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Get insights from the Google Pagespeed API right in your WordPress dashboard
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin8,513 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 790 | 191 | 4,252 |
CSS | 14 | 209 | 199 | 1,794 |
PO File | 3 | 546 | 750 | 1,541 |
JavaScript | 4 | 102 | 1 | 605 |
HTML | 1 | 89 | 2 | 250 |
SVG | 2 | 0 | 0 | 71 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 78.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 6.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 5 | 4.63% |
▷ Public methods | 74 | 68.52% |
▷ Protected methods | 1 | 0.93% |
▷ Private methods | 33 | 30.56% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
38 PNG files occupy 0.70MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bar_background.png | 0.92KB | 0.15KB | ▼ 83.30% |
documentation/assets/blueprint-css/plugins/buttons/icons/tick.png | 0.52KB | 0.52KB | 0.00% |
documentation/assets/blueprint-css/plugins/buttons/icons/cross.png | 0.64KB | 0.72KB | 0.00% |
documentation/assets/blueprint-css/plugins/buttons/icons/key.png | 0.44KB | 0.41KB | ▼ 8.13% |
documentation/assets/blueprint-css/plugins/link-icons/icons/email.png | 0.63KB | 0.75KB | 0.00% |