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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.69ms] Passed 4 tests
This is a short check of server-side resources used by Storefront Jetpack
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.20 ▲2.55 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.45 ▼3.17 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.91 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 91.92 ▼6.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.45 ▲3.51 |
Storefront Jetpack /wp-admin/themes.php?page=storefront_jetpack | 3.41 | 31.46 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Storefront Jetpack
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.66 ▼0.74 | 5.13 ▲3.17 | 43.80 ▲0.58 |
Dashboard /wp-admin | 2,217 ▲32 | 4.87 ▼1.03 | 95.95 ▼8.23 | 38.55 ▼8.00 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.05 ▲0.06 | 40.16 ▲6.46 | 37.21 ▲5.32 |
Add New Post /wp-admin/post-new.php | 1,521 ▼15 | 17.83 ▼5.42 | 682.27 ▲11.85 | 59.80 ▲7.97 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.16 ▼0.05 | 100.84 ▼4.91 | 45.57 ▼0.97 |
Storefront Jetpack /wp-admin/themes.php?page=storefront_jetpack | 988 | 2.22 | 24.66 | 34.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/themes.php?page=storefront_jetpack
- > Warning in wp-content/plugins/storefront-jetpack/admin/partials/sfjp-admin-display.php+46
Illegal string offset 'align_menu_right'
- 4 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=storefront_jetpack
- > Notice in wp-content/plugins/storefront-jetpack/admin/partials/sfjp-admin-display.php+46
Uninitialized string offset: 0
- > GET request to /wp-admin/themes.php?page=storefront_jetpack
- > Warning in wp-content/plugins/storefront-jetpack/admin/partials/sfjp-admin-display.php+46
Illegal string offset 'add_top_bar'
- > GET request to /wp-admin/themes.php?page=storefront_jetpack
- > Warning in wp-content/plugins/storefront-jetpack/admin/partials/sfjp-admin-display.php+46
Illegal string offset 'remove_header_search'
- > GET request to /wp-admin/themes.php?page=storefront_jetpack
- > Warning in wp-content/plugins/storefront-jetpack/admin/partials/sfjp-admin-display.php+46
Illegal string offset 'custom_logo'
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/storefront-jetpack/public/partials/sfjp-public-display.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/storefront-jetpack/admin/partials/sfjp-admin-display.php:15
- > PHP Warning
Use of undefined constant StorefrontJetpackUrl - assumed 'StorefrontJetpackUrl' (this will throw an Error in a future version of PHP) in wp-content/plugins/storefront-jetpack/includes/sfjp-vars.php on line 46
- > PHP Warning
Use of undefined constant StorefrontJetpackUrl - assumed 'StorefrontJetpackUrl' (this will throw an Error in a future version of PHP) in wp-content/plugins/storefront-jetpack/includes/sfjp-vars.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/storefront-jetpack/public/mods/top-bar.php:23
- > PHP Warning
Use of undefined constant StorefrontJetpackUrl - assumed 'StorefrontJetpackUrl' (this will throw an Error in a future version of PHP) in wp-content/plugins/storefront-jetpack/includes/sfjp-vars.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/storefront-jetpack/public/mods/custom-logo.php:21
- > PHP Warning
Use of undefined constant StorefrontJetpackUrl - assumed 'StorefrontJetpackUrl' (this will throw an Error in a future version of PHP) in wp-content/plugins/storefront-jetpack/includes/sfjp-vars.php on line 40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Donate link: Invalid url: ""
storefront-jetpack/storefront-jetpack.php Passed 13 tests
The entry point to "Storefront Jetpack" version 1.0.0 is a PHP file that has certain tags in its header comment area
122 characters long description:
A powerful plugin with lots of features for WooThemes Storefront. Go to Appearance > Storefront Jetpack for settings page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,105 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 322 | 1,157 | 979 |
CSS | 2 | 20 | 8 | 107 |
JavaScript | 2 | 3 | 27 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 3 | 27.27% |
Methods | 83 | |
▷ Static methods | 5 | 6.02% |
▷ Public methods | 63 | 75.90% |
▷ Protected methods | 7 | 8.43% |
▷ Private methods | 13 | 15.66% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.84MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/hide-header-search.png | 4.33KB | 1.94KB | ▼ 55.21% |
assets/custom-logo.png | 3.80KB | 1.65KB | ▼ 56.69% |
assets/top-bar.png | 2.39KB | 0.89KB | ▼ 62.88% |
assets/banner-772x250.png | 169.68KB | 49.08KB | ▼ 71.08% |
assets/pootle-logo.png | 89.81KB | 8.23KB | ▼ 90.84% |