Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲572.16ms] 75% from 4 tests
This is a short check of server-side resources used by 123TCS Gift Card Payments for WooCommerce
Please fix the following
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 572.16ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.53 | 463.47 ▲413.56 |
Dashboard /wp-admin | 3.86 ▲0.45 | 1,049.55 ▲1,009.94 |
Posts /wp-admin/edit.php | 4.13 ▲0.49 | 1,095.22 ▲1,057.78 |
Add New Post /wp-admin/post-new.php | 7.36 ▲0.39 | 1,119.90 ▼152.40 |
Media Library /wp-admin/upload.php | 3.86 ▲0.56 | 1,045.69 ▲1,017.54 |
Server storage [IO: ▲0.17MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 1 new option
New WordPress options |
---|
TCS_GCP_plugin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for 123TCS Gift Card Payments for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,864 ▲110 | 16.06 ▲0.32 | 6.07 ▼0.32 | 2.27 ▼0.46 |
Dashboard /wp-admin | 2,977 ▲119 | 6.12 ▼0.06 | 116.32 ▼13.83 | 153.24 ▼0.71 |
Posts /wp-admin/edit.php | 2,771 ▲77 | 3.36 ▲0.12 | 64.66 ▲0.11 | 145.16 ▲2.90 |
Add New Post /wp-admin/post-new.php | 1,804 ▲173 | 21.46 ▲1.28 | 484.39 ▲73.39 | 159.84 ▲6.97 |
Media Library /wp-admin/upload.php | 1,786 ▲91 | 5.53 ▲0.01 | 149.83 ▲14.58 | 188.73 ▲3.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/123tcs-gift-card-payments-for-woocommerce/includes/settings.php+201
Trying to access array offset on value of type null
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: 123tcs, woocommerce, payment, gift cards
123tcs-gift-card-payments-for-woocommerce/tcs-gift-card-payments-for-woocommerce.php 77% from 13 tests
The entry point to "123TCS Gift Card Payments for WooCommerce" version 1.6.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.7.1" instead of "5.7")
- Main file name: The principal plugin file should be the same as the plugin slug ("123tcs-gift-card-payments-for-woocommerce.php" instead of "tcs-gift-card-payments-for-woocommerce.php")
- 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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,557 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 494 | 221 | 2,187 |
PO File | 1 | 104 | 117 | 289 |
JavaScript | 2 | 18 | 18 | 61 |
CSS | 1 | 4 | 3 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 1 | 0.90% |
▷ Public methods | 104 | 93.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 6.31% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-123tcs-white.png | 13.54KB | 5.43KB | ▼ 59.87% |