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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.93ms] Passed 4 tests
Analyzing server-side resources used by YaySwatches - Variation Swatches for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 50.47 ▲5.44 |
Dashboard /wp-admin | 3.45 ▲0.10 | 45.26 ▼17.04 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 52.53 ▲5.49 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 84.55 ▼10.66 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.71 ▼1.47 |
Help /wp-admin/admin.php?page=yaycommerce-help | 3.17 | 25.52 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 3.34 | 32.67 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for YaySwatches - Variation Swatches for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 14.35 ▲0.07 | 1.97 ▼0.66 | 37.86 ▼5.61 |
Dashboard /wp-admin | 2,250 ▲73 | 5.66 ▲0.03 | 91.31 ▼5.54 | 42.10 ▲1.34 |
Posts /wp-admin/edit.php | 2,161 ▲61 | 2.02 ▲0.01 | 49.62 ▲13.47 | 39.80 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.42 ▲0.52 | 604.30 ▼86.13 | 52.54 ▲3.80 |
Media Library /wp-admin/upload.php | 1,455 ▲61 | 4.22 ▲0.02 | 100.57 ▼4.60 | 44.38 ▲2.25 |
Help /wp-admin/admin.php?page=yaycommerce-help | 28 | 0.42 | 0.06 | 3.88 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 1,124 | 2.36 | 31.73 | 29.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'Yay_Swatches\\Utils\\SingletonTrait' not found in wp-content/plugins/yayswatches/includes/Engine/Hooks.php on line 7
- > PHP Notice
Undefined variable: recommendedPlugins in wp-content/plugins/yayswatches/includes/YayCommerceMenu/views/other-plugins-content.php on line 22
- > PHP Fatal error
Trait 'Yay_Swatches\\Utils\\SingletonTrait' not found in wp-content/plugins/yayswatches/includes/Engine/ActDeact.php on line 9
- > PHP Fatal error
Trait 'Yay_Swatches\\Utils\\SingletonTrait' not found in wp-content/plugins/yayswatches/includes/Initialize.php on line 9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=yaycommerce-help
- > Network (severe)
wp-admin/admin.php?page=yaycommerce-help - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: image swatches, color swatches, woocommerce variation swatches, woocommerce color swatches, woocommerce swatches...
yayswatches/yay-swatches.php 69% from 13 tests
The entry point to "YaySwatches - Variation Swatches for WooCommerce" version 1.7.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "4.7")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yayswatches.php" instead of "yay-swatches.php")
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.3" instead of "5.4")
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
There were no executable files found in this plugin6,488 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 49 | 19 | 3,334 |
PHP | 23 | 274 | 136 | 2,460 |
CSS | 4 | 65 | 11 | 687 |
SVG | 5 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 36 | 41.38% |
▷ Public methods | 76 | 87.36% |
▷ Protected methods | 11 | 12.64% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.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