Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.14ms] Passed 4 tests
Analyzing server-side resources used by Astro WooCommerce Free Gift
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.67 ▲1.40 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.15 ▲3.25 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.27 ▼13.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.57 ▼6.81 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.39 ▲2.26 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Astro WooCommerce Free Gift
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.94 ▼0.44 | 6.12 ▲4.31 | 41.63 ▼0.14 |
Dashboard /wp-admin | 2,215 ▲30 | 5.84 ▲0.78 | 99.14 ▼5.45 | 36.28 ▼5.99 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.98 ▼0.04 | 37.41 ▼2.52 | 35.83 ▲4.17 |
Add New Post /wp-admin/post-new.php | 1,520 ▲6 | 17.76 ▲0.31 | 692.86 ▼4.94 | 51.96 ▲1.83 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.16 ▲0.00 | 108.55 ▲0.18 | 47.37 ▲1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- 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 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce gift, woocommerce, woocommerce add-on, free gift
astro-woocommerce-free-gift/astro-woocommerce-free-gift.php Passed 13 tests
The main PHP script in "Astro WooCommerce Free Gift" version 1.0.1 is automatically included on every request by WordPress
73 characters long description:
This plugin allows you to create a list of free Gift for any product item
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin349 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 52 | 15 | 221 |
PO File | 1 | 12 | 12 | 45 |
Sass | 1 | 4 | 0 | 39 |
CSS | 1 | 7 | 1 | 32 |
JavaScript | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 15 | 75.00% |
▷ Protected methods | 1 | 5.00% |
▷ Private methods | 4 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
3 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 95.94KB | 34.82KB | ▼ 63.71% |
assets/screenshot-2.png | 134.15KB | 49.83KB | ▼ 62.85% |
assets/screenshot-3.png | 50.93KB | 19.98KB | ▼ 60.76% |