Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼141.70ms] Passed 4 tests
An overview of server-side resources used by Size Guarantee
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.12 | 47.42 ▲10.83 |
Dashboard /wp-admin | 3.18 ▲0.13 | 50.42 ▲0.91 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 41.13 ▼11.33 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.10 | 97.66 ▼564.98 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 38.94 ▲8.61 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 3 new options
New WordPress options |
---|
size-guarantee-connect |
size_guarantee_style |
size_guarantee_store_id |
Browser metrics Passed 4 tests
Checking browser requirements for Size Guarantee
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,879 ▲283 | 16.30 ▲0.47 | 12.47 ▲3.39 | 51.72 ▲4.01 |
Dashboard /wp-admin | 3,012 ▲81 | 6.03 ▲0.08 | 147.26 ▼2.42 | 110.76 ▼9.77 |
Posts /wp-admin/edit.php | 2,808 ▲69 | 2.70 ▲0.01 | 74.44 ▲4.47 | 99.60 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,532 ▼151 | 16.36 ▼2.37 | 289.94 ▼90.71 | 118.98 ▲5.04 |
Media Library /wp-admin/upload.php | 1,875 ▲68 | 5.03 ▲0.03 | 159.33 ▲7.99 | 111.18 ▼14.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/size-guarantee/uninstall.php+35
Constant size_guarantee_prefix already defined
- Zombie WordPress options detected upon uninstall: 3 options
- size-guarantee-connect
- size_guarantee_store_id
- size_guarantee_style
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/size-guarantee/public/partials/size-guarantee-public-display.php
- > /wp-content/plugins/size-guarantee/admin/partials/size-guarantee-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: dress suggestions, ecommerce, mesurement, check size, dress size...
size-guarantee/size-guarantee.php Passed 13 tests
The primary PHP file in "Size Guarantee" version 1.0.0 is used by WordPress to initiate all plugin functionality
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected748 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 281 | 674 | 588 |
JavaScript | 2 | 11 | 60 | 84 |
CSS | 2 | 10 | 8 | 76 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 75.67KB | 24.35KB | ▼ 67.82% |
assets/screenshot-2.png | 91.80KB | 29.45KB | ▼ 67.92% |
media/size_guarantee_logo.png | 30.69KB | 11.52KB | ▼ 62.46% |
assets/screenshot-3.png | 92.87KB | 30.06KB | ▼ 67.63% |