Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/woo-custom-related-products-slider-lite-by-au/woo-custom-related-products-slider-lite.php+31
require_once(wp-content/plugins/woo-custom-related-products-slider-lite-by-au\inc\activate.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.47ms] Passed 4 tests
Server-side resources used by Woo Custom Related Products Slider [Lite] by AU
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.10 ▲1.52 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.23 ▼1.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.35 ▼1.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.44 ▲1.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.35 ▲0.49 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Custom Related Products Slider [Lite] by AU
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.38 ▼0.91 | 1.77 ▲0.05 | 40.76 ▼1.40 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.97 | 109.82 ▲4.72 | 43.12 ▲3.46 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.00 | 39.97 ▼1.72 | 35.02 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.67 ▼5.73 | 605.01 ▲11.42 | 50.03 ▼6.04 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.22 ▲0.00 | 97.00 ▲0.44 | 41.08 ▼1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-custom-related-products-slider-lite-by-au/inc/activate.php
- > /wp-content/plugins/woo-custom-related-products-slider-lite-by-au/woo-custom-related-products-slider-lite.php
- > /wp-content/plugins/woo-custom-related-products-slider-lite-by-au/inc/enqueue.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/woo-custom-related-products-slider-lite-by-au/inc/admin-menu.php on line 549
- > PHP Parse error
syntax error, unexpected 'endif' (T_ENDIF) in wp-content/plugins/woo-custom-related-products-slider-lite-by-au/inc/related-products.php on line 341
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
5 plugin tags: related products slider, woocommerce slider, related products, custom related products, woocommerce
woo-custom-related-products-slider-lite-by-au/woo-custom-related-products-slider-lite.php 77% from 13 tests
Analyzing the main PHP file in "Woo Custom Related Products Slider [Lite] by AU" version 1.0
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-custom-related-products-slider-lite-by-au.php" instead of "woo-custom-related-products-slider-lite.php")
- 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
- Description: The description should be shorter than 140 characters (currently 238 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,926 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 346 | 60 | 1,093 |
CSS | 3 | 111 | 46 | 595 |
PO File | 1 | 59 | 67 | 151 |
JavaScript | 3 | 22 | 1 | 87 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/grabbing.png | 0.11KB | 0.14KB | 0.00% |