Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.93ms] Passed 4 tests
This is a short check of server-side resources used by Product Features For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.48 ▲1.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.94 ▼6.38 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.30 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.27 ▼4.06 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.19 ▼2.58 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Features For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.10 | 1.62 ▼0.19 | 39.27 ▼2.71 |
Dashboard /wp-admin | 2,195 ▲18 | 5.58 ▼0.07 | 90.70 ▼10.18 | 40.72 ▼3.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.07 | 39.59 ▼2.13 | 35.06 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 23.07 ▼0.15 | 653.15 ▼34.48 | 50.18 ▼19.15 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▲0.08 | 103.58 ▼10.48 | 45.76 ▼0.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/product-features-for-woocommerce/uninstall.php+31
Invalid argument supplied for foreach()
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: Version format is invalid
product-features-for-woocommerce/product-features-woocommerce.php 85% from 13 tests
The main PHP script in "Product Features For WooCommerce" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("product-features-for-woocommerce.php" instead of "product-features-woocommerce.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected499 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 90 | 235 | 367 |
CSS | 4 | 34 | 22 | 131 |
JavaScript | 1 | 1 | 2 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.48MB with 0.33MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 160.72KB | 46.73KB | ▼ 70.93% |
assets/screenshot-3.png | 100.65KB | 32.37KB | ▼ 67.84% |
assets/screenshot-1.png | 114.24KB | 35.19KB | ▼ 69.20% |
assets/screenshot-2.png | 114.96KB | 36.21KB | ▼ 68.50% |