Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▼0.76ms] Passed 4 tests
Analyzing server-side resources used by GG Bought Together for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 25.58 ▼9.55 |
Dashboard /wp-admin | 3.88 ▲0.54 | 56.16 ▼2.85 |
Posts /wp-admin/edit.php | 3.93 ▲0.58 | 50.98 ▲3.62 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.60 | 97.42 ▲5.76 |
Media Library /wp-admin/upload.php | 3.79 ▲0.57 | 41.74 ▲11.08 |
Bought Together /wp-admin/admin.php?page=gg-woo-bt-settings | 3.93 | 36.73 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 164 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
GG Bought Together for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,467 ▼279 | 13.49 ▼1.26 | 0.46 ▼1.30 | 15.90 ▼24.12 |
Dashboard /wp-admin | 2,205 ▲20 | 5.22 ▼0.66 | 100.46 ▲1.17 | 38.02 ▼2.97 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.38 ▲0.36 | 39.97 ▲5.71 | 32.45 ▼4.36 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,698 | 21.71 ▲3.39 | 887.63 ▲296.20 | 44.74 ▼10.04 |
Media Library /wp-admin/upload.php | 1,384 ▼4 | 4.35 ▲0.12 | 98.58 ▲3.54 | 43.26 ▲1.14 |
Bought Together /wp-admin/admin.php?page=gg-woo-bt-settings | 1,059 | 2.69 | 38.35 | 29.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% 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 50% 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
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GG_Woo_BT\\Core\\Metabox' not found in wp-content/plugins/gg-bought-together/inc/Admin/Setting/General.php:13
- > PHP Fatal error
Uncaught Error: Class 'GG_Woo_BT\\Core\\Metabox' not found in wp-content/plugins/gg-bought-together/inc/Admin/Setting/Default_Products.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gg-bought-together/inc/Libraries/Form/Field/views/input-multi-checkbox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gg-bought-together/inc/Libraries/Form/View/tabs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-bought-together/inc/Libraries/Form/Field/views/input-textarea.php:12
- > PHP Fatal error
Uncaught Error: Class 'GG_Woo_BT\\Core\\Controller' not found in wp-content/plugins/gg-bought-together/inc/Admin/Controller/Product.php:6
- > PHP Fatal error
Uncaught Error: Class 'GG_Woo_BT\\Core\\Controller' not found in wp-content/plugins/gg-bought-together/inc/Admin/Controller/Search.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/gg-bought-together/inc/Libraries/Form/Field/views/input-select.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-bought-together/inc/Libraries/Form/Field/views/input-switch.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-bought-together/inc/Libraries/Form/Field/views/input-title.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in gg-bought-together/assets to your readme.txt
gg-bought-together/gg-bought-together.php 77% from 13 tests
This is the main PHP file of "GG Bought Together for WooCommerce" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.2" instead of "3.6")
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 plugin17,836 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 73 | 2,755 | 881 | 10,790 |
PHP | 63 | 1,341 | 2,253 | 5,395 |
CSS | 9 | 382 | 117 | 1,631 |
SVG | 1 | 0 | 0 | 19 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 16.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 258 | |
▷ Static methods | 28 | 10.85% |
▷ Public methods | 225 | 87.21% |
▷ Protected methods | 7 | 2.71% |
▷ Private methods | 26 | 10.08% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected