Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.88ms] Passed 4 tests
This is a short check of server-side resources used by Blocks Product Editor for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.46 ▲0.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.14 ▼0.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.22 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.09 ▼26.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.08 ▼0.74 |
Server storage [IO: ▲4.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 361 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Blocks Product Editor 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,789 ▲3 | 14.27 ▼0.09 | 2.02 ▲0.12 | 43.30 ▲4.58 |
Dashboard /wp-admin | 2,198 ▲24 | 5.63 ▲0.01 | 85.75 ▼2.11 | 38.98 ▼3.07 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.01 | 34.64 ▼0.01 | 35.10 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.40 ▲0.37 | 687.19 ▲8.48 | 58.65 ▼0.05 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▲0.09 | 101.38 ▼13.54 | 45.80 ▼0.49 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: editor, gutenberg, woocommerce, e-commerce
blocks-product-editor-for-woocommerce/blocks-product-editor-for-woocommerce.php 92% from 13 tests
The main PHP script in "Blocks Product Editor for WooCommerce" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.5.0")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin40,600 lines of code in 228 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 8,237 | 17,401 | 33,889 |
PO File | 82 | 1,809 | 1,974 | 6,043 |
SVG | 1 | 2 | 1 | 443 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 1 | 0 | 0 | 18 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 87.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,296 | |
▷ Static methods | 212 | 16.36% |
▷ Public methods | 905 | 69.83% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 374 | 28.86% |
Functions | 112 | |
▷ Named functions | 111 | 99.11% |
▷ Anonymous functions | 1 | 0.89% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.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
8 PNG files occupy 0.32MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/icon-128x128.png | 18.41KB | 11.21KB | ▼ 39.09% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/screenshot-2.png | 24.29KB | 8.15KB | ▼ 66.44% |
assets/icon-256x256.png | 54.68KB | 26.31KB | ▼ 51.88% |