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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.83ms] Passed 4 tests
An overview of server-side resources used by Stamped.io Product Reviews & UGC for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.18 ▼3.22 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.73 ▲0.49 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.24 ▼7.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.09 ▼17.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.72 ▼3.14 |
Server storage [IO: ▲2.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Stamped.io Product Reviews & UGC for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.74 ▲0.47 | 1.93 ▲0.30 | 44.12 ▲1.28 |
Dashboard /wp-admin | 2,200 ▲26 | 5.63 ▲0.04 | 96.71 ▲8.66 | 47.11 ▲4.98 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.95 ▲0.01 | 35.54 ▼1.75 | 33.81 ▼5.49 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.72 ▲0.45 | 672.80 ▲4.87 | 47.07 ▼8.98 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.18 ▼0.01 | 98.29 ▼14.85 | 43.85 ▼5.83 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/stampedio-product-reviews/admin/cls_stamped_io_settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stampedio-product-reviews/stampedio-product-reviews.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
These attributes need your attention:
- License uri: Invalid URI ("http: //www.gnu.org/licenses/gpl-2.0.html")
- Screenshots: These screenshots lack descriptions #5, #6 in stampedio-product-reviews/assets to your readme.txt
stampedio-product-reviews/stampedio-product-reviews.php 92% from 13 tests
"Stamped.io Product Reviews & UGC for WooCommerce" version 2.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin2,055 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 200 | 170 | 1,759 |
JavaScript | 2 | 27 | 3 | 296 |
CSS | 1 | 0 | 9 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 32 | 44.44% |
▷ Public methods | 65 | 90.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.72% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 2.62MB with 1.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-06.png | 816.09KB | 229.39KB | ▼ 71.89% |
assets/screenshot-05.png | 288.65KB | 115.62KB | ▼ 59.95% |
assets/icon-256x256.png | 12.40KB | 5.51KB | ▼ 55.52% |
assets/banner-772x250.png | 456.61KB | 42.82KB | ▼ 90.62% |
assets/icon-128x128.png | 6.95KB | 3.87KB | ▼ 44.34% |