Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.67ms] Passed 4 tests
Analyzing server-side resources used by Grow Reports for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.35 ▲2.42 |
Dashboard /wp-admin | 3.38 ▲0.07 | 54.51 ▲4.91 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 62.56 ▲6.17 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 101.12 ▼10.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 44.70 ▲6.91 |
Server storage [IO: ▲7.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 249 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Grow Reports for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲26 | 14.35 ▲0.07 | 1.69 ▼0.33 | 43.81 ▲2.80 |
Dashboard /wp-admin | 2,218 ▲44 | 5.62 ▼0.04 | 89.94 ▼5.44 | 39.71 ▼2.81 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.15 ▲0.15 | 44.70 ▲8.48 | 40.34 ▲4.66 |
Add New Post /wp-admin/post-new.php | 1,551 ▲16 | 23.41 ▲5.02 | 647.27 ▼16.55 | 61.56 ▲1.18 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.24 ▲0.07 | 140.45 ▲36.88 | 56.21 ▲12.92 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/index.php
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/simplefileupload.php
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/service-account.php
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/user-example.php
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/multi-api.php
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/idtoken.php
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/batch.php
- > /wp-content/plugins/grow-with-woocommerce/includes/emails/views/footer.php
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/simple-query.php
- > /wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/examples/fileupload.php
- 122× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/Audit.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/Urlshortener.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/Cloudsearch.php:33
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/GamesConfiguration.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/Drive.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/CloudMonitoring.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/Pagespeedonline.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/Books.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/TagManager.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/grow-with-woocommerce/includes/vendor/google-api-php-client/src/Google/Service/Resourceviews.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires at least: Invalid plugin version format
- Tags: You are using too many tags: 39 tag instead of maximum 10
grow-with-woocommerce/grow.php 92% from 13 tests
"Grow Reports for WooCommerce" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("grow-with-woocommerce.php" instead of "grow.php")
Code Analysis Passed 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 plugin178,817 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 12,416 | 35,093 | 175,264 |
JavaScript | 7 | 551 | 477 | 2,274 |
CSS | 4 | 171 | 95 | 1,014 |
XML | 2 | 28 | 41 | 122 |
Markdown | 2 | 48 | 0 | 75 |
JSON | 5 | 0 | 0 | 40 |
YAML | 1 | 6 | 2 | 22 |
INI | 1 | 0 | 1 | 6 |
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.02 |
Average class complexity | 1.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 1.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3,069 | |
▷ Abstract classes | 10 | 0.33% |
▷ Concrete classes | 3,059 | 99.67% |
▷ Final classes | 0 | 0.00% |
Methods | 24,103 | |
▷ Static methods | 54 | 0.22% |
▷ Public methods | 23,989 | 99.53% |
▷ Protected methods | 31 | 0.13% |
▷ Private methods | 83 | 0.34% |
Functions | 16 | |
▷ Named functions | 12 | 75.00% |
▷ Anonymous functions | 4 | 25.00% |
Constants | 253 | |
▷ Global constants | 1 | 0.40% |
▷ Class constants | 252 | 99.60% |
▷ Public constants | 252 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/growl_med.png | 78.75KB | 24.32KB | ▼ 69.11% |
assets/img/growl_little_small.png | 38.33KB | 13.41KB | ▼ 65.03% |
assets/img/growl_400.png | 64.37KB | 21.50KB | ▼ 66.60% |