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.08MB] [CPU: ▼147.14ms] Passed 4 tests
An overview of server-side resources used by Ezusy - Image Swatches for Variable Product
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.09 | 29.07 ▲3.06 |
Dashboard /wp-admin | 3.15 ▲0.09 | 33.44 ▼6.65 |
Posts /wp-admin/edit.php | 3.26 ▲0.16 | 39.31 ▼1.15 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 78.54 ▼581.03 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 26.30 ▲0.27 |
Ezusy /wp-admin/options-general.php?page=ezusy-setting-admin | 3.06 | 20.64 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ezusy_settings_reviews |
Browser metrics Passed 4 tests
An overview of browser requirements for Ezusy - Image Swatches for Variable Product
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲191 | 15.65 ▲0.53 | 12.43 ▲7.56 | 78.05 ▼7.17 |
Dashboard /wp-admin | 2,939 ▲40 | 6.19 ▲0.03 | 117.53 ▼17.26 | 167.99 ▼18.49 |
Posts /wp-admin/edit.php | 2,749 ▲9 | 3.24 ▲0.00 | 66.16 ▲0.74 | 139.44 ▼5.36 |
Add New Post /wp-admin/post-new.php | 3,743 ▼65 | 18.59 ▼0.48 | 532.27 ▲46.12 | 185.16 ▲14.92 |
Media Library /wp-admin/upload.php | 1,761 ▲9 | 5.52 ▲0.02 | 156.58 ▲11.70 | 204.35 ▲23.22 |
Ezusy /wp-admin/options-general.php?page=ezusy-setting-admin | 1,081 | 2.39 | 52.55 | 127.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- ezusy_settings_reviews
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ezusy-image-swatches-for-variable-product/admin/partials/ezusy-admin-display.php
- > /wp-content/plugins/ezusy-image-swatches-for-variable-product/public/partials/ezusy-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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 your attention:
- Screenshots: Please add descriptions for these screenshots #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
The main PHP file in "Ezusy - Image Swatches for Variable Product" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ezusy-image-swatches-for-variable-product.php" instead of "ezusy.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0.0" instead of "4.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
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
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin