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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.09ms] Passed 4 tests
An overview of server-side resources used by Radio Buttons and Swatches for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 33.61 ▼8.40 |
Dashboard /wp-admin | 3.45 ▲0.10 | 45.56 ▼12.21 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.93 ▲1.70 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.02 ▼9.46 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.85 ▲2.76 |
Server storage [IO: ▲3.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Radio Buttons and Swatches for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.85 ▲0.20 | 1.75 ▼0.01 | 40.95 ▼0.93 |
Dashboard /wp-admin | 2,218 ▲27 | 5.79 ▲0.86 | 107.34 ▲6.49 | 41.96 ▼1.39 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.03 ▲0.03 | 34.36 ▼1.98 | 35.47 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.36 ▲0.17 | 605.91 ▼76.61 | 49.92 ▼14.41 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.24 ▲0.04 | 97.77 ▼1.75 | 42.96 ▼0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/variations-radio-buttons-for-woocommerce/templates/variations-radio-buttons-for-woocommerce/option.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/variations-radio-buttons-for-woocommerce/templates/variations-radio-buttons-for-woocommerce/selector.php:1
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: woo, woocommerce variations, radio buttons, woocommerce swatches, swatches...
variations-radio-buttons-for-woocommerce/variations-radio-buttons-for-woocommerce.php Passed 13 tests
The main PHP file in "Radio Buttons and Swatches for WooCommerce" ver. 1.1.19 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Increase conversions by displaying beautiful radio buttons and swatches.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected21,460 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 5,711 | 115 | 17,255 |
PHP | 24 | 764 | 524 | 3,925 |
JavaScript | 4 | 67 | 41 | 280 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 3 | 15.00% |
▷ Concrete classes | 17 | 85.00% |
▷ Final classes | 0 | 0.00% |
Methods | 179 | |
▷ Static methods | 1 | 0.56% |
▷ Public methods | 107 | 59.78% |
▷ Protected methods | 67 | 37.43% |
▷ Private methods | 5 | 2.79% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/1TeamSoftware-logo.png | 14.55KB | 4.50KB | ▼ 69.05% |
assets/images/1TeamSoftware-icon.png | 0.59KB | 0.75KB | 0.00% |