Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/custom-reviews-and-ratings-for-woocommerce/custom-ratings-reviews-woocommerce.php+31
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.96ms] Passed 4 tests
A check of server-side resources used by Custom Reviews Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.03 | 41.88 ▼0.99 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.98 ▼10.34 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 50.47 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 90.45 ▼16.66 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 37.33 ▲0.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mw_custom_ratings_reviews_woocommerce_options |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Custom Reviews Woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▲0.12 | 1.61 ▼0.27 | 40.03 ▲1.12 |
Dashboard /wp-admin | 2,195 ▲15 | 5.69 ▲0.06 | 82.89 ▼15.52 | 38.52 ▼3.43 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.97 ▼0.05 | 33.90 ▼2.01 | 30.79 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,534 ▲130 | 18.38 ▲0.07 | 620.38 ▼1.87 | 80.92 ▲30.72 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.17 ▲0.02 | 98.88 ▲1.38 | 40.77 ▼1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- mw_custom_ratings_reviews_woocommerce_options
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-reviews-and-ratings-for-woocommerce/custom-ratings-reviews-woocommerce.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: custom reviews, ratings, custom rating, woocommerce, reviews
custom-reviews-and-ratings-for-woocommerce/custom-ratings-reviews-woocommerce.php 92% from 13 tests
The primary PHP file in "Custom Reviews Woocommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-reviews-and-ratings-for-woocommerce.php" instead of "custom-ratings-reviews-woocommerce.php")
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
There were no executable files found in this plugin222 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 0 | 39 | 222 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin