Benchmarks
Plugin footprint 65% 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.08MB] [CPU: ▲18.34ms] Passed 4 tests
A check of server-side resources used by Platy Syncer Woocommerce to Etsy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 72.16 ▲37.00 |
Dashboard /wp-admin | 4.08 ▲0.78 | 80.47 ▲31.04 |
Posts /wp-admin/edit.php | 4.13 ▲0.77 | 74.07 ▲29.15 |
Add New Post /wp-admin/post-new.php | 3.87 ▼2.02 | 67.91 ▼23.83 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 72.67 ▲37.78 |
Server storage [IO: ▲11.11MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 340 new files
Database: 9 new tables, 6 new options
New tables |
---|
wp_plty_etsy_templates_meta |
wp_plty_etsy_logs |
wp_plty_etsy_options |
wp_plty_etsy_products_meta |
wp_plty_etsy_templates |
wp_plty_etsy_connections |
wp_plty_etsy_shops |
wp_plty_etsy_product_attributes |
wp_plty_etsy_products |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Platy Syncer Woocommerce to Etsy
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲119 | 13.73 ▼0.98 | 8.54 ▲6.52 | 38.31 ▼6.01 |
Dashboard /wp-admin | 2,203 ▲26 | 5.59 ▼0.06 | 91.70 ▲3.36 | 41.66 ▼6.59 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▼0.04 | 35.48 ▼0.84 | 30.58 ▼7.45 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 21.11 ▼2.16 | 693.15 ▲32.45 | 59.61 ▼7.02 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.20 ▲0.04 | 100.13 ▼8.50 | 44.77 ▼0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 tables in the database
- wp_plty_etsy_templates
- wp_plty_etsy_product_attributes
- wp_plty_etsy_connections
- wp_plty_etsy_logs
- wp_plty_etsy_products
- wp_plty_etsy_templates_meta
- wp_plty_etsy_shops
- wp_plty_etsy_options
- wp_plty_etsy_products_meta
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- 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)
Good news, no errors were detected
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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/platycorp-etsy-syncer/public/partials/platy-syncer-etsy-public-display.php
- > /wp-content/plugins/platycorp-etsy-syncer/admin/partials/platy-syncer-etsy-admin-display.php
- 115× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_help_tip() in wp-content/plugins/platycorp-etsy-syncer/admin/views/platy-syncer-etsy-logo.php:14
- > PHP Fatal error
Uncaught Error: Class 'platy\\etsy\\EtsySyncerException' not found in wp-content/plugins/platycorp-etsy-syncer/includes/exceptions/core/class-no-such-item-exception.php:7
- > PHP Fatal error
Uncaught Error: Interface 'platy\\etsy\\Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/Psr7/Response.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/platycorp-etsy-syncer/admin/rest/attributes/class-product-attributes-api.php:8
- > PHP Fatal error
Uncaught Error: Interface 'platy\\etsy\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/Psr7/Stream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'platy\\etsy\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/Psr7/FnStream.php:15
- > PHP Fatal error
Uncaught Error: Class 'platy\\etsy\\GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/Exception/ConnectException.php:13
- > PHP Fatal error
Uncaught Error: Interface 'platy\\etsy\\Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/Psr/Http/Client/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Interface 'platy\\etsy\\GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/platycorp-etsy-syncer/src/Dependencies/GuzzleHttp/BodySummarizer.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/platycorp-etsy-syncer/admin/rest/etsy-categories/class-etsy-categories-api.php:9
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: sync, syncer, woocommerce, etsy, export...
platycorp-etsy-syncer/platy-syncer-etsy.php 77% from 13 tests
The main PHP file in "Platy Syncer Woocommerce to Etsy" ver. 6.1.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("platycorp-etsy-syncer.php" instead of "platy-syncer-etsy.php")
- Requires at least: Required version does not match the one declared in readme.txt ("3.5.0" instead of "4.0.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected23,968 lines of code in 259 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 224 | 4,364 | 6,771 | 18,650 |
JSON | 5 | 3 | 0 | 5,080 |
JavaScript | 20 | 46 | 54 | 194 |
CSS | 8 | 0 | 34 | 25 |
Markdown | 1 | 9 | 0 | 18 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 27 | |
Traits | 3 | |
Classes | 173 | |
▷ Abstract classes | 1 | 0.58% |
▷ Concrete classes | 172 | 99.42% |
▷ Final classes | 34 | 19.77% |
Methods | 1,435 | |
▷ Static methods | 188 | 13.10% |
▷ Public methods | 1,120 | 78.05% |
▷ Protected methods | 92 | 6.41% |
▷ Private methods | 223 | 15.54% |
Functions | 162 | |
▷ Named functions | 38 | 23.46% |
▷ Anonymous functions | 124 | 76.54% |
Constants | 162 | |
▷ Global constants | 3 | 1.85% |
▷ Class constants | 159 | 98.15% |
▷ Public constants | 148 | 93.08% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.57MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 359.55KB | 99.84KB | ▼ 72.23% |
assets/images/etsy_logo.png | 12.79KB | 6.80KB | ▼ 46.85% |
assets/images/etsy_full_logo.png | 3.08KB | 2.42KB | ▼ 21.63% |
assets/screenshot-3.PNG | 47.23KB | 20.27KB | ▼ 57.09% |
assets/screenshot-2.PNG | 25.50KB | 13.30KB | ▼ 47.84% |