Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.76ms] Passed 4 tests
A check of server-side resources used by Builder for WooCommerce product reviews shortcodes - ReviewShort
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.60 ▼2.88 |
Dashboard /wp-admin | 3.34 ▼0.00 | 58.17 ▼4.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.83 ▼4.59 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.95 ▼14.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.75 ▲3.39 |
Server storage [IO: ▲3.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 222 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Builder for WooCommerce product reviews shortcodes - ReviewShort
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 14.73 ▲0.15 | 1.86 ▼0.44 | 43.49 ▲0.20 |
Dashboard /wp-admin | 2,228 ▲22 | 5.08 ▲0.01 | 112.48 ▼0.14 | 42.22 ▲0.55 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.05 ▲0.02 | 36.11 ▼5.93 | 33.69 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,552 ▲7 | 23.13 ▲0.02 | 682.16 ▼13.08 | 66.17 ▲1.74 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.06 | 98.86 ▼7.08 | 43.95 ▼4.21 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-product-reviews-shortcode/admin/templates/intro_EN.php
- > /wp-content/plugins/woo-product-reviews-shortcode/templates/product-reviews-title.php
- > /wp-content/plugins/woo-product-reviews-shortcode/admin/templates/intro_DE.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wprshrtcd_is_premium() in wp-content/plugins/woo-product-reviews-shortcode/admin/templates/builder-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-product-reviews-shortcode/templates/product-reviews-meta.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function wprshrtcd_is_premium() in wp-content/plugins/woo-product-reviews-shortcode/admin/templates/more-plugins.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_locale() in wp-content/plugins/woo-product-reviews-shortcode/admin/templates/intro.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-reviews-shortcode/admin/functions.php:2
- > PHP Notice
Undefined variable: show_schema in wp-content/plugins/woo-product-reviews-shortcode/templates/product-reviews-meta.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-product-reviews-shortcode/admin/templates/templating.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-reviews-shortcode/includes/woo-hooks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-reviews-shortcode/includes/cpt.php:56
- > PHP Notice
Undefined variable: product_title in wp-content/plugins/woo-product-reviews-shortcode/templates/product-reviews-title.php on line 9
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: review plugin, google rating, woocommerce reviews, customer reviews, woocommerce product reviews
woo-product-reviews-shortcode/woo-product-reviews-shortcode.php 92% from 13 tests
The entry point to "Builder for WooCommerce product reviews shortcodes - ReviewShort" version 1.01.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected40,953 lines of code in 170 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 8,504 | 17,485 | 35,479 |
PO File | 5 | 865 | 982 | 3,005 |
CSS | 16 | 318 | 9 | 1,742 |
JavaScript | 5 | 95 | 59 | 497 |
Markdown | 1 | 68 | 0 | 214 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 93.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 198 | 15.73% |
▷ Public methods | 869 | 69.02% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 373 | 29.63% |
Functions | 154 | |
▷ Named functions | 153 | 99.35% |
▷ Anonymous functions | 1 | 0.65% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 46.41KB | 11.28KB | ▼ 75.70% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |