Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/smart-tools-for-woocommerce/includes/stwc_functions.php+22
Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/smart-tools-for-woocommerce/includes/stwc_functions.php:22
Stack trace:
#0 wp-content/plugins/smart-tools-for-woocommerce/constellation-smart-tools-for-woocommerce.php(126): stwc_activation_check()
#1 wp-includes/class-wp-hook.php(310): stwc_activation()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼12.87ms] Passed 4 tests
A check of server-side resources used by Constellation: Smart Tools for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.00 | 40.78 ▼5.50 |
Dashboard /wp-admin | 3.57 ▼0.06 | 49.95 ▼17.32 |
Posts /wp-admin/edit.php | 3.68 ▲0.00 | 55.69 ▲6.06 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.00 | 87.39 ▼28.70 |
Media Library /wp-admin/upload.php | 3.49 ▲0.00 | 40.40 ▲0.06 |
Server storage [IO: ▲4.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 190 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
can_compress_scripts |
fs_gdpr |
db_upgraded |
fs_debug_mode |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_active_plugins |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Constellation: Smart Tools for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.75 ▲0.44 | 1.76 ▼0.10 | 43.26 ▲1.76 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▼0.06 | 86.33 ▼4.76 | 39.07 ▼5.54 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▼0.02 | 39.50 ▼0.92 | 36.55 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,545 ▼5 | 23.12 ▼0.32 | 596.70 ▼105.48 | 46.96 ▼10.98 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▲0.02 | 96.61 ▼11.98 | 42.53 ▼4.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- fs_active_plugins
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- fs_gdpr
- fs_debug_mode
- fs_accounts
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/smart-tools-for-woocommerce/includes/stwc_functions.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smart-tools-for-woocommerce/includes/stwc_process.php:3
- > 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 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
5 plugin tags: buynow, vat, shop, woocommerce, gdpr
smart-tools-for-woocommerce/constellation-smart-tools-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "Constellation: Smart Tools for WooCommerce" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-tools-for-woocommerce.php" instead of "constellation-smart-tools-for-woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin31,950 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 7,452 | 16,474 | 31,550 |
JavaScript | 5 | 42 | 69 | 253 |
SVG | 1 | 1 | 0 | 91 |
CSS | 13 | 4 | 12 | 56 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 90.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,170 | |
▷ Static methods | 173 | 14.79% |
▷ Public methods | 830 | 70.94% |
▷ Protected methods | 15 | 1.28% |
▷ Private methods | 325 | 27.78% |
Functions | 131 | |
▷ Named functions | 131 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 142 | |
▷ Global constants | 114 | 80.28% |
▷ Class constants | 28 | 19.72% |
▷ Public constants | 28 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 1.17MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/discord-deal.png | 48.61KB | 31.05KB | ▼ 36.13% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
screenshot-2.png | 165.07KB | 81.99KB | ▼ 50.33% |
screenshot-1.png | 247.42KB | 118.49KB | ▼ 52.11% |
screenshot-4.png | 185.10KB | 89.04KB | ▼ 51.90% |