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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.41ms] Passed 4 tests
An overview of server-side resources used by Powers Triggers for Woocommerce and Trello
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.47 ▼1.08 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.11 ▼1.19 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.28 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 91.22 ▼8.11 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.28 ▲0.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Powers Triggers for Woocommerce and Trello: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.26 ▼1.17 | 1.67 ▼0.04 | 39.83 ▼6.04 |
Dashboard /wp-admin | 2,219 ▲31 | 5.84 ▲0.87 | 100.31 ▼16.48 | 40.88 ▼1.53 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.06 ▲0.05 | 40.28 ▲4.38 | 35.02 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.27 ▲5.19 | 640.13 ▼42.17 | 56.96 ▼7.68 |
Media Library /wp-admin/upload.php | 1,407 ▲25 | 4.13 ▼0.09 | 101.76 ▲5.64 | 42.75 ▼0.68 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
include_once(include/class-wtp-trello.php): failed to open stream: No such file or directory in wp-content/plugins/wc-trello-powers/admin/class-wtp-admin.php on line 2
- > PHP Warning
include_once(): Failed opening 'include/class-wtp-trello.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wc-trello-powers/admin/class-wtp-admin.php on line 2
- > PHP Notice
Undefined variable: the_path in wp-content/plugins/wc-trello-powers/class-wtp-front.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-trello-powers/admin/views/wtp-settings-startview.php:12
- > PHP Notice
Undefined variable: the_path in wp-content/plugins/wc-trello-powers/admin/class-wtp-admin.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wc-trello-powers ===
) - Screenshots: Please add images for these screenshots: #4 (Home do Trello .), #5 (Cartão Trello de exemplo com informações do pedido do Woocommerce)
wc-trello-powers/wt-powers.php 92% from 13 tests
"Powers Triggers for Woocommerce and Trello" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-trello-powers.php" instead of "wt-powers.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,256 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 57 | 1 | 756 |
PHP | 6 | 41 | 9 | 415 |
JavaScript | 1 | 11 | 0 | 85 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin