Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.71ms] Passed 4 tests
Analyzing server-side resources used by Ultimate Gift Cards for WooCommerce - Create, Redeem & Manage Digital Gift Certificates with Personalized Templates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.21 ▼4.68 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.04 ▼3.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.52 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.88 ▼10.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.46 ▲2.03 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Ultimate Gift Cards for WooCommerce - Create, Redeem & Manage Digital Gift Certificates with Personalized Templates
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▲0.07 | 1.65 ▼0.06 | 39.80 ▼7.04 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▼0.03 | 93.55 ▼0.55 | 40.36 ▼1.88 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.95 ▼0.01 | 40.20 ▼2.71 | 37.22 ▲5.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.08 ▼0.16 | 647.46 ▲35.40 | 58.48 ▲4.69 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▲0.02 | 96.08 ▼4.85 | 41.77 ▼3.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/woo-gift-cards-lite/includes/extra-templates/wpswings-onboarding-template-display.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: gift certificates, gift cards woocommerce, gift, gifts, certificate...
woo-gift-cards-lite/woocommerce_gift_cards_lite.php 77% from 13 tests
The main PHP script in "Ultimate Gift Cards for WooCommerce - Create, Redeem & Manage Digital Gift Certificates with Personalized Templates" version 2.6.4 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 407 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-gift-cards-lite.php" instead of "woocommerce_gift_cards_lite.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.1.0" instead of "5.5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected13,821 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,088 | 2,360 | 9,193 |
CSS | 4 | 288 | 73 | 2,490 |
JavaScript | 13 | 142 | 88 | 1,295 |
PO File | 1 | 353 | 408 | 813 |
SVG | 5 | 1 | 0 | 21 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 113.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 528.00 |
Average method complexity | 8.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 1 | 0.63% |
▷ Public methods | 151 | 94.97% |
▷ Protected methods | 2 | 1.26% |
▷ Private methods | 6 | 3.77% |
Functions | 36 | |
▷ Named functions | 34 | 94.44% |
▷ Anonymous functions | 2 | 5.56% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 PNG files occupy 1.94MB with 0.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wps-feature3.png | 22.57KB | 9.21KB | ▼ 59.19% |
assets/images/featur4.png | 20.94KB | 8.60KB | ▼ 58.95% |
assets/images/skype_logo.png | 0.93KB | 0.96KB | 0.00% |
assets/images/mwb.png | 475.61KB | 187.41KB | ▼ 60.60% |
assets/images/featur1.png | 19.99KB | 7.80KB | ▼ 60.99% |