Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼289.06ms] Passed 4 tests
Analyzing server-side resources used by Add Gift Wrapper For Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 55.97 ▲3.87 |
Dashboard /wp-admin | 3.41 ▲0.00 | 104.07 ▲72.40 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 39.74 ▲3.46 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 95.69 ▼1,162.76 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 23.27 ▼0.79 |
Server storage [IO: ▲0.32MB] [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: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Add Gift Wrapper For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,827 ▲73 | 16.63 ▲1.47 | 6.63 ▼0.89 | 2.26 ▼0.63 |
Dashboard /wp-admin | 2,892 ▲34 | 6.13 ▼0.06 | 117.62 ▼20.03 | 154.41 ▼15.39 |
Posts /wp-admin/edit.php | 2,657 ▼34 | 3.24 ▲0.02 | 67.01 ▼3.62 | 154.30 ▼47.74 |
Add New Post /wp-admin/post-new.php | 1,758 ▲97 | 21.34 ▲5.84 | 486.17 ▲46.57 | 163.22 ▼21.32 |
Media Library /wp-admin/upload.php | 1,694 ▼4 | 5.54 ▲0.01 | 181.22 ▲37.11 | 194.87 ▲3.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/add-gift-wrapper-for-woocommerce/woo-gift-wrapper-main.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Contributors: Plugin contributors not specified
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in add-gift-wrapper-for-woocommerce/assets to your readme.txt
add-gift-wrapper-for-woocommerce/woo-gift-wrapper-main.php 85% from 13 tests
This is the main PHP file of "Add Gift Wrapper For Woocommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("add-gift-wrapper-for-woocommerce.php" instead of "woo-gift-wrapper-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,292 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 598 | 1,114 | 2,469 |
PHP | 4 | 321 | 25 | 1,084 |
CSS | 8 | 35 | 64 | 738 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 30.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 5 | 13.16% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |
includes/images/support.png | 6.44KB | 5.59KB | ▼ 13.09% |
includes/images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |
includes/js/owlcarousel/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |