Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.06MB] [CPU: ▼207.01ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Twitter's Bootstrap
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.54 ▼0.30 | 14.46 ▼16.63 |
Dashboard /wp-admin | 2.59 ▼0.47 | 18.01 ▼31.71 |
Posts /wp-admin/edit.php | 2.59 ▼0.52 | 17.14 ▼29.91 |
Add New Post /wp-admin/post-new.php | 2.59 ▼2.85 | 16.50 ▼749.80 |
Media Library /wp-admin/upload.php | 2.59 ▼0.41 | 16.81 ▼16.46 |
WooCommerce Bootstrap /wp-admin/options-general.php?page=woocommerce-twitterbootstrap | 2.59 | 17.52 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Twitter's Bootstrap
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲90 | 15.99 ▲0.28 | 10.98 ▼0.46 | 48.71 ▲3.02 |
Dashboard /wp-admin | 2,965 ▲34 | 5.97 ▲0.06 | 148.77 ▼7.08 | 114.59 ▲11.90 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 68.29 ▼4.85 | 89.54 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,503 ▼112 | 18.56 ▼2.79 | 413.02 ▲67.90 | 108.19 ▼0.83 |
Media Library /wp-admin/upload.php | 1,812 ▲64 | 5.01 ▲0.01 | 158.80 ▼4.08 | 119.04 ▲11.51 |
WooCommerce Bootstrap /wp-admin/options-general.php?page=woocommerce-twitterbootstrap | 1,139 | 2.06 | 57.94 | 74.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/woocommerce-twitterbootstrap/woocommerce-twitterbootstrap.php+117
Function create_function() is deprecated
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=woocommerce-twitterbootstrap
- > Deprecated in wp-content/plugins/woocommerce-twitterbootstrap/woocommerce-twitterbootstrap.php+117
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woocommerce-twitterbootstrap/templates/placeholder.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-twitterbootstrap/woocommerce-twitterbootstrap.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woocommerce-twitterbootstrap/templates/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Settings panel of WooCommerce Twitter's Bootstrap)
woocommerce-twitterbootstrap/woocommerce-twitterbootstrap.php Passed 13 tests
This is the main PHP file of "WooCommerce Twitter's Bootstrap" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Adds Twitter's Bootstrap's Grid to WooCommerce
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
Success! There were no dangerous files found in this plugin635 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 150 | 213 | 451 |
PO File | 3 | 27 | 39 | 90 |
LESS | 1 | 6 | 1 | 63 |
CSS | 1 | 0 | 1 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 20.05KB | 7.54KB | ▼ 62.37% |
screenshot-1.png | 20.05KB | 7.54KB | ▼ 62.37% |