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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.60ms] Passed 4 tests
A check of server-side resources used by Helpfulcrowd Product Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.69 ▼10.01 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.81 ▼16.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.52 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.26 ▼16.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.70 ▼0.66 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
helpfulcrowd_adminConsent |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Helpfulcrowd Product Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.69 ▼0.03 | 1.77 ▲0.13 | 39.55 ▼2.05 |
Dashboard /wp-admin | 2,192 ▲17 | 5.72 ▲0.03 | 95.29 ▼23.63 | 42.38 ▼0.58 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 39.23 ▼0.85 | 35.99 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.02 ▼0.35 | 611.95 ▼55.50 | 59.41 ▼4.09 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.00 | 96.77 ▲0.02 | 43.22 ▲0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: photo reviews, reviews, questions and answers, ugc, woocommerce...
helpfulcrowd-product-reviews/helpfulcrowd.php 85% from 13 tests
"Helpfulcrowd Product Reviews" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("helpfulcrowd-product-reviews.php" instead of "helpfulcrowd.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,990 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 350 | 317 | 1,630 |
CSS | 1 | 59 | 14 | 309 |
JavaScript | 2 | 3 | 0 | 26 |
SVG | 2 | 0 | 2 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 18.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 5 | 6.41% |
▷ Public methods | 48 | 61.54% |
▷ Protected methods | 19 | 24.36% |
▷ Private methods | 11 | 14.10% |
Functions | 14 | |
▷ Named functions | 9 | 64.29% |
▷ Anonymous functions | 5 | 35.71% |
Constants | 12 | |
▷ Global constants | 2 | 16.67% |
▷ Class constants | 10 | 83.33% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/rate.png | 7.35KB | 4.40KB | ▼ 40.14% |
assets/img/tabs.png | 9.71KB | 4.93KB | ▼ 49.20% |
assets/img/support.png | 17.29KB | 6.78KB | ▼ 60.77% |
assets/img/summary.png | 4.98KB | 2.45KB | ▼ 50.79% |
assets/img/logo_small.png | 2.52KB | 2.11KB | ▼ 16.25% |