Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.47ms] Passed 4 tests
This is a short check of server-side resources used by Extra product options For WooCommerce | Custom Product Addons and Fields
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.26 ▼1.60 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.44 ▼4.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.99 ▼4.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.92 ▼15.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.01 ▲1.18 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Extra product options For WooCommerce | Custom Product Addons and Fields
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.27 ▼0.08 | 1.64 ▼0.28 | 36.40 ▼8.34 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.08 | 89.31 ▼11.80 | 37.63 ▼5.17 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▼0.05 | 35.40 ▼3.03 | 31.11 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.48 ▲0.36 | 674.29 ▼19.21 | 58.61 ▲5.24 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▼0.02 | 96.98 ▼10.16 | 43.24 ▼0.39 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (24 tag instead of maximum 10)
woo-extra-product-options/woo-extra-product-options.php 85% from 13 tests
The main file in "Extra product options For WooCommerce | Custom Product Addons and Fields" v. 3.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "3.0.0")
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 72 characters long)
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 plugin12,009 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,199 | 817 | 6,165 |
CSS | 5 | 312 | 316 | 3,105 |
JavaScript | 10 | 563 | 341 | 2,512 |
SVG | 17 | 2 | 0 | 227 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 27.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 2 | 5.13% |
▷ Concrete classes | 37 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 370 | |
▷ Static methods | 111 | 30.00% |
▷ Public methods | 268 | 72.43% |
▷ Protected methods | 1 | 0.27% |
▷ Private methods | 101 | 27.30% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 5 | 21.74% |
▷ Class constants | 18 | 78.26% |
▷ Public constants | 18 | 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
23 PNG files occupy 0.33MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/css/jquery-ui/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
admin/assets/css/fields.png | 82.76KB | 86.13KB | 0.00% |
admin/assets/css/upgrade-btn.png | 7.61KB | 2.20KB | ▼ 71.09% |
admin/assets/css/popup-flyers.png | 3.62KB | 2.27KB | ▼ 37.36% |
public/assets/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |