Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.79ms] Passed 4 tests
Analyzing server-side resources used by Product Size Charts Plugin for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 32.96 ▼3.00 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.33 ▼15.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.82 ▼0.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.98 ▼0.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.23 ▲0.19 |
Server storage [IO: ▲9.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 273 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
fs_debug_mode |
fs_active_plugins |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Size Charts Plugin for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▼0.03 | 1.63 ▲0.05 | 42.73 ▲2.12 |
Dashboard /wp-admin | 2,195 ▲21 | 5.48 ▼0.04 | 83.62 ▼3.75 | 40.08 ▼2.22 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.04 | 38.49 ▲3.70 | 37.50 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.31 ▼0.43 | 646.65 ▼45.93 | 52.45 ▼4.22 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.03 | 94.70 ▼14.59 | 42.46 ▼6.35 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_active_plugins
- fs_accounts
- widget_recent-posts
- db_upgraded
- fs_debug_mode
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #10, #11, #12, #2, #4, #6, #8 in woo-advanced-product-size-chart/assets to your readme.txt
- Donate link: Invalid URI ("")
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
woo-advanced-product-size-chart/size-chart-for-woocommerce.php 77% from 13 tests
The entry point to "Product Size Charts Plugin for WooCommerce" version 2.4.3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-advanced-product-size-chart.php" instead of "size-chart-for-woocommerce.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "4.5")
- 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 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin45,078 lines of code in 186 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 141 | 8,577 | 19,466 | 38,211 |
PO File | 4 | 1,444 | 1,835 | 3,677 |
JavaScript | 8 | 222 | 219 | 1,338 |
SVG | 11 | 7 | 0 | 1,035 |
CSS | 22 | 51 | 72 | 817 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 92.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,343 | |
▷ Static methods | 200 | 14.89% |
▷ Public methods | 950 | 70.74% |
▷ Protected methods | 17 | 1.27% |
▷ Private methods | 376 | 28.00% |
Functions | 148 | |
▷ Named functions | 146 | 98.65% |
▷ Anonymous functions | 2 | 1.35% |
Constants | 152 | |
▷ Global constants | 105 | 69.08% |
▷ Class constants | 47 | 30.92% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 3.71MB with 2.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/pro-features-img/feature-box-three-img.png | 188.42KB | 60.89KB | ▼ 67.69% |
admin/images/pro-features-img/feature-box-one-img.png | 267.76KB | 84.43KB | ▼ 68.47% |
admin/images/pro-features-img/feature-box-two-img.png | 114.92KB | 35.06KB | ▼ 69.50% |
admin/images/thedotstore-images/screenshots/Getting_Started_01.png | 154.61KB | 45.90KB | ▼ 70.31% |
admin/images/thedotstore-images/screenshots/Getting_Started_02.png | 343.09KB | 133.84KB | ▼ 60.99% |