Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/aliprice/core/class.AliExpress.Request2.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; AliExpressJSONAPI2 has a deprecated constructor
Server metrics [RAM: ▼1.64MB] [CPU: ▼191.46ms] Passed 4 tests
This is a short check of server-side resources used by AliPrice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.99 ▼0.73 | 5.75 ▼15.90 |
Dashboard /wp-admin | 2.01 ▼1.05 | 6.31 ▼39.49 |
Posts /wp-admin/edit.php | 2.01 ▼1.10 | 6.05 ▼43.13 |
Add New Post /wp-admin/post-new.php | 2.01 ▼3.42 | 6.81 ▼647.60 |
Media Library /wp-admin/upload.php | 2.01 ▼1.00 | 6.09 ▼35.60 |
Categories /wp-admin/edit-tags.php?taxonomy=shopcategory&post_type=products | 2.01 | 6.25 |
All Items /wp-admin/edit.php?post_type=products | 2.01 | 7.53 |
Add new /wp-admin/post-new.php?post_type=products | 2.01 | 7.41 |
Server storage [IO: ▲9.56MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 1,000 new files
Database: 2 new tables, 4 new options
New tables |
---|
wp_aliprice_product_review |
wp_aliprice_products |
New WordPress options |
---|
current_theme |
AL1 |
theme_mods_AL1 |
theme_switched |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AliPrice
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,472 ▼124 | 15.91 ▲0.34 | 7.95 ▼1.80 | 3.84 ▼44.44 |
Dashboard /wp-admin | 2,981 ▲47 | 5.93 ▼0.06 | 161.29 ▲7.74 | 121.88 ▲9.75 |
Posts /wp-admin/edit.php | 2,897 ▲158 | 2.72 ▲0.00 | 79.73 ▲8.83 | 163.47 ▲72.87 |
Add New Post /wp-admin/post-new.php | 1,761 ▲78 | 19.47 ▲1.08 | 326.69 ▼110.61 | 91.70 ▼31.58 |
Media Library /wp-admin/upload.php | 1,910 ▲103 | 5.06 ▲0.04 | 149.69 ▼21.89 | 137.67 ▲10.27 |
Categories /wp-admin/edit-tags.php?taxonomy=shopcategory&post_type=products | 2,009 | 2.71 | 78.69 | 124.77 |
All Items /wp-admin/edit.php?post_type=products | 1,644 | 2.88 | 70.37 | 72.52 |
Add new /wp-admin/post-new.php?post_type=products | 3,886 | 9.29 | 274.44 | 178.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/aliprice/core/class.AliExpress.Request2.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; AliExpressJSONAPI2 has a deprecated constructor
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_aliprice_product_review
- wp_aliprice_products
- Zombie WordPress options detected upon uninstall: 4 options
- AL1
- theme_switched
- current_theme
- theme_mods_AL1
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=products
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/aliprice/core/class.AliExpress.Request2.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; AliExpressJSONAPI2 has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=products
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/aliprice/core/class.AliExpress.insertAPI.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; AliExpressInsert has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=products
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/aliprice/core/class.Products.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; AEProducts has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=products
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/post-new.php?post_type=products
- > Warning in wp-content/plugins/aliprice/core/init.php+378
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/post-new.php?post_type=products
- > Warning in wp-content/plugins/aliprice/core/init.php+384
Invalid argument supplied for foreach()
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/aliprice/templates/AL1/templates/gallery.php
- 300× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: attachments in wp-content/plugins/aliprice/templates/AL1/templates/gallery.php on line 1
- > PHP Notice
Undefined variable: instance in wp-content/plugins/aliprice/templates/AL2/widgets/aliproducts/products.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'AEProducts' not found in wp-content/plugins/aliprice/templates/AL1/templates/products-special.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aliprice/core/shortcodes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aliprice/templates/AL2/customize/images.php:91
- > PHP Notice
Undefined variable: instance in wp-content/plugins/aliprice/templates/AL2/products.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aliprice/templates/AL1/templates/dynamic-css.php:9
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/aliprice/libs/Requests/Requests/Exception/HTTP/502.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/aliprice/templates/AL1/home.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/aliprice/templates/AL3/header.php:2
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 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
3 plugin tags: aliprice, aliexpress, product
aliprice/aliprice.php Passed 13 tests
The main PHP script in "AliPrice" version 1.0 is automatically included on every request by WordPress
71 characters long description:
AliPrice is a WordPress plugin created for AliExpress Affiliate Program
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected83,851 lines of code in 352 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 23 | 6,598 | 106 | 29,595 |
PO File | 31 | 12,125 | 17,926 | 24,615 |
PHP | 224 | 4,443 | 4,633 | 20,353 |
JavaScript | 66 | 826 | 239 | 8,502 |
SVG | 3 | 0 | 0 | 603 |
Markdown | 1 | 37 | 0 | 118 |
HTML | 4 | 27 | 0 | 65 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 18.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 77 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 540 | |
▷ Static methods | 48 | 8.89% |
▷ Public methods | 444 | 82.22% |
▷ Protected methods | 48 | 8.89% |
▷ Private methods | 48 | 8.89% |
Functions | 267 | |
▷ Named functions | 267 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 15 | 45.45% |
▷ Class constants | 18 | 54.55% |
▷ Public constants | 18 | 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
44 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
img/logoali.png | 5.07KB | 2.46KB | ▼ 51.38% |
img/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
templates/AL3/public/images/logo.png | 1.66KB | 1.74KB | 0.00% |
templates/AL1/public/images/logof.png | 0.93KB | 0.94KB | 0.00% |