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
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼0.03ms] Passed 4 tests
Server-side resources used by Review Slider for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 39.51 ▼0.56 |
Dashboard /wp-admin | 3.52 ▲0.22 | 47.38 ▼1.92 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 46.46 ▼2.72 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 90.71 ▲7.76 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 34.70 ▲5.06 |
Templates /wp-admin/admin.php?page=srfw-templates_posts | 3.68 | 33.91 |
WooCommerce Reviews /wp-admin/admin.php?page=srfw-get_woo | 3.42 | 36.45 |
Get Pro /wp-admin/admin.php?page=srfw-get_pro | 3.42 | 31.38 |
Reviews List /wp-admin/admin.php?page=srfw-reviews | 3.47 | 33.98 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 64 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_srfw_reviews |
wp_srfw_post_templates |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
srfw_activated_time_woo |
review-slider-for-woocommerce_version |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
review-slider-for-woocommerce_current_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Review Slider for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲216 | 14.03 ▼0.27 | 6.12 ▲4.21 | 38.97 ▼5.75 |
Dashboard /wp-admin | 2,241 ▲56 | 4.89 ▲0.00 | 141.42 ▲24.27 | 42.41 ▼3.04 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.06 ▲0.04 | 39.85 ▲3.95 | 35.22 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,575 ▲61 | 18.50 ▲0.98 | 602.93 ▼66.54 | 69.82 ▲0.43 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.29 ▼0.02 | 96.18 ▼9.82 | 40.91 ▼0.41 |
Templates /wp-admin/admin.php?page=srfw-templates_posts | 1,991 | 3.16 | 75.00 | 29.66 |
WooCommerce Reviews /wp-admin/admin.php?page=srfw-get_woo | 1,008 | 2.20 | 24.91 | 29.50 |
Get Pro /wp-admin/admin.php?page=srfw-get_pro | 897 | 2.01 | 24.26 | 26.61 |
Reviews List /wp-admin/admin.php?page=srfw-reviews | 928 | 1.85 | 31.98 | 28.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- review-slider-for-woocommerce_current_db_version
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
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/review-slider-for-woocommerce/public/partials/review-slider-for-woocommerce-public-display.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_query_arg() in wp-content/plugins/review-slider-for-woocommerce/admin/partials/tabmenu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/review-slider-for-woocommerce/admin/partials/get_woo.php:16
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/review-slider-for-woocommerce/public/partials/review-slider-for-woocommerce-public-display.php:22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/review-slider-for-woocommerce/public/partials/review-slider-for-woocommerce-public-display.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/review-slider-for-woocommerce/admin/partials/review_list.php:16
- > PHP Notice
Undefined variable: a in wp-content/plugins/review-slider-for-woocommerce/public/partials/review-slider-for-woocommerce-public-display.php on line 21
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/review-slider-for-woocommerce/public/partials/template_style_1.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/review-slider-for-woocommerce/public/class-review-slider-for-woocommerce-template_action.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/review-slider-for-woocommerce/admin/partials/get_pro.php:16
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=srfw-templates_posts
- > Network (severe)
wp-content/plugins/review-slider-for-woocommerce/admin/js/wpzillow-wp-color-picker-alpha.js?ver=2.1.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== review-slider-for-woocommerce ===
) - Screenshots: Screenshot #5 (Create as many templates as you like.) image not found
review-slider-for-woocommerce/review-slider-for-woocommerce.php Passed 13 tests
The main file in "Review Slider for WooCommerce" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
140 characters long description:
Easily display all your WooCommerce reviews at once in a cool summary review slider or grid on your homepage or any other page on your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,679 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 456 | 907 | 2,084 |
JavaScript | 8 | 290 | 604 | 1,132 |
CSS | 5 | 23 | 20 | 463 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 4 | 7.84% |
▷ Public methods | 44 | 86.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.73% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.41MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/template1_thumb.png | 27.86KB | 9.86KB | ▼ 64.61% |
public/partials/imgs/testimonial_quote.png | 0.30KB | 0.30KB | 0.00% |
public/partials/imgs/stars_5_yellow.png | 6.71KB | 1.90KB | ▼ 71.61% |
public/partials/imgs/stars_4.png | 6.73KB | 1.87KB | ▼ 72.14% |
public/partials/imgs/stars_4_yellow.png | 6.73KB | 1.87KB | ▼ 72.14% |