Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲2.99MB] [CPU: ▲13.37ms] 75% from 4 tests
Analyzing server-side resources used by Jetpack Search
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 574.77ms on /wp-admin/admin.php?page=my-jetpack)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.59 ▲4.13 | 43.32 ▼0.11 |
Dashboard /wp-admin | 6.21 ▲2.90 | 70.65 ▲19.72 |
Posts /wp-admin/edit.php | 6.26 ▲2.90 | 68.41 ▲18.76 |
Add New Post /wp-admin/post-new.php | 9.19 ▲3.30 | 107.35 ▲15.09 |
Media Library /wp-admin/upload.php | 6.07 ▲2.84 | 68.16 ▲29.11 |
Search /wp-admin/admin.php?page=jetpack-search | 6.42 | 65.05 |
My Jetpack /wp-admin/admin.php?page=my-jetpack | 6.83 | 574.77 |
Server storage [IO: ▲4.95MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 368 new files
Database: no new tables, 12 new options
New WordPress options |
---|
can_compress_scripts |
jetpack_active_modules |
db_upgraded |
jetpack_sync_https_history_site_url |
jetpack_sync_https_history_home_url |
widget_theysaidso_widget |
jetpack_connection_active_plugins |
theysaidso_admin_options |
widget_recent-comments |
jetpack_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Jetpack Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 13.61 ▼1.14 | 2.78 ▲0.68 | 39.76 ▲0.20 |
Dashboard /wp-admin | 2,256 ▲56 | 4.96 ▲0.03 | 109.82 ▲5.33 | 37.62 ▼2.18 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.20 ▲0.15 | 38.88 ▲1.19 | 34.03 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,567 ▲35 | 23.41 ▲0.30 | 625.96 ▲11.26 | 51.53 ▼19.86 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.27 ▲0.08 | 102.75 ▼15.67 | 50.37 ▲3.64 |
Search /wp-admin/admin.php?page=jetpack-search | 1,245 | 8.17 | 197.38 | 43.18 |
My Jetpack /wp-admin/admin.php?page=my-jetpack | 1,600 | 8.70 | 132.20 | 44.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 12 options in the database
- theysaidso_admin_options
- jetpack_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- jetpack_connection_active_plugins
- jetpack_sync_https_history_site_url
- jetpack_active_modules
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 59× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Sync\\Modules\\Module' not found in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-sync/src/modules/class-menus.php:13
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Sync\\Modules\\Module' not found in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-sync/src/modules/class-full-sync-immediately.php:21
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\My_Jetpack\\Product' not found in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-module-product.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-search/src/widgets/class-search-widget.php:24
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\My_Jetpack\\Product' not found in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-hybrid-product.php:30
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Sync\\Replicastore\\Table_Checksum' not found in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-sync/src/replicastore/class-table-checksum-users.php:13
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Sync\\Modules\\Module' not found in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-sync/src/modules/class-callables.php:19
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-plugins-installer/src/class-automatic-install-skin.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\JITMS\\JITM' not found in wp-content/plugins/jetpack-search/jetpack_vendor/automattic/jetpack-jitm/src/class-post-connection-jitm.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: filter, free cloud-based search, ajax search, product search, woocommerce search...
jetpack-search/jetpack-search.php 92% from 13 tests
Analyzing the main PHP file in "Jetpack Search" version 1.4.1
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin42,772 lines of code in 303 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 211 | 7,263 | 24,027 | 33,321 |
Markdown | 24 | 1,830 | 0 | 5,873 |
JSON | 23 | 0 | 0 | 2,308 |
JavaScript | 17 | 95 | 95 | 523 |
Sass | 3 | 81 | 14 | 422 |
CSS | 17 | 35 | 7 | 171 |
SVG | 7 | 2 | 6 | 105 |
JSX | 1 | 6 | 4 | 49 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 24.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 293.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 182 | |
▷ Abstract classes | 4 | 2.20% |
▷ Concrete classes | 178 | 97.80% |
▷ Final classes | 0 | 0.00% |
Methods | 2,196 | |
▷ Static methods | 763 | 34.74% |
▷ Public methods | 1,920 | 87.43% |
▷ Protected methods | 136 | 6.19% |
▷ Private methods | 140 | 6.38% |
Functions | 49 | |
▷ Named functions | 7 | 14.29% |
▷ Anonymous functions | 42 | 85.71% |
Constants | 173 | |
▷ Global constants | 13 | 7.51% |
▷ Class constants | 160 | 92.49% |
▷ Public constants | 160 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 compressed PNG files occupy 1.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jetpack_vendor/automattic/jetpack-jitm/build/images/background-165b2f00927a762c8cf4.png | 23.54KB | 25.93KB | 0.00% |
jetpack_vendor/automattic/jetpack-my-jetpack/build/images/boost-a54137485af36fdffe9c.png | 144.84KB | 159.13KB | 0.00% |
jetpack_vendor/automattic/jetpack-my-jetpack/build/images/search-f9756bd9c926d905fe70.png | 92.66KB | 101.40KB | 0.00% |
jetpack_vendor/automattic/jetpack-my-jetpack/build/images/jetpack-license-activation-with-success-cad524ede4e793cc0ece.png | 142.02KB | 55.29KB | ▼ 61.07% |
jetpack_vendor/automattic/jetpack-my-jetpack/build/images/videopress-9591093a9a238cc48a35.png | 249.82KB | 270.27KB | 0.00% |