Benchmarks
Plugin footprint 65% 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: ▲1.38MB] [CPU: ▲1.82ms] Passed 4 tests
Server-side resources used by Printaura-Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.88 ▲1.42 | 47.69 ▲6.58 |
Dashboard /wp-admin | 4.72 ▲1.41 | 51.25 ▲6.04 |
Posts /wp-admin/edit.php | 4.77 ▲1.41 | 49.81 ▲0.70 |
Add New Post /wp-admin/post-new.php | 7.23 ▲1.34 | 90.94 ▼6.04 |
Media Library /wp-admin/upload.php | 4.58 ▲1.34 | 41.50 ▲8.10 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 13 new options
New WordPress options |
---|
printaura_woocommerce_api_mail_body |
printaura_woocommerce_api_ips_allowed |
printaura_woocommerce_api_token |
widget_recent-posts |
printaura_woocommerce_api_enabled |
widget_theysaidso_widget |
theysaidso_admin_options |
tgm_plugins_printaura-woocommerce-api |
can_compress_scripts |
printaura_woocommerce_api_mail_from |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Printaura-Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.68 ▼0.69 | 2.28 ▲0.41 | 42.29 ▼2.10 |
Dashboard /wp-admin | 2,211 ▲23 | 5.04 ▼0.86 | 100.03 ▼2.42 | 40.61 ▼3.99 |
Posts /wp-admin/edit.php | 2,091 ▼1 | 2.04 ▼0.02 | 35.55 ▼5.99 | 31.98 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.16 ▲0.20 | 592.11 ▼35.70 | 65.28 ▲14.97 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.21 ▼0.01 | 102.12 ▼4.62 | 42.00 ▼3.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/printaura-woocommerce-api/printaura-woocommerce-api.php+302
Trying to get property 'term_id' of non-object
- This plugin does not fully uninstall, leaving 13 options in the database
- printaura_woocommerce_api_ips_allowed
- db_upgraded
- widget_recent-comments
- tgm_plugins_printaura-woocommerce-api
- widget_theysaidso_widget
- theysaidso_admin_options
- printaura_woocommerce_api_mail_body
- printaura_woocommerce_api_mail_from
- can_compress_scripts
- printaura_woocommerce_api_mail_subject
- ...
Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: helpers in wp-content/plugins/printaura-woocommerce-api/templates/mail_form.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function hiddenFormFields() on null in wp-content/plugins/printaura-woocommerce-api/templates/mail_form.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (The PrintAura-WooCommerce settings panel.)
printaura-woocommerce-api/printaura-woocommerce-api.php Passed 13 tests
"Printaura-Woocommerce" version 4.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
PrintAura WooCommerce Integration API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8,691 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 601 | 955 | 8,654 |
CSS | 1 | 1 | 0 | 37 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 24.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 327 | |
▷ Static methods | 92 | 28.13% |
▷ Public methods | 319 | 97.55% |
▷ Protected methods | 8 | 2.45% |
▷ Private methods | 0 | 0.00% |
Functions | 101 | |
▷ Named functions | 74 | 73.27% |
▷ Anonymous functions | 27 | 26.73% |
Constants | 23 | |
▷ Global constants | 23 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.21MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 15.01KB | 6.14KB | ▼ 59.07% |
assets/icon-256x256.png | 45.53KB | 16.94KB | ▼ 62.79% |
assets/banner-772x250.png | 93.33KB | 37.24KB | ▼ 60.10% |
assets/screenshot-1.PNG | 56.57KB | 30.46KB | ▼ 46.16% |
assets/st-processing.png | 0.11KB | 0.11KB | 0.00% |