Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.54MB] [CPU: ▲2.21ms] Passed 4 tests
This is a short check of server-side resources used by GSheet For Woo Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.46 ▼11.37 |
Dashboard /wp-admin | 4.06 ▲0.76 | 60.94 ▲8.25 |
Posts /wp-admin/edit.php | 4.11 ▲0.76 | 57.59 ▲6.25 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 99.74 ▲6.98 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 45.29 ▲6.97 |
Server storage [IO: ▲5.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 1,201 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GSheet For Woo Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.47 ▼0.28 | 2.20 ▲0.03 | 43.17 ▼2.15 |
Dashboard /wp-admin | 2,215 ▲30 | 4.84 ▼1.06 | 113.19 ▲5.54 | 44.70 ▲4.06 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.03 | 40.19 ▲3.51 | 36.17 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.32 ▲0.04 | 610.36 ▼74.71 | 49.52 ▼1.37 |
Media Library /wp-admin/upload.php | 1,400 ▲18 | 4.23 ▼0.01 | 105.33 ▲0.08 | 45.54 ▼0.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 674× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\OpenSSH' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/OpenSSH.php:30
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/PKCS1.php:29
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/google/apiclient-services/src/Drive/Permission.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/paragonie/constant_time_encoding/tests/RFC4648Test.php:15
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\sect409r1' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistb409.php:16
- > PHP Fatal error
Trait 'Google\\Auth\\CacheTrait' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/google/auth/src/GCECache.php on line 38
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/google/apiclient-services/src/Sheets/RefreshDataSourceRequest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/google/apiclient-services/src/Sheets/UpdateValuesByDataFilterResponse.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/google/apiclient-services/src/Sheets/GridProperties.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/import-products-from-gsheet-for-woo-importer/vendor/google/apiclient-services/src/Sheets/DeleteDeveloperMetadataRequest.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: importer, woocommerce, google sheet
import-products-from-gsheet-for-woo-importer/import-products-from-gsheet-for-woo-importer.php Passed 13 tests
The main PHP file in "GSheet For Woo Importer" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
82 characters long description:
Import woocommerce products from google sheet by using native woocommerce importer
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected110,404 lines of code in 1,164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,026 | 13,598 | 55,261 | 92,206 |
JavaScript | 66 | 2,592 | 792 | 9,824 |
Markdown | 34 | 1,826 | 0 | 5,264 |
JSON | 22 | 0 | 0 | 2,322 |
CSS | 2 | 56 | 0 | 426 |
YAML | 11 | 45 | 9 | 324 |
XML | 2 | 0 | 0 | 28 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 670.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 89 | |
Interfaces | 39 | |
Traits | 12 | |
Classes | 936 | |
▷ Abstract classes | 218 | 23.29% |
▷ Concrete classes | 718 | 76.71% |
▷ Final classes | 53 | 7.38% |
Methods | 5,988 | |
▷ Static methods | 705 | 11.77% |
▷ Public methods | 5,102 | 85.20% |
▷ Protected methods | 380 | 6.35% |
▷ Private methods | 506 | 8.45% |
Functions | 235 | |
▷ Named functions | 92 | 39.15% |
▷ Anonymous functions | 143 | 60.85% |
Constants | 619 | |
▷ Global constants | 60 | 9.69% |
▷ Class constants | 559 | 90.31% |
▷ Public constants | 559 | 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