Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼8.80ms] Passed 4 tests
Analyzing server-side resources used by Eledo PDF Attachments for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 42.31 ▲2.65 |
Dashboard /wp-admin | 3.50 ▲0.15 | 48.57 ▼15.99 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 49.23 ▼1.19 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 88.17 ▼19.12 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.20 ▲1.09 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Eledo PDF Attachments for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.17 ▼1.21 | 1.86 ▲0.14 | 44.40 ▲5.69 |
Dashboard /wp-admin | 2,211 ▲23 | 4.87 ▼0.98 | 97.67 ▼3.98 | 37.59 ▼6.01 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.01 ▲0.01 | 33.98 ▲0.07 | 33.97 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.23 ▲4.89 | 601.87 ▼1.63 | 47.76 ▼1.27 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.27 ▲0.07 | 93.96 ▼1.81 | 39.05 ▼5.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
eledo-pdf-attachments-for-woocommerce/woocommerce-eledo-pdf-attachments.php 85% from 13 tests
This is the main PHP file of "Eledo PDF Attachments for WooCommerce" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("eledo-pdf-attachments-for-woocommerce.php" instead of "woocommerce-eledo-pdf-attachments.php")
- 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
There were no executable files found in this plugin2,243 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 414 | 438 | 1,456 |
JavaScript | 2 | 69 | 39 | 549 |
PO File | 2 | 66 | 68 | 194 |
CSS | 1 | 0 | 0 | 44 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 29.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 2 | 28.57% |
Methods | 72 | |
▷ Static methods | 17 | 23.61% |
▷ Public methods | 57 | 79.17% |
▷ Protected methods | 3 | 4.17% |
▷ Private methods | 12 | 16.67% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pdf-icon.png | 0.50KB | 0.46KB | ▼ 8.32% |