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.21MB] [CPU: ▲4.40ms] Passed 4 tests
A check of server-side resources used by Order Gift Proceed Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 51.94 ▲2.76 |
Dashboard /wp-admin | 3.55 ▲0.24 | 53.12 ▼2.19 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 56.60 ▲5.97 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 114.39 ▲18.53 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 50.35 ▲11.06 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 10 new options
New WordPress options |
---|
gift_page_id |
theysaidso_admin_options |
wc_gift_proceed_installed |
widget_recent-comments |
widget_recent-posts |
ogpc_proceed_order |
widget_theysaidso_widget |
wc_gift_proceed_version |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Order Gift Proceed Checkout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,183 ▲394 | 15.21 ▲1.96 | 30.32 ▲28.50 | 40.32 ▼7.11 |
Dashboard /wp-admin | 2,231 ▲25 | 5.86 ▲0.02 | 117.10 ▲16.25 | 89.70 ▲51.25 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.16 ▲0.12 | 38.78 ▲2.28 | 35.34 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,444 ▼89 | 17.96 ▼4.95 | 739.73 ▲75.82 | 68.85 ▼3.14 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.28 ▲0.15 | 94.53 ▼11.67 | 88.89 ▲46.24 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- widget_recent-comments
- wc_gift_proceed_version
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- wc_gift_proceed_installed
- db_upgraded
- gift_page_id
- ogpc_proceed_order
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/order-gift-proceed-checkout/includes/Admin.php:229
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: order as a gift, gift checkout, woocommerce, gift proceed, checkout
order-gift-proceed-checkout/order-gift-proceed-checkout.php 92% from 13 tests
The primary PHP file in "Order Gift Proceed Checkout" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected2,745 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 191 | 155 | 1,408 |
PHP | 13 | 226 | 369 | 1,075 |
CSS | 1 | 4 | 4 | 110 |
Sass | 1 | 15 | 0 | 102 |
JSON | 3 | 0 | 0 | 50 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 1 | 11.11% |
Methods | 72 | |
▷ Static methods | 5 | 6.94% |
▷ Public methods | 67 | 93.06% |
▷ Protected methods | 3 | 4.17% |
▷ Private methods | 2 | 2.78% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/src/images/gift-card.png | 1.44KB | 1.47KB | 0.00% |
assets/build/e13502dde7668d846ce7.png | 3.19KB | 1.17KB | ▼ 63.52% |
assets/src/images/border.png | 3.19KB | 1.17KB | ▼ 63.52% |