Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.70ms] Passed 4 tests
A check of server-side resources used by Woo Simple Gift Wrapping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 37.72 ▼2.41 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.40 ▼2.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.92 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 100.25 ▲15.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.60 ▲4.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Woo Simple Gift Wrapping
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.70 ▼1.05 | 1.68 ▼0.48 | 43.29 ▼8.08 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼0.05 | 107.14 ▲3.74 | 41.41 ▲1.89 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▼0.00 | 40.44 ▲5.16 | 34.52 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 18.51 ▼4.70 | 606.50 ▼38.81 | 73.07 ▲14.41 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.18 ▲0.01 | 95.05 ▼4.62 | 41.53 ▼1.53 |
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 does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-simple-gift-wrapping/woo-simple-gift-wrapping.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: woocommerce, gift wrapping
woo-simple-gift-wrapping/woo-simple-gift-wrapping.php Passed 13 tests
The main PHP script in "Woo Simple Gift Wrapping" version 1.1 is automatically included on every request by WordPress
70 characters long description:
Plugin help you add a gift card to checkout and can choose custom fee.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin377 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 38 | 268 |
CSS | 2 | 1 | 0 | 67 |
JavaScript | 2 | 1 | 12 | 31 |
HTML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin