Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼7.88ms] Passed 4 tests
This is a short check of server-side resources used by Product Size Chart For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.81 ▲1.36 |
Dashboard /wp-admin | 3.50 ▲0.15 | 43.18 ▼15.26 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 44.68 ▼3.46 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.10 ▼13.25 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.70 ▲0.46 |
Server storage [IO: ▲2.63MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 68 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
woo_sc_template |
can_compress_scripts |
woo_sc_setting |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Product Size Chart For WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.31 ▼0.06 | 1.77 ▲0.13 | 45.09 ▲5.37 |
Dashboard /wp-admin | 2,200 ▲23 | 5.51 ▼0.12 | 81.88 ▼3.32 | 37.34 ▼4.60 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.00 ▲0.02 | 34.43 ▼7.74 | 33.51 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.07 ▲0.05 | 693.47 ▲16.12 | 62.76 ▲2.69 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.15 ▼0.09 | 92.84 ▼5.85 | 44.41 ▼2.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- woo_sc_template
- widget_theysaidso_widget
- theysaidso_admin_options
- woo_sc_setting
- widget_recent-posts
- widget_recent-comments
- 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: product size chart for woo, wordpress, product size chart, woocommerce size chart, size chart...
product-size-chart-for-woo/product-size-chart-for-woo.php 92% from 13 tests
The main PHP file in "Product Size Chart For WooCommerce" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,247 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 221 | 99 | 3,127 |
SVG | 3 | 0 | 12 | 2,880 |
JavaScript | 16 | 81 | 109 | 1,025 |
CSS | 20 | 180 | 140 | 935 |
PO File | 1 | 120 | 122 | 280 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 55.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 6.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 70 | 94.59% |
▷ Protected methods | 2 | 2.70% |
▷ Private methods | 2 | 2.70% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sc_logo.png | 3.01KB | 0.55KB | ▼ 81.79% |
img/Photos-new-icon.png | 6.47KB | 5.17KB | ▼ 20.05% |
img/icon-size.png | 17.17KB | 8.43KB | ▼ 50.92% |