Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼4.85ms] Passed 4 tests
This is a short check of server-side resources used by AliExpress for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 34.45 ▼3.00 |
Dashboard /wp-admin | 3.56 ▲0.21 | 44.92 ▼15.76 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 48.01 ▲0.35 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 92.31 ▼0.99 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.36 ▲3.36 |
Server storage [IO: ▲3.01MB] [DB: ▲0.08MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (0.69KB) outside of "wp-content/plugins/woo-aliexpress/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 601 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_aew_mapping_carriers |
wp_aew_data_default |
wp_aew_mapping_features |
wp_aew_products_error |
wp_aew_jobs |
wp_aew_mapping_attributes |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
AEW_TOKEN_CRON |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for AliExpress for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.62 ▼1.12 | 1.71 ▲0.13 | 41.80 ▲0.78 |
Dashboard /wp-admin | 2,240 ▲49 | 5.44 ▲0.39 | 115.68 ▲12.66 | 40.71 ▼4.42 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.39 ▲0.37 | 41.25 ▼0.92 | 36.78 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 17.79 ▼5.67 | 583.30 ▼98.11 | 33.68 ▼18.13 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.70 ▲0.47 | 95.81 ▼3.33 | 38.83 ▼3.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_aew_mapping_attributes
- wp_aew_data_default
- wp_aew_mapping_carriers
- wp_aew_products_error
- wp_aew_jobs
- wp_aew_mapping_features
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- AEW_TOKEN_CRON
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-aliexpress/views/general-options.php
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Nahid\\JsonQ\\Tests\\TestCase' not found in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/tests/Facades/Jsonq.php:11
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/examples/find.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Nahid\\JsonQ\\Tests\\AbstractTestCase' not found in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/tests/ConditionTest.php:7
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/examples/sum.php on line 9
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/examples/find.php on line 10
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/examples/exists.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'AEObject' not found in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/AECarriers.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/tests/AbstractTestCase.php:5
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/examples/count.php on line 9
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-aliexpress/inc/classes/AE0/Version_22_07/libs/jsonq/examples/count.php on line 9
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: orders, woocommerce, aliexpress
woo-aliexpress/woo-aliexpress.php 85% from 13 tests
The main file in "AliExpress for WooCommerce" v. 1.7.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.1" instead of "3.0")
- 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 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected28,340 lines of code in 568 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 539 | 6,815 | 11,850 | 23,659 |
PO File | 2 | 706 | 945 | 1,716 |
JavaScript | 11 | 162 | 92 | 1,613 |
Markdown | 2 | 264 | 0 | 671 |
CSS | 10 | 42 | 12 | 560 |
JSON | 2 | 0 | 0 | 77 |
XML | 1 | 0 | 0 | 28 |
YAML | 1 | 5 | 0 | 16 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 245.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 522 | |
▷ Abstract classes | 9 | 1.72% |
▷ Concrete classes | 513 | 98.28% |
▷ Final classes | 0 | 0.00% |
Methods | 2,080 | |
▷ Static methods | 137 | 6.59% |
▷ Public methods | 1,982 | 95.29% |
▷ Protected methods | 42 | 2.02% |
▷ Private methods | 56 | 2.69% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 71 | |
▷ Global constants | 16 | 22.54% |
▷ Class constants | 55 | 77.46% |
▷ Public constants | 55 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 1.36MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wordpress-org/icon-256x256.png | 13.40KB | 5.72KB | ▼ 57.29% |
wordpress-org/icon-128x128.png | 4.81KB | 2.58KB | ▼ 46.46% |
40px.png | 2.17KB | 1.84KB | ▼ 15.24% |
wordpress-org/banner-1544x500.png | 258.55KB | 104.27KB | ▼ 59.67% |
assets/aliexpress-woocommerce-1880x609.png | 318.33KB | 120.97KB | ▼ 62.00% |