Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/multisite-sync-for-woocommerce/inc/inc-backend.php+9
Uncaught Error: Call to undefined function get_sites() in wp-content/plugins/multisite-sync-for-woocommerce/inc/inc-backend.php:9
Stack trace:
#0 wp-content/plugins/multisite-sync-for-woocommerce/inc/inc-backend.php(32): multisite_sync_for_woocommerce_json_fileds()
#1 wp-content/plugins/multisite-sync-for-woocommerce/inc/inc-backend.php(136): multisite_sync_for_woocommerce->__construct()
#2 wp-content/plugins/multisite-sync-for-woocommerce/lemontec-woocommerce-multisite-sync.php(22): require_once('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#4 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▲1.32ms] Passed 4 tests
A check of server-side resources used by Multisite sync for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.03 ▲3.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 59.65 ▲13.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.59 ▲3.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.82 ▼2.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.04 ▲0.43 |
Server storage [IO: ▲0.09MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Multisite sync for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼11 | 14.80 ▼0.00 | 1.95 ▼0.01 | 57.51 ▲12.76 |
Dashboard /wp-admin | 2,203 ▼3 | 4.86 ▼1.02 | 132.36 ▲35.36 | 53.21 ▲13.79 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.03 | 38.86 ▼0.07 | 35.56 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.35 ▲5.21 | 669.81 ▲33.65 | 62.37 ▲2.55 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▼0.01 | 114.05 ▲12.69 | 55.57 ▲9.91 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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
Good news, no errors were detected
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 fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-sync-for-woocommerce/lemontec-woocommerce-multisite-sync.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/multisite-sync-for-woocommerce/trunk/inc/inc-backend.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-sync-for-woocommerce/trunk/lemontec-woocommerce-multisite-sync.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/multisite-sync-for-woocommerce/inc/inc-backend.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Requires php: Version not formatted correctly
multisite-sync-for-woocommerce/lemontec-woocommerce-multisite-sync.php 85% from 13 tests
The main file in "Multisite sync for WooCommerce" v. 3.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("multisite-sync-for-woocommerce.php" instead of "lemontec-woocommerce-multisite-sync.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected703 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 79 | 570 |
PO File | 2 | 40 | 40 | 132 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 50.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 images were found in this plugin