Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.75MB] [CPU: ▼140.20ms] Passed 4 tests
A check of server-side resources used by Woocommerce Synchronizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.73 | 40.30 ▲6.95 |
Dashboard /wp-admin | 3.87 ▲0.81 | 50.54 ▲9.19 |
Posts /wp-admin/edit.php | 3.91 ▲0.80 | 41.95 ▼1.69 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.72 | 94.97 ▼565.10 |
Media Library /wp-admin/upload.php | 3.74 ▲0.74 | 37.69 ▼0.97 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 34 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_woo_sync_download_list |
wp_woo_sync_future_publish |
wp_woo_sync_relationships |
New WordPress options |
---|
woo_sync_target_uniqid |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Synchronizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,727 ▲131 | 15.94 ▲0.00 | 8.10 ▼0.45 | 47.58 ▼1.11 |
Dashboard /wp-admin | 2,996 ▲62 | 5.89 ▼0.09 | 150.27 ▲2.09 | 113.81 ▲4.18 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.69 ▼0.00 | 67.65 ▼2.29 | 95.09 ▲14.04 |
Add New Post /wp-admin/post-new.php | 1,893 ▲393 | 19.19 ▲0.27 | 394.05 ▲30.51 | 108.53 ▼3.10 |
Media Library /wp-admin/upload.php | 1,831 ▲24 | 5.03 ▲0.01 | 152.95 ▼3.75 | 123.76 ▼22.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_woo_sync_future_publish
- wp_woo_sync_download_list
- wp_woo_sync_relationships
- Zombie WordPress options detected upon uninstall: 1 option
- woo_sync_target_uniqid
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/target/products.php:580
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-synchronizer/includes/functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/target/tags.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/target/categories.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/local/update.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/local/create.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/publisher.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/target/attributes.php:8
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
woo-synchronizer/woo_sync.php 85% from 13 tests
The entry point to "Woocommerce Synchronizer" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-synchronizer.php" instead of "woo_sync.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin5,919 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 1,193 | 197 | 4,363 |
JavaScript | 1 | 196 | 9 | 583 |
PO File | 1 | 170 | 192 | 482 |
CSS | 2 | 112 | 3 | 468 |
SVG | 2 | 0 | 1 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 76 | |
▷ Named functions | 75 | 98.68% |
▷ Anonymous functions | 1 | 1.32% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 52.07KB | 19.91KB | ▼ 61.77% |
assets/img/loader.png | 31.38KB | 16.76KB | ▼ 46.58% |