Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.68ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce - Switcher of variants
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 25.15 ▼21.50 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.14 ▼2.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.99 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.32 ▼19.71 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 41.24 ▲3.67 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 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
A check of browser resources used by WooCommerce - Switcher of variants
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,456 ▼305 | 14.33 ▼0.05 | 0.54 ▼1.39 | 18.69 ▼26.30 |
Dashboard /wp-admin | 2,200 ▲19 | 5.60 ▼0.12 | 87.62 ▼15.06 | 38.50 ▼9.23 |
Posts /wp-admin/edit.php | 2,099 ▼1 | 2.03 ▲0.01 | 35.04 ▼7.38 | 34.70 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.60 ▲0.48 | 686.50 ▼32.03 | 66.21 ▲5.09 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.22 ▲0.04 | 112.22 ▲9.41 | 48.53 ▲4.58 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-switcher-of-variants/woo_change_variants.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== woo-switcher-of-variants ===
)
woo-switcher-of-variants/woo_change_variants.php 92% from 13 tests
The primary PHP file in "WooCommerce - Switcher of variants" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-switcher-of-variants.php" instead of "woo_change_variants.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin82 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 9 | 80 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 12.67KB | 5.97KB | ▼ 52.85% |
assets/thumbnail.png | 7.04KB | 3.60KB | ▼ 48.90% |
assets/icon-256x256.png | 32.54KB | 14.18KB | ▼ 56.42% |
assets/banner-772x250.png | 73.55KB | 33.58KB | ▼ 54.35% |
assets/banner-1544x500.png | 174.21KB | 86.38KB | ▼ 50.41% |