Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/rts-product-showcase/rts-product-showcase.php+21
require_once(wp-content/plugins/rts-product-showcase/freemius/start.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.63ms] Passed 4 tests
Server-side resources used by RTS Product Showcase - WooCommerce Elementor Addon (Grid, SLider, List, Filter, Wishlist, Quickview)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.43 ▲5.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.87 ▼4.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.34 ▲1.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.68 ▼2.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.61 ▼0.51 |
Server storage [IO: ▲6.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 217 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RTS Product Showcase - WooCommerce Elementor Addon (Grid, SLider, List, Filter, Wishlist, Quickview)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.16 ▼1.21 | 2.10 ▲0.13 | 41.42 ▼1.45 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▼0.01 | 106.31 ▼10.43 | 39.73 ▼3.50 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.02 | 40.57 ▲4.59 | 38.28 ▲4.53 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.21 ▲0.68 | 623.75 ▼28.80 | 52.87 ▲4.18 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.17 ▼0.04 | 95.25 ▼8.01 | 41.71 ▼1.90 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/rts-product-showcase/widgets/product-slider/style1.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rts-product-showcase/widgets/product-grid/style5.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rts-product-showcase/widgets/product-grid/style3.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/rts-product-showcase/widgets/product-slider/style4.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rts-product-showcase/widgets/product-grid/style4.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/rts-product-showcase/widgets/product-grid/style1.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/rts-product-showcase/widgets/product-slider/style3.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/rts-product-showcase/widgets/product-grid/style2.php:2
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/rts-product-showcase/freemius/start.php' (include_path='.:/usr/share/php') in wp-content/plugins/rts-product-showcase/rts-product-showcase.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/rts-product-showcase/widgets/product-slider/style2.php:2
- > 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 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #5, #0 in rts-product-showcase/assets to your readme.txt
rts-product-showcase/rts-product-showcase.php 92% from 13 tests
The primary PHP file in "RTS Product Showcase - WooCommerce Elementor Addon (Grid, SLider, List, Filter, Wishlist, Quickview)" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin52,241 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 7,613 | 16,366 | 33,293 |
SVG | 4 | 57 | 12 | 8,951 |
LESS | 4 | 389 | 32 | 4,858 |
CSS | 17 | 16 | 50 | 3,911 |
JSON | 2 | 0 | 0 | 751 |
JavaScript | 6 | 51 | 97 | 263 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 84.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 1 | 2.13% |
Methods | 1,160 | |
▷ Static methods | 174 | 15.00% |
▷ Public methods | 816 | 70.34% |
▷ Protected methods | 19 | 1.64% |
▷ Private methods | 325 | 28.02% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 129 | |
▷ Global constants | 101 | 78.29% |
▷ Class constants | 28 | 21.71% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/css/time-line1.png | 8.21KB | 1.73KB | ▼ 78.92% |
inc/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |