Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.15ms] Passed 4 tests
A check of server-side resources used by Gift Card For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.95 ▼7.27 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.88 ▼2.54 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 51.81 ▲5.86 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 83.49 ▼11.99 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 33.47 ▼2.78 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Gift Card For Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.64 ▼1.04 | 1.85 ▲0.04 | 42.07 ▼1.88 |
Dashboard /wp-admin | 2,212 ▲27 | 4.87 ▲0.02 | 112.02 ▲4.48 | 44.79 ▼2.51 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.03 ▼0.01 | 35.53 ▼1.32 | 35.07 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▲12 | 23.18 ▲5.54 | 670.70 ▼20.96 | 56.29 ▲3.04 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.22 ▲0.05 | 96.97 ▲0.25 | 44.85 ▼1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 71
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 174
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 215
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php:225
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 77
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 79
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 66
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 78
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 74
- > PHP Warning
Use of undefined constant PHOENI_GIFT_CARD_ARBPRPLUGURL - assumed 'PHOENI_GIFT_CARD_ARBPRPLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gift-card-for-woocommerce/includes/admin/phoeniixx_premium_styling.php on line 68
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 80% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
gift-card-for-woocommerce/phoen_gift_card.php 62% from 13 tests
The main PHP file in "Gift Card For Woocommerce" ver. 1.2.8 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 242 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.6.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("gift-card-for-woocommerce.php" instead of "phoen_gift_card.php")
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
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
Everything looks great! No dangerous files found in this plugin3,085 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,337 | 189 | 1,943 |
CSS | 2 | 168 | 20 | 1,045 |
JavaScript | 4 | 53 | 10 | 97 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/aaa2.png | 1.20KB | 0.57KB | ▼ 52.72% |
assets/images/head-arrow.png | 1.68KB | 1.43KB | ▼ 14.83% |
assets/images/button2.png | 3.58KB | 2.59KB | ▼ 27.61% |
assets/images/premium-head.png | 6.61KB | 5.20KB | ▼ 21.37% |
assets/images/premium-btn.png | 5.72KB | 5.28KB | ▼ 7.69% |