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.00MB] [CPU: ▼4.44ms] Passed 4 tests
This is a short check of server-side resources used by Product Reviews from rateit.cool for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.00 ▼5.77 |
Dashboard /wp-admin | 3.31 ▲0.00 | 40.13 ▼11.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.01 ▼1.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.16 ▲1.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.42 ▲3.29 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
wc_rateitcool_just_installed |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Reviews from rateit.cool for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.76 ▲0.18 | 1.76 ▼0.08 | 39.26 ▼5.34 |
Dashboard /wp-admin | 2,200 ▲9 | 4.85 ▼1.06 | 98.27 ▼14.21 | 40.79 ▼5.17 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 40.41 ▼6.33 | 35.65 ▼11.05 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.91 ▲1.32 | 602.01 ▼92.89 | 50.79 ▼6.46 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.16 ▼0.05 | 104.42 ▲1.94 | 44.51 ▼3.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- wc_rateitcool_just_installed
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rateitcool/wc_rateitcool.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (rateit.cool settings page within Wordpress admin.), #2 (Productlist element with reviews counts and average review value.), #3 (Reviews counts and average review value at the product detail page.), #4 (Show Detail Reviews counts and average review value at the product detail page.), #5 (Product reviews on a example tab.), #6 (Product review form on a example tab.), #7 (Product review form at order history.), #8 (Shop review form at order history.)
rateitcool/wc_rateitcool.php 92% from 13 tests
Analyzing the main PHP file in "Product Reviews from rateit.cool for Woocommerce" version 1.0.3
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rateitcool.php" instead of "wc_rateitcool.php")
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
Success! There were no dangerous files found in this plugin2,479 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 94 | 36 | 1,501 |
JavaScript | 2 | 53 | 18 | 844 |
CSS | 3 | 14 | 0 | 134 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 8 | 34.78% |
▷ Protected methods | 13 | 56.52% |
▷ Private methods | 2 | 8.70% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.82MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 499.97KB | 155.30KB | ▼ 68.94% |
screenshot-7.png | 59.04KB | 19.64KB | ▼ 66.73% |
screenshot-6.png | 53.21KB | 15.98KB | ▼ 69.97% |
assets/images/logo_small.png | 0.48KB | 0.48KB | 0.00% |
screenshot-8.png | 37.06KB | 11.95KB | ▼ 67.76% |