Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼139.93ms] Passed 4 tests
A check of server-side resources used by WooCommerce Rich Reviews Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 45.18 ▲18.26 |
Dashboard /wp-admin | 3.30 ▲0.25 | 45.09 ▼12.35 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 59.49 ▲7.34 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 105.99 ▼551.02 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 44.04 ▼3.69 |
Rich Reviews /wp-admin/admin.php?page=wc-rich-reviews-settings | 3.16 | 37.71 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wc_rich_editor |
wc_segmented_ratings |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Rich Reviews Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,052 ▲456 | 18.50 ▲2.96 | 12.57 ▼0.83 | 54.79 ▲3.52 |
Dashboard /wp-admin | 3,229 ▲298 | 8.15 ▲2.24 | 189.13 ▲13.68 | 112.21 ▼1.02 |
Posts /wp-admin/edit.php | 3,010 ▲271 | 4.38 ▲1.65 | 99.18 ▲24.24 | 97.06 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,628 ▼55 | 18.92 ▲0.08 | 401.41 ▼34.73 | 118.33 ▼0.32 |
Media Library /wp-admin/upload.php | 1,854 ▲47 | 4.84 ▼0.17 | 142.31 ▼35.41 | 118.98 ▼14.78 |
Rich Reviews /wp-admin/admin.php?page=wc-rich-reviews-settings | 1,570 | 4.16 | 95.40 | 88.02 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 2 options in the database
- wc_rich_editor
- wc_segmented_ratings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-rich-reviews-lite/admin/class.mdc-settings-api.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: woocommerce, multi rating, rating, rich review, woocommerce rating...
wc-rich-reviews-lite/wc-rich-reviews-lite.php Passed 13 tests
The main PHP script in "WooCommerce Rich Reviews Lite" version 1.0.0 is automatically included on every request by WordPress
80 characters long description:
Enables segmented ratings and rich text editor (WYSIWYG) in WooCommerce reviews.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected722 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 196 | 255 | 691 |
JavaScript | 1 | 1 | 1 | 16 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected