Benchmarks
Plugin footprint 83% 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.24MB] [CPU: ▼139.74ms] Passed 4 tests
Server-side resources used by Custom Related Products and Quickview for WC
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 33.79 ▲11.19 |
Dashboard /wp-admin | 3.35 ▲0.29 | 54.74 ▲7.42 |
Posts /wp-admin/edit.php | 3.40 ▲0.29 | 46.71 ▲1.21 |
Add New Post /wp-admin/post-new.php | 5.65 ▲0.22 | 85.84 ▼572.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.23 | 37.84 ▲4.95 |
Custom Related Products Setting /wp-admin/admin.php?page=evince-quick-view-settings | 3.20 | 38.87 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ecrp_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Related Products and Quickview for WC
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,426 ▼170 | 16.50 ▲1.00 | 11.90 ▲3.03 | 11.09 ▼32.70 |
Dashboard /wp-admin | 2,999 ▲68 | 6.65 ▲0.71 | 146.86 ▲5.75 | 113.41 ▼3.34 |
Posts /wp-admin/edit.php | 2,774 ▲38 | 2.76 ▲0.06 | 72.22 ▲8.43 | 105.40 ▲9.74 |
Add New Post /wp-admin/post-new.php | 1,521 ▲23 | 18.85 ▼0.02 | 393.25 ▲17.23 | 107.07 ▼15.04 |
Media Library /wp-admin/upload.php | 1,839 ▲32 | 5.19 ▲0.17 | 131.41 ▼49.86 | 120.11 ▲1.12 |
Custom Related Products Setting /wp-admin/admin.php?page=evince-quick-view-settings | 2,280 | 3.45 | 102.09 | 140.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- ecrp_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=evince-quick-view-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=evince-quick-view-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=evince-quick-view-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=evince-quick-view-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
custom-related-products-wc/evdpl-custom-related-products.php 85% from 13 tests
The main PHP script in "Custom Related Products and Quickview for WC" version 2.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 264 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-related-products-wc.php" instead of "evdpl-custom-related-products.php")
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 plugin1,761 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 238 | 344 | 994 |
JavaScript | 6 | 77 | 157 | 424 |
CSS | 6 | 12 | 9 | 343 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 6 | 10.91% |
▷ Public methods | 51 | 92.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.27% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/arrow-point.png | 4.58KB | 2.18KB | ▼ 52.33% |