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.10MB] [CPU: ▼3.09ms] Passed 4 tests
A check of server-side resources used by Ezusy - Image Swatches for Variable Product
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.00 ▼0.47 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.36 ▼0.29 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.17 ▲0.17 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 88.88 ▼11.75 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.29 ▲1.86 |
Ezusy /wp-admin/options-general.php?page=ezusy-setting-admin | 3.29 | 39.28 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
ezusy_settings_reviews |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Ezusy - Image Swatches for Variable Product
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲151 | 13.66 ▼0.72 | 5.10 ▲3.35 | 47.54 ▲2.39 |
Dashboard /wp-admin | 2,211 ▲23 | 5.83 ▲0.91 | 99.97 ▼17.51 | 38.82 ▼5.21 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.03 ▼0.03 | 39.54 ▼0.94 | 32.67 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 18.51 ▼4.47 | 617.19 ▼32.17 | 50.39 ▲0.75 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.22 ▼0.05 | 99.86 ▼1.81 | 42.64 ▼0.28 |
Ezusy /wp-admin/options-general.php?page=ezusy-setting-admin | 824 | 2.02 | 26.42 | 35.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- ezusy_settings_reviews
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ezusy-image-swatches-for-variable-product/public/partials/ezusy-public-display.php
- > /wp-content/plugins/ezusy-image-swatches-for-variable-product/admin/partials/ezusy-admin-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ezusy-image-swatches-for-variable-product/includes/functions.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ezusy-image-swatches-for-variable-product/includes/settings.php:250
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in ezusy-image-swatches-for-variable-product/assets to your readme.txt
ezusy-image-swatches-for-variable-product/ezusy.php 77% from 13 tests
This is the main PHP file of "Ezusy - Image Swatches for Variable Product" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.0" instead of "4.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("ezusy-image-swatches-for-variable-product.php" instead of "ezusy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin393 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 176 | 553 | 388 |
JavaScript | 2 | 2 | 27 | 4 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 3 | 7.14% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.90% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin