Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.54MB] [CPU: ▼23.54ms] Passed 4 tests
A check of server-side resources used by WooPOS Gift Cards for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.55 ▼1.97 |
Dashboard /wp-admin | 3.38 ▲0.03 | 48.99 ▼20.40 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.34 ▼4.42 |
Add New Post /wp-admin/post-new.php | 3.55 ▼2.34 | 36.23 ▼67.38 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.13 ▲2.27 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooPOS Gift Cards for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.35 ▼0.00 | 1.86 ▲0.30 | 41.98 ▲5.69 |
Dashboard /wp-admin | 2,201 ▲24 | 5.54 ▼0.08 | 85.07 ▼0.09 | 37.24 ▼9.15 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.03 ▲0.01 | 35.00 ▼0.75 | 34.35 ▲0.05 |
Add New Post /wp-admin/post-new.php | 45 ▼1,481 | 0.42 ▼22.60 | 0.07 ▼666.14 | 9.29 ▼43.89 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.16 ▼0.04 | 106.53 ▲15.13 | 68.29 ▲24.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
woopos-gift-cards-for-woocommerce/giftcards.php 85% from 13 tests
The main PHP file in "WooPOS Gift Cards for WooCommerce" ver. 2.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woopos-gift-cards-for-woocommerce.php" instead of "giftcards.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
No dangerous file extensions were detected4,862 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,624 | 2,739 | 4,741 |
JavaScript | 3 | 24 | 0 | 108 |
CSS | 3 | 3 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.24 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 13 | 7.65% |
▷ Public methods | 138 | 81.18% |
▷ Protected methods | 24 | 14.12% |
▷ Private methods | 8 | 4.71% |
Functions | 71 | |
▷ Named functions | 71 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
7 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 35.98KB | 20.42KB | ▼ 43.23% |
assets/banner-772x250.png | 86.68KB | 33.48KB | ▼ 61.37% |
assets/screenshot-1.png | 39.45KB | 19.49KB | ▼ 50.58% |
assets/icon-256x256.png | 19.59KB | 8.40KB | ▼ 57.12% |
assets/icon-128x128.png | 6.96KB | 3.35KB | ▼ 51.89% |