Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.87ms] Passed 4 tests
A check of server-side resources used by Product Size charts for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.18 ▼2.66 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.23 ▼8.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.26 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.96 ▼4.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.57 ▲1.62 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Size charts for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.23 ▼0.93 | 1.60 ▼0.31 | 39.66 ▼13.97 |
Dashboard /wp-admin | 2,206 ▲18 | 5.87 ▲0.03 | 106.48 ▲3.98 | 37.04 ▼6.04 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.05 | 40.66 ▲5.52 | 35.28 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 23.40 ▲0.52 | 620.50 ▼36.40 | 53.07 ▼2.34 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▼0.06 | 91.86 ▼12.83 | 41.16 ▼0.89 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- 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)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/product-size-charts-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/product-size-charts-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/product-size-charts-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There are too many tags (22 tag instead of maximum 10)
product-size-charts-for-woocommerce/size-chart-for-woocommerce.php 77% from 13 tests
The primary PHP file in "Product Size charts for Woocommerce" version 3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "2.6.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("product-size-charts-for-woocommerce.php" instead of "size-chart-for-woocommerce.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,268 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 841 | 1,666 | 3,150 |
JavaScript | 1 | 31 | 2 | 85 |
CSS | 1 | 4 | 4 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 48.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 78 | 77.23% |
▷ Protected methods | 23 | 22.77% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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
53 PNG files occupy 0.67MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Untitled.png | 16.21KB | 7.57KB | ▼ 53.30% |
assets/images/premium-head.png | 6.61KB | 5.20KB | ▼ 21.37% |
images/screen-3.png | 23.33KB | 8.07KB | ▼ 65.43% |
images/download (6).png | 20.93KB | 6.53KB | ▼ 68.79% |
assets/images/screen-6.png | 16.55KB | 5.46KB | ▼ 67.04% |