Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.33ms] Passed 4 tests
Analyzing server-side resources used by Switcher for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 41.35 ▲20.80 |
Dashboard /wp-admin | 3.09 ▲0.04 | 50.65 ▲5.79 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 42.58 ▼5.61 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 93.49 ▼562.39 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 33.75 ▲0.90 |
Switcher /wp-admin/options-general.php?page=wplife-woo-s/wplife-woo-s.php | 3.01 | 31.64 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Switcher for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲113 | 15.89 ▲0.31 | 9.13 ▼2.99 | 47.11 ▲1.69 |
Dashboard /wp-admin | 2,978 ▲41 | 5.96 ▲0.02 | 142.73 ▼9.50 | 104.54 ▼8.20 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 59.12 ▼10.03 | 87.71 ▲2.23 |
Add New Post /wp-admin/post-new.php | 1,514 ▼101 | 18.83 ▼1.97 | 398.34 ▼77.41 | 101.13 ▲0.60 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.04 ▼0.03 | 157.14 ▼3.94 | 124.69 ▲13.93 |
Switcher /wp-admin/options-general.php?page=wplife-woo-s/wplife-woo-s.php | 1,096 | 2.15 | 59.10 | 70.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: setup, wplife, switcher, woocommerce, wc...
wplife-woo-s/wplife-woo-s.php 92% from 13 tests
Analyzing the main PHP file in "Switcher for WooCommerce" version 1.1.1
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected195 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 54 | 151 |
PO File | 1 | 12 | 0 | 44 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 13 | |
▷ Named functions | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin