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 gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.86ms] Passed 4 tests
This is a short check of server-side resources used by Gift Wrapping for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.94 ▲5.85 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.96 ▼5.31 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.74 ▼6.29 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.54 ▲4.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.52 ▼0.48 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gift Wrapping for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.77 ▲0.35 | 2.50 ▲0.08 | 68.19 ▲24.67 |
Dashboard /wp-admin | 2,203 ▲12 | 5.79 ▲0.96 | 102.85 ▲3.30 | 39.85 ▲0.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.01 | 34.29 ▼2.57 | 31.65 ▼6.05 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.54 ▼5.62 | 685.81 ▼6.43 | 59.95 ▲4.55 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.03 | 94.99 ▼7.69 | 42.45 ▼4.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: gift wrapping, packaging, woocommerce, wrapping, checkout...
gift-wrapping-for-woocommerce/gift-wrapping-for-woocommerce.php Passed 13 tests
This is the main PHP file of "Gift Wrapping for WooCommerce" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Allow customers to select a gift wrapper for their order.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin415 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 175 | 564 | 409 |
XML | 1 | 0 | 0 | 5 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 29 | 80.56% |
▷ Protected methods | 2 | 5.56% |
▷ Private methods | 5 | 13.89% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
6 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 24.59KB | 13.88KB | ▼ 43.57% |
assets/icon-256x256.png | 9.86KB | 4.50KB | ▼ 54.35% |
assets/screenshot-2.png | 12.15KB | 5.19KB | ▼ 57.23% |
assets/banner-1544x500.png | 70.84KB | 31.16KB | ▼ 56.01% |
assets/banner-772x250.png | 34.73KB | 13.74KB | ▼ 60.44% |