Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.96ms] Passed 4 tests
Server-side resources used by Allergens System for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.65 ▲2.43 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.90 ▼0.50 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.12 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.04 ▼15.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.71 ▲3.56 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Allergens System for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.28 ▼0.44 | 1.66 ▲0.01 | 43.33 ▼2.79 |
Dashboard /wp-admin | 2,197 ▲19 | 5.64 ▼0.26 | 91.14 ▼18.73 | 39.46 ▼9.78 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.99 ▼0.03 | 39.65 ▲4.33 | 37.19 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.48 ▼5.18 | 605.91 ▼86.01 | 93.64 ▲33.69 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.24 ▲0.01 | 96.67 ▼8.29 | 43.15 ▼0.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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: A description for screenshot #1 is missing in allergens-for-woocommerce/assets to your readme.txt
allergens-for-woocommerce/allergens-woocommerce.php 92% from 13 tests
"Allergens System for Woocommerce" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("allergens-for-woocommerce.php" instead of "allergens-woocommerce.php")
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
Everything looks great! No dangerous files found in this plugin456 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 67 | 16 | 262 |
PHP | 2 | 30 | 32 | 194 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.49MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/crustacean.png | 39.35KB | 13.39KB | ▼ 65.98% |
images/soy.png | 45.39KB | 13.65KB | ▼ 69.94% |
images/lupins.png | 33.13KB | 11.82KB | ▼ 64.33% |
images/pistachio.png | 4.25KB | 2.23KB | ▼ 47.55% |
images/fish.png | 35.25KB | 12.17KB | ▼ 65.49% |