Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/actionwear-products-sync/includes/classes/product/class-action-wear-product.php+21
require_once(wp-content/plugins/actionwear-products-sync/includes/classes/product/../../../../woocommerce/includes/admin/wc-admin-functions.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.96ms] Passed 4 tests
This is a short check of server-side resources used by Actionwear products sync
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.82 ▼4.83 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.70 ▼14.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.05 ▼0.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.82 ▲3.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.15 ▲0.43 |
Server storage [IO: ▲2.62MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 112 new files
Database: 9 new tables, 7 new options
New tables |
---|
wp_actionwear_recharges |
wp_actionwear_images |
wp_actionwear_recharges_details |
wp_actionwear_categories_product |
wp_actionwear_brands |
wp_actionwear_categories |
wp_actionwear_log |
wp_actionwear_products |
wp_actionwear_categories_associations |
New WordPress options |
---|
widget_recent-comments |
_ACTIONWEAR_DB_VERSION |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Actionwear products sync: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.61 ▲0.40 | 1.67 ▲0.00 | 38.40 ▼5.79 |
Dashboard /wp-admin | 2,195 ▲14 | 5.66 ▼0.07 | 94.54 ▼13.26 | 41.55 ▼1.43 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.03 | 38.84 ▲2.87 | 34.65 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.99 ▼0.21 | 604.06 ▼96.12 | 53.48 ▼0.43 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.02 | 93.70 ▼7.29 | 39.97 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 tables in the database
- wp_actionwear_categories_associations
- wp_actionwear_brands
- wp_actionwear_images
- wp_actionwear_products
- wp_actionwear_recharges_details
- wp_actionwear_categories_product
- wp_actionwear_recharges
- wp_actionwear_categories
- wp_actionwear_log
- This plugin does not fully uninstall, leaving 7 options in the database
- _ACTIONWEAR_DB_VERSION
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/actionwear-products-sync/composer-setup.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'AC_SYNC\\Includes\\Classes\\Async\\Action_Wear_Background_Process' not found in wp-content/plugins/actionwear-products-sync/includes/classes/async/class-action-wear-differential-product-task.php:8
- > PHP Fatal error
Uncaught Error: Class 'AC_SYNC\\Includes\\Classes\\Async\\Action_Wear_Async_Request' not found in wp-content/plugins/actionwear-products-sync/includes/classes/async/class-action-wear-background-process.php:17
- > PHP Notice
Undefined variable: argv in wp-content/plugins/actionwear-products-sync/composer-setup.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'AC_SYNC\\Includes\\Classes\\Async\\Action_Wear_Background_Process' not found in wp-content/plugins/actionwear-products-sync/includes/classes/async/class-action-wear-product-import.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: actionwear
actionwear-products-sync/actionwear.php 77% from 13 tests
"Actionwear products sync" version 2.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("actionwear-products-sync.php" instead of "actionwear.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin6,847 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 1,137 | 1,151 | 6,251 |
JavaScript | 2 | 1 | 1 | 210 |
Markdown | 2 | 97 | 0 | 159 |
CSS | 3 | 0 | 2 | 145 |
SVG | 1 | 0 | 1 | 46 |
JSON | 2 | 0 | 0 | 36 |
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.33 |
Average class complexity | 10.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 4 | 7.55% |
▷ Concrete classes | 49 | 92.45% |
▷ Final classes | 0 | 0.00% |
Methods | 398 | |
▷ Static methods | 124 | 31.16% |
▷ Public methods | 347 | 87.19% |
▷ Protected methods | 48 | 12.06% |
▷ Private methods | 3 | 0.75% |
Functions | 56 | |
▷ Named functions | 19 | 33.93% |
▷ Anonymous functions | 37 | 66.07% |
Constants | 47 | |
▷ Global constants | 4 | 8.51% |
▷ Class constants | 43 | 91.49% |
▷ Public constants | 43 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
camac-placeholder.png | 0.07KB | 0.09KB | 0.00% |
react-code/build/logo192.png | 2.81KB | 2.41KB | ▼ 14.28% |
react-code/build/logo512.png | 3.59KB | 2.81KB | ▼ 21.68% |
react-code/build/logo-mini.png | 2.02KB | 1.40KB | ▼ 30.43% |