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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.37ms] Passed 4 tests
An overview of server-side resources used by Ultimo Woocommerce Email Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.98 ▲2.05 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.70 ▼2.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.79 ▼1.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.86 ▲0.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.00 ▼2.64 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 179 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Ultimo Woocommerce Email Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.24 ▼1.51 | 5.10 ▲3.29 | 40.04 ▼0.91 |
Dashboard /wp-admin | 2,209 ▲21 | 5.89 ▲0.86 | 97.54 ▼13.82 | 40.78 ▼2.01 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.06 | 38.33 ▼3.73 | 35.16 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 18.28 ▲0.18 | 625.66 ▲8.94 | 60.25 ▲7.05 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.01 | 98.64 ▲1.18 | 44.62 ▲1.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 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 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 fix the following items
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/ultimo-woocommerce-email/tools/aweber/aweber_api/aweber_entry.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 28
- > PHP Notice
Undefined variable: index in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php:74
- > PHP Notice
Undefined variable: token in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/ultimo-woocommerce-email/tools/aweber/aweber_api/aweber_response.php:14
- > PHP Notice
Undefined variable: input_name in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-admin-gateway-status.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimo-woocommerce-email/inc/admin/templates/settings-updated.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-profile-section.php:26
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 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
4 plugin tags: woocommerce drip, woocommerce aweber, woocommerce email plugin, woocommerce email
ultimo-woocommerce-email/ultimo-wooemail.php 85% from 13 tests
Analyzing the main PHP file in "Ultimo Woocommerce Email Plugin" version 1.1
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 ("ultimo-woocommerce-email.php" instead of "ultimo-wooemail.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected14,765 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 6,744 | 13,145 | 12,446 |
JavaScript | 6 | 105 | 35 | 907 |
PO File | 1 | 287 | 547 | 702 |
CSS | 6 | 64 | 15 | 689 |
SVG | 21 | 0 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 20.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 15 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 14 | 16.87% |
▷ Concrete classes | 69 | 83.13% |
▷ Final classes | 0 | 0.00% |
Methods | 1,131 | |
▷ Static methods | 106 | 9.37% |
▷ Public methods | 859 | 75.95% |
▷ Protected methods | 263 | 23.25% |
▷ Private methods | 9 | 0.80% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
Constants | 68 | |
▷ Global constants | 16 | 23.53% |
▷ Class constants | 52 | 76.47% |
▷ Public constants | 52 | 100.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
30 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tools/woocommerce/payment-gateway/assets/images/card-paypal.png | 0.76KB | 0.79KB | 0.00% |
tools/woocommerce/payment-gateway/assets/images/card-visa-debit.png | 0.80KB | 0.86KB | 0.00% |
tools/woocommerce/payment-gateway/assets/images/card-echeck.png | 1.09KB | 1.15KB | 0.00% |
tools/woocommerce/payment-gateway/assets/images/card-solo.png | 0.80KB | 0.86KB | 0.00% |
tools/woocommerce/payment-gateway/assets/images/card-switch.png | 0.64KB | 0.68KB | 0.00% |