Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.78ms] Passed 4 tests
Server-side resources used by WooCommerce Shop ratings & review widget by RatingChamp
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.57 ▼3.85 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.60 ▼2.66 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.56 ▲0.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.56 ▼5.37 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 31.86 ▲0.81 |
RatingChamp /wp-admin/options-general.php?page=ratingchamp | 3.21 | 28.94 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
recovery_mode_email_last_sent |
widget_rc_widget |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Shop ratings & review widget by RatingChamp
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.59 ▼0.78 | 1.95 ▼0.01 | 40.52 ▼20.12 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.04 | 112.10 ▲6.45 | 38.14 ▼3.98 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.04 | 41.02 ▲5.08 | 35.25 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 23.04 ▼0.01 | 637.09 ▲9.30 | 52.46 ▲0.94 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.19 ▼0.13 | 96.95 ▼5.06 | 43.63 ▼0.04 |
RatingChamp /wp-admin/options-general.php?page=ratingchamp | 708 | 1.53 | 6.73 | 18.43 |
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
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- recovery_mode_email_last_sent
- widget_rc_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ratingchamp
- > Error in wp-content/plugins/woo-widget-for-ratingchamp-reviews/ratingchamp.php+78
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/woo-widget-for-ratingchamp-reviews/ratingchamp.php:78
Stack trace:
#0 wp-admin/includes/template.php(1824): ratingchamp_select_field_0_render()
#1 wp-admin/includes/template.php(1778): do_settings_fields()
#2 wp-content/plugins/woo-widget-for-ratingchamp-reviews/ratingchamp.php(129): do_settings_sections()
#3 wp-includes/class-wp-hook.php(310): ratingchamp_options_page()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#8 {main}
thrown
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
woo-widget-for-ratingchamp-reviews/ratingchamp.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce Shop ratings & review widget by RatingChamp" version 1.0.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-widget-for-ratingchamp-reviews.php" instead of "ratingchamp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin178 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 75 | 16 | 178 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin