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.01MB] [CPU: ▼8.88ms] Passed 4 tests
Server-side resources used by Jagif - WooCommerce Free Gift
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.36 ▼3.03 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.43 ▼3.41 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 51.60 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.10 ▼28.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.04 ▼0.34 |
Server storage [IO: ▲3.53MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 176 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Jagif - WooCommerce Free Gift
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.26 ▼1.11 | 4.73 ▲2.89 | 41.58 ▼11.19 |
Dashboard /wp-admin | 2,215 ▲27 | 4.87 ▼1.00 | 109.59 ▲4.37 | 41.41 ▼6.19 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.01 ▼0.03 | 42.70 ▲4.12 | 35.27 ▲2.64 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.20 ▲5.02 | 698.76 ▲51.24 | 57.88 ▲2.86 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.32 ▲0.15 | 106.70 ▲2.86 | 44.59 ▲3.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jagif-woo-free-gift/templates/jagif-template-popup-gift.php:4
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
jagif-woo-free-gift/jagif-woo-free-gift.php 92% from 13 tests
The primary PHP file in "Jagif - WooCommerce Free Gift" version 1.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
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 plugin33,657 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 30 | 2,256 | 699 | 15,781 |
PHP | 20 | 661 | 254 | 8,560 |
CSS | 49 | 313 | 226 | 3,634 |
Sass | 8 | 479 | 0 | 3,504 |
SVG | 19 | 0 | 13 | 2,178 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 79.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 706.00 |
Average method complexity | 7.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 215 | |
▷ Static methods | 22 | 10.23% |
▷ Public methods | 197 | 91.63% |
▷ Protected methods | 13 | 6.05% |
▷ Private methods | 5 | 2.33% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 13 | |
▷ Global constants | 13 | 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
19 PNG files occupy 0.21MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-gift/gift-box-25.png | 8.23KB | 8.27KB | 0.00% |
assets/images/icon-gift/gift-box-10.png | 8.30KB | 8.31KB | 0.00% |
assets/images/icon-gift/gift-box-22.png | 27.02KB | 10.81KB | ▼ 59.97% |
assets/images/001-giftbox.png | 0.40KB | 0.44KB | 0.00% |
assets/images/icon-gift/gift-box-13.png | 10.58KB | 5.36KB | ▼ 49.39% |