Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.26MB] [CPU: ▼155.09ms] Passed 4 tests
This is a short check of server-side resources used by WC Related Products Slider By Endroit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼1.06 | 5.73 ▼31.27 |
Dashboard /wp-admin | 3.07 ▲0.02 | 49.88 ▼5.68 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 49.25 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 94.92 ▼581.39 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 34.26 ▼2.01 |
Related Products /wp-admin/admin.php?page=endroit_related_products | 3.01 | 33.67 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options |
---|
endroit_related_products_data |
Browser metrics Passed 4 tests
Checking browser requirements for WC Related Products Slider By Endroit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,799 ▲227 | 16.37 ▲0.82 | 18.53 ▼4.81 | 46.79 ▼8.95 |
Dashboard /wp-admin | 2,973 ▲39 | 5.93 ▼0.04 | 142.39 ▼15.53 | 97.34 ▼16.32 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.72 ▼0.00 | 65.49 ▼16.25 | 94.51 ▲6.36 |
Add New Post /wp-admin/post-new.php | 1,498 ▼2,148 | 18.83 ▲0.72 | 405.30 ▼135.79 | 108.39 ▲1.66 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▲0.02 | 164.71 ▼15.00 | 119.61 ▲2.25 |
Related Products /wp-admin/admin.php?page=endroit_related_products | 1,221 | 2.74 | 66.33 | 77.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- endroit_related_products_data
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'ENDROIT_RelatedProductsFrontend' not found in wp-content/plugins/endroit-related-products-slider/frontend/templates/endroit-related-products.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/endroit-related-products-slider/admin/class.endroit-related-products-admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: related by tag, related products, product slider, related by category
endroit-related-products-slider/endroit-related-products.php 85% from 13 tests
"WC Related Products Slider By Endroit" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("endroit-related-products-slider.php" instead of "endroit-related-products.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin594 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 57 | 80 | 332 |
CSS | 4 | 15 | 1 | 219 |
JavaScript | 4 | 1 | 6 | 43 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 2 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/delete-icon.png | 1.27KB | 1.39KB | 0.00% |
assets/images/add-icon.png | 1.48KB | 1.57KB | 0.00% |