Benchmarks
Plugin footprint 81% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲9.41MB] [CPU: ▲68.29ms] 25% from 4 tests
Server-side resources used by Jetpack - WP Security, Backup, Speed, & Growth
Please take the time to fix the following items
- RAM: Try to keep total memory usage under 10MB (currently 14.68MB on /wp-admin/admin.php?page=jetpack)
- CPU: You should keep total CPU usage under 500.00ms (currently 576.94ms on /wp-admin/admin.php?page=my-jetpack)
- Extra RAM: Extra memory usage should kept under 5MB (currently 9.41MB on /wp-admin/admin.php?page=jetpack)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.96 ▲10.49 | 105.28 ▲65.21 |
Dashboard /wp-admin | 12.47 ▲9.17 | 123.47 ▲77.00 |
Posts /wp-admin/edit.php | 12.48 ▲9.12 | 118.54 ▲71.30 |
Add New Post /wp-admin/post-new.php | 16.16 ▲10.28 | 181.46 ▲93.27 |
Media Library /wp-admin/upload.php | 12.29 ▲9.06 | 97.32 ▲59.63 |
/wp-admin/admin.php?page=jetpack-debugger | 12.37 | 739.99 |
Search /wp-admin/admin.php?page=jetpack-search | 12.44 | 96.71 |
My Jetpack /wp-admin/admin.php?page=my-jetpack | 13.09 | 576.94 |
Jetpack /wp-admin/admin.php?page=jetpack | 14.68 | 164.68 |
Server storage [IO: ▲48.20MB] [DB: ▲0.07MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Filesystem usage must be lower than 25MB (currently using 48.20MB)
Filesystem: 2,832 new files
Database: no new tables, 17 new options
New WordPress options |
---|
jetpack_sync_https_history_site_url |
do_activate |
db_upgraded |
jetpack_sync_settings_disable |
jetpack_options |
jetpack_activation_source |
can_compress_scripts |
jetpack_sync_https_history_home_url |
jetpack_connection_active_plugins |
jetpack_activated |
... |
Browser metrics Passed 4 tests
Jetpack - WP Security, Backup, Speed, & Growth: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,066 ▲304 | 18.86 ▲4.53 | 3.25 ▲1.39 | 24.60 ▼19.56 |
Dashboard /wp-admin | 2,344 ▲164 | 5.89 ▲0.24 | 102.26 ▲2.38 | 99.24 ▲56.56 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.18 ▲0.17 | 42.12 ▲5.04 | 32.30 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 20.93 ▼2.28 | 717.83 ▲2.40 | 58.91 ▲0.68 |
Media Library /wp-admin/upload.php | 1,483 ▲89 | 4.38 ▲0.24 | 102.52 ▲2.45 | 46.61 ▲1.64 |
/wp-admin/admin.php?page=jetpack-debugger | 1,128 | 2.41 | 29.07 | 39.22 |
Search /wp-admin/admin.php?page=jetpack-search | 1,296 | 8.15 | 114.74 | 35.97 |
My Jetpack /wp-admin/admin.php?page=my-jetpack | 1,293 | 9.31 | 244.68 | 46.16 |
Jetpack /wp-admin/admin.php?page=jetpack | 1,300 | 15.97 | 302.07 | 44.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- do_activate
- widget_theysaidso_widget
- jetpack_connection_active_plugins
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
Please fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jetpack/vendor/wikimedia/aho-corasick/bench/bench.php
- > /wp-content/plugins/jetpack/vendor/wikimedia/aho-corasick/bench/check.php
- > /wp-content/plugins/jetpack/views/admin/jetpack-plugin-portal-containers.php
- > /wp-content/plugins/jetpack/extensions/blocks/podcast-player/templates/podcast-header.php
- 747× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPCOM_JSON_API_Get_Media_Endpoint' not found in wp-content/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-media-endpoint.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Terms_Controller' not found in wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-import/src/endpoints/class-tag.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jetpack/modules/tiled-gallery.php:23
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Forms\\ContactForm\\Contact_Form_Shortcode' not found in wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-field.php:17
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Assets' not found in wp-content/plugins/jetpack/modules/comment-likes.php:18
- > PHP Warning
Use of undefined constant JETPACK__PLUGIN_DIR - assumed 'JETPACK__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/jetpack/locales.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jetpack/modules/shortcodes/wordads.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/publicize-connections.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-external-media.php:16
- > PHP Warning
Use of undefined constant HOUR_IN_SECONDS - assumed 'HOUR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/jetpack/modules/sitemaps/sitemap-constants.php on line 83
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=my-jetpack
- > Network (severe)
index.php/wp-json/my-jetpack/v1/site/product-data?_locale=user - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/admin.php?page=my-jetpack
- > Network (severe)
index.php/wp-json/my-jetpack/v1/site/purchases?_locale=user - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: scan, woo, malware, social, spam...
jetpack/jetpack.php 92% from 13 tests
The principal PHP file in "Jetpack - WP Security, Backup, Speed, & Growth" v. 12.8.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin282,992 lines of code in 2,311 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,280 | 38,366 | 104,819 | 191,958 |
CSS | 345 | 4,107 | 1,489 | 27,604 |
JavaScript | 318 | 3,626 | 2,696 | 26,437 |
Markdown | 56 | 4,439 | 0 | 20,003 |
JSON | 51 | 0 | 0 | 6,018 |
TypeScript | 64 | 640 | 966 | 4,161 |
SVG | 128 | 1 | 13 | 2,585 |
Sass | 34 | 417 | 161 | 2,542 |
JSX | 24 | 157 | 68 | 1,249 |
HTML | 6 | 181 | 0 | 322 |
XML | 5 | 9 | 2 | 113 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 236)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 28.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 612.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 236.00 |
Code structure | ||
---|---|---|
Namespaces | 119 | |
Interfaces | 5 | |
Traits | 4 | |
Classes | 896 | |
▷ Abstract classes | 38 | 4.24% |
▷ Concrete classes | 858 | 95.76% |
▷ Final classes | 2 | 0.23% |
Methods | 8,878 | |
▷ Static methods | 2,647 | 29.82% |
▷ Public methods | 7,316 | 82.41% |
▷ Protected methods | 914 | 10.30% |
▷ Private methods | 648 | 7.30% |
Functions | 1,221 | |
▷ Named functions | 999 | 81.82% |
▷ Anonymous functions | 222 | 18.18% |
Constants | 565 | |
▷ Global constants | 110 | 19.47% |
▷ Class constants | 455 | 80.53% |
▷ Public constants | 455 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
223 PNG files occupy 13.22MB with 4.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cf-ss.png | 26.87KB | 15.76KB | ▼ 41.36% |
modules/sharedaddy/images/smart-twitter.png | 1.91KB | 1.64KB | ▼ 14.19% |
modules/sharedaddy/images/designfloat.png | 0.81KB | 0.86KB | 0.00% |
images/connect-right-secondary.png | 60.55KB | 35.14KB | ▼ 41.96% |
images/recommendations/assistant-complete-welcome-2x.png | 376.08KB | 141.19KB | ▼ 62.46% |