Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▲1.75ms] Passed 4 tests
A check of server-side resources used by Cloud Printing for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 36.49 ▼2.72 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.18 ▼3.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.94 ▲6.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.55 ▲8.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.80 ▲6.39 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cloud Printing for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.65 ▼0.66 | 1.92 ▼0.02 | 39.41 ▼9.86 |
Dashboard /wp-admin | 2,203 ▲11 | 5.83 ▲0.90 | 101.27 ▼12.35 | 38.06 ▼4.18 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.03 | 42.50 ▲8.16 | 34.21 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.08 ▼0.10 | 649.94 ▼12.37 | 61.74 ▼0.29 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.18 ▼0.02 | 93.94 ▼5.14 | 41.92 ▲0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Even though everything seems fine, this is not 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cloud-printing-for-woocommerce/woocommerce-iconnect.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cloud-printing-for-woocommerce/includes/IconnectValidation.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cloud-printing-for-woocommerce/includes/class-wc-iconnect.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cloud-printing-for-woocommerce/includes/printerco-settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/cloud-printing-for-woocommerce/includes/printerco-email-editor.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cloud-printing-for-woocommerce/includes/printerco-orders.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cloud-printing-for-woocommerce/includes/PrintercoRefund.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cloud-printing-for-woocommerce/includes/printerco-dokan.php:3
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Contributors: The plugin tags were not defined
- Contributors: Plugin contributors not specified
cloud-printing-for-woocommerce/woocommerce-iconnect.php 85% from 13 tests
"Cloud Printing for WooCommerce" version 2.7.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 312 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cloud-printing-for-woocommerce.php" instead of "woocommerce-iconnect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,059 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 359 | 145 | 2,059 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 6 | 8.45% |
▷ Public methods | 54 | 76.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 23.94% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 51 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 51 | 100.00% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin