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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.02ms] Passed 4 tests
An overview of server-side resources used by Infoplus Connect for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.46 ▼3.24 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.78 ▲1.83 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.10 ▲1.20 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 97.34 ▲0.30 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.46 ▲2.21 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Infoplus Connect for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.18 ▼1.52 | 1.85 ▼0.25 | 43.44 ▼2.66 |
Dashboard /wp-admin | 2,209 ▲24 | 4.80 ▼0.25 | 95.67 ▼23.12 | 41.59 ▼6.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 40.88 ▲2.07 | 34.84 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.27 ▲5.75 | 664.33 ▲18.82 | 55.71 ▲8.78 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▲0.02 | 94.04 ▼1.40 | 43.72 ▼1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/infoplus-connect-for-woocommerce/includes/admin/views/html-settings-connect.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/infoplus-connect-for-woocommerce/trunk/includes/admin/views/html-orders-meta-box-table.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/infoplus-connect-for-woocommerce/includes/admin/views/html-orders-meta-box-table.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/infoplus-connect-for-woocommerce/trunk/includes/admin/views/html-settings-connect.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Connect your store to Infoplus), #2 (Determine which products are managed via Infoplus), #3 (Order data is automatically pushed to Infoplus and synced to fulfillment workflows), #4 (Customers and admins can easily track orders)
- Contributors: Contributors not specified
infoplus-connect-for-woocommerce/infoplus-connect-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Infoplus Connect for WooCommerce" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin5,308 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 2,885 | 5,690 | 4,560 |
PO File | 1 | 287 | 547 | 702 |
CSS | 1 | 2 | 0 | 45 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 18 | 20.93% |
▷ Concrete classes | 68 | 79.07% |
▷ Final classes | 0 | 0.00% |
Methods | 856 | |
▷ Static methods | 148 | 17.29% |
▷ Public methods | 664 | 77.57% |
▷ Protected methods | 180 | 21.03% |
▷ Private methods | 12 | 1.40% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected